diff options
author | jc_gargma <jc_gargma@iserlohn-fortress.net> | 2024-01-24 18:40:06 -0800 |
---|---|---|
committer | jc_gargma <jc_gargma@iserlohn-fortress.net> | 2024-01-24 18:40:06 -0800 |
commit | a963683f0ec1703612add7eadee652319e7be4ed (patch) | |
tree | e52b81bbd9097fc8707d9581b9c3c4fd1ff80a52 /vampirism.patch | |
parent | Offload many 40mm and rivtech ammo changes to mods. (diff) | |
download | cataclysm-bn-a963683f0ec1703612add7eadee652319e7be4ed.tar.xz |
Update vampirism mod with partial_deaf for the vamp_hearing trait.
Diffstat (limited to 'vampirism.patch')
-rw-r--r-- | vampirism.patch | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/vampirism.patch b/vampirism.patch index 0299e0d..2d20f87 100644 --- a/vampirism.patch +++ b/vampirism.patch @@ -21,10 +21,11 @@ --- a/src/character.cpp +++ b/src/character.cpp -@@ -311,6 +311,8 @@ +@@ -311,6 +311,9 @@ static const trait_id trait_TOUGH_FEET( "TOUGH_FEET" ); static const trait_id trait_TRANSPIRATION( "TRANSPIRATION" ); static const trait_id trait_URSINE_EYE( "URSINE_EYE" ); ++static const trait_id trait_VAMP_HEARING( "VAMP_HEARING" ); +static const trait_id trait_VAMP_HUNGER( "VAMP_HUNGER" ); +static const trait_id trait_VAMP_SKIN( "VAMP_SKIN" ); static const trait_id trait_VISCOUS( "VISCOUS" ); @@ -86,6 +87,14 @@ temp_cur.fill( BODYTEMP_NORM ); temp_conv.fill( BODYTEMP_NORM ); return; +@@ -6629,6 +6629,7 @@ + } else if( eff == effect_deaf ) { + return worn_with_flag( flag_DEAF ) || worn_with_flag( flag_PARTIAL_DEAF ) || + has_bionic( bio_ears ) || ++ has_trait( trait_VAMP_HEARING ) || + is_wearing( itype_rm13_armor_on ); + } else if( eff == effect_corroding ) { + return is_immune_damage( DT_ACID ) || has_trait( trait_SLIMY ) || has_trait( trait_VISCOUS ); --- a/src/character.h +++ b/src/character.h |