diff options
author | dshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-05-10 18:47:15 +0000 |
---|---|---|
committer | dshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-05-10 18:47:15 +0000 |
commit | 67bca4d45d81d00a382c4d697b36b599b9cdecc8 (patch) | |
tree | ae5d32ed7ffd15e2b76f03526b6d943edf7e78ea /crawl-ref/source/monplace.h | |
parent | 32e1a1a551a66a0e2e9eedd59eb0ba8f0241c6d5 (diff) | |
download | crawl-ref-67bca4d45d81d00a382c4d697b36b599b9cdecc8.tar.gz crawl-ref-67bca4d45d81d00a382c4d697b36b599b9cdecc8.zip |
Reorder snake selection to favour the nastier snakes when sticks to snakes works on big sticks.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@4993 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/monplace.h')
-rw-r--r-- | crawl-ref/source/monplace.h | 46 |
1 files changed, 16 insertions, 30 deletions
diff --git a/crawl-ref/source/monplace.h b/crawl-ref/source/monplace.h index ece5c1ce89..6a72bca628 100644 --- a/crawl-ref/source/monplace.h +++ b/crawl-ref/source/monplace.h @@ -214,29 +214,27 @@ struct mgen_data } }; -// last updated 13mar2001 {gdl} /* *********************************************************************** - * called from: acr - lev-pand - monplace - dungeon - * - * Usage: - * mon_type WANDERING_MONSTER, RANDOM_MONSTER, or monster type - * behaviour standard behaviours (BEH_ENSLAVED, etc) - * target MHITYOU, MHITNOT, or monster id - * extra various things like skeleton/zombie types, colours, etc - * summoned monster is summoned? - * px placement x - * py placement y - * level_type LEVEL_DUNGEON, LEVEL_ABYSS, LEVEL_PANDEMONIUM. - * LEVEL_DUNGEON will generate appropriate power monsters - * proximity 0 = no extra restrictions on monster placement - * 1 = try to place the monster near the player - * 2 = don't place the monster near the player - * 3 = place the monster near stairs (regardless of player pos) + * Creates a monster near the place specified in the mgen_data, producing + * a "puff of smoke" message if the monster cannot be placed. This is usually + * used for summons and other monsters that want to appear near a given + * position like a summon. * *********************************************************************** */ +int create_monster( mgen_data mg ); +/* *********************************************************************** + * Primary function to create monsters. See mgen_data for details on monster + * placement. + * *********************************************************************** */ int mons_place( mgen_data mg ); -int create_monster( mgen_data mg ); +/* *********************************************************************** + * This isn't really meant to be a public function. It is a low level + * monster placement function used by dungeon building routines and + * mons_place(). If you need to put a monster somewhere, use mons_place(). + * Summoned creatures can be created with create_monster(). + * *********************************************************************** */ +int place_monster( mgen_data mg ); // last updated 12may2000 {dlb} /* *********************************************************************** @@ -267,18 +265,6 @@ bool empty_surrounds( int emx, int emy, dungeon_feature_type spc_wanted, * *********************************************************************** */ monster_type summon_any_demon( demon_class_type demon_class ); - -// last update 13mar2001 {gdl} -/* *********************************************************************** - * called from: dungeon monplace - * - * This isn't really meant to be a public function. It is a low level - * monster placement function used by dungeon building routines and - * mons_place(). If you need to put a monster somewhere, use mons_place(). - * Summoned creatures can be created with create_monster(). - * *********************************************************************** */ -int place_monster( mgen_data mg ); - monster_type rand_dragon( dragon_class_type type ); bool drac_colour_incompatible(int drac, int colour); |