diff options
author | haranp <haranp@c06c8d41-db1a-0410-9941-cceddc491573> | 2007-03-16 21:03:11 +0000 |
---|---|---|
committer | haranp <haranp@c06c8d41-db1a-0410-9941-cceddc491573> | 2007-03-16 21:03:11 +0000 |
commit | de11c27378236139089c48ecfb0b66457cc0d67c (patch) | |
tree | c6efbca48a5f37d3b192009154e3d13cd347c159 /crawl-ref/source/player.h | |
parent | 54bfc8f5f26243e68353eeedb959864e6565de4c (diff) | |
download | crawl-ref-de11c27378236139089c48ecfb0b66457cc0d67c.tar.gz crawl-ref-de11c27378236139089c48ecfb0b66457cc0d67c.zip |
Rings of fire and ice now type-ID when the player can notice this:
i.e., when a surge (or anti-surge) is created or amplified by them,
at most one unIDed ring is worn, and no unIDed staves are wielded.
(Checking for armour is unnecessary because armour type-IDs on
wearing.)
Note that this makes it easier to find out what randart rings of
fire and ice do.
Also changed a bunch of unsigned char return values to ints.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1051 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/player.h')
-rw-r--r-- | crawl-ref/source/player.h | 74 |
1 files changed, 13 insertions, 61 deletions
diff --git a/crawl-ref/source/player.h b/crawl-ref/source/player.h index 2d68ade989..a476b2d40a 100644 --- a/crawl-ref/source/player.h +++ b/crawl-ref/source/player.h @@ -116,7 +116,7 @@ int player_AC(void); /* *********************************************************************** * called from: spell * *********************************************************************** */ -unsigned char player_energy(void); +int player_energy(void); /* *********************************************************************** @@ -202,64 +202,16 @@ bool player_res_asphyx(); int player_shield_class(void); -/* *********************************************************************** - * called from: spell - spells0 - * *********************************************************************** */ -unsigned char player_spec_air(void); - - -/* *********************************************************************** - * called from: spell - spells0 - * *********************************************************************** */ -unsigned char player_spec_cold(void); - - -/* *********************************************************************** - * called from: spell - spells0 - * *********************************************************************** */ -unsigned char player_spec_conj(void); - - -/* *********************************************************************** - * called from: it_use3 - spell - spells0 - * *********************************************************************** */ -unsigned char player_spec_death(void); - - -/* *********************************************************************** - * called from: spell - spells0 - * *********************************************************************** */ -unsigned char player_spec_earth(void); - - -/* *********************************************************************** - * called from: spell - spells0 - * *********************************************************************** */ -unsigned char player_spec_ench(void); - - -/* *********************************************************************** - * called from: spell - spells0 - * *********************************************************************** */ -unsigned char player_spec_fire(void); - - -/* *********************************************************************** - * called from: spell - spells0 - * *********************************************************************** */ -unsigned char player_spec_holy(void); - - -/* *********************************************************************** - * called from: spell - spells0 - * *********************************************************************** */ -unsigned char player_spec_poison(void); - - -/* *********************************************************************** - * called from: spell - spells0 - * *********************************************************************** */ -unsigned char player_spec_summ(void); +int player_spec_air(void); +int player_spec_cold(void); +int player_spec_conj(void); +int player_spec_death(void); +int player_spec_earth(void); +int player_spec_ench(void); +int player_spec_fire(void); +int player_spec_holy(void); +int player_spec_poison(void); +int player_spec_summ(void); /* *********************************************************************** @@ -278,7 +230,7 @@ int player_spell_levels(void); /* *********************************************************************** * called from: effects * *********************************************************************** */ -unsigned char player_sust_abil(bool calc_unid = true); +int player_sust_abil(bool calc_unid = true); /* *********************************************************************** @@ -304,7 +256,7 @@ int slaying_bonus(char which_affected); * items - monstuff - mon-util - mstuff2 - spells1 - spells2 - * spells3 * *********************************************************************** */ -unsigned char player_see_invis(bool calc_unid = true); +int player_see_invis(bool calc_unid = true); bool player_monster_visible( const monsters *mon ); |