summaryrefslogtreecommitdiff
path: root/vampirism.patch
diff options
context:
space:
mode:
Diffstat (limited to 'vampirism.patch')
-rw-r--r--vampirism.patch11
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