From 928479a2ce6674d27d6ef03d7a06f81803ccdfae Mon Sep 17 00:00:00 2001 From: Robert Vollmert Date: Tue, 27 Oct 2009 01:35:41 +0100 Subject: Convert some ints to monster_type. There's a whole lot of places that pass monster_type as int, often with varying meanings for the value -1. This moves some of these to monster_type, introducing MONS_NO_MONSTER and MONS_PLAYER as new invalid special values. Also improve on the autoexclude descriptions. --- crawl-ref/source/misc.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'crawl-ref/source/misc.h') diff --git a/crawl-ref/source/misc.h b/crawl-ref/source/misc.h index 37ced6dae7..c6efd53cd2 100644 --- a/crawl-ref/source/misc.h +++ b/crawl-ref/source/misc.h @@ -33,13 +33,13 @@ long remove_oldest_blood_potion( item_def &stack ); void remove_newest_blood_potion( item_def &stack, int quant = -1 ); void merge_blood_potion_stacks(item_def &source, item_def &dest, int quant); -bool can_bottle_blood_from_corpse( int mons_type ); -int num_blood_potions_from_corpse( int mons_class, int chunk_type = -1 ); +bool can_bottle_blood_from_corpse(int mons_type); +int num_blood_potions_from_corpse(int mons_class, int chunk_type = -1); void turn_corpse_into_blood_potions (item_def &item); void turn_corpse_into_skeleton_and_blood_potions(item_def &item); -void split_potions_into_decay( int obj, int amount, bool need_msg = true ); +void split_potions_into_decay(int obj, int amount, bool need_msg = true); -void bleed_onto_floor(const coord_def& where, int mon, int damage, +void bleed_onto_floor(const coord_def& where, monster_type mon, int damage, bool spatter = false, bool smell_alert = true); void generate_random_blood_spatter_on_level(); -- cgit v1.2.3-54-g00ecf