summaryrefslogtreecommitdiff
path: root/custom.patch
diff options
context:
space:
mode:
authorjc_gargma <jc_gargma@iserlohn-fortress.net>2021-03-12 17:10:03 -0800
committerjc_gargma <jc_gargma@iserlohn-fortress.net>2021-03-12 17:10:03 -0800
commit9e6d5ed0fabb5af82de2119f37a603e148bbcf87 (patch)
treedc2ec72e384afe4993fc6d3fabb84168f555cb56 /custom.patch
parentMerge CBM fixes into one patch (diff)
downloadcataclysm-bn-9e6d5ed0fabb5af82de2119f37a603e148bbcf87.tar.xz
Add patch for gynoid and vampire custom traits
Diffstat (limited to 'custom.patch')
-rw-r--r--custom.patch21
1 files changed, 21 insertions, 0 deletions
diff --git a/custom.patch b/custom.patch
new file mode 100644
index 0000000..ccac036
--- /dev/null
+++ b/custom.patch
@@ -0,0 +1,21 @@
+--- a/src/suffer.cpp
++++ b/src/suffer.cpp
+@@ -118,6 +118,8 @@
+ static const trait_id trait_FRESHWATEROSMOSIS( "FRESHWATEROSMOSIS" );
+ static const trait_id trait_GILLS( "GILLS" );
+ static const trait_id trait_GILLS_CEPH( "GILLS_CEPH" );
++static const trait_id trait_THRESH_GYNOID( "THRESH_GYNOID" );
++static const trait_id trait_THRESH_VAMP( "THRESH_VAMP" );
+ static const trait_id trait_JITTERY( "JITTERY" );
+ static const trait_id trait_KILLER( "KILLER" );
+ static const trait_id trait_LEAVES( "LEAVES" );
+@@ -245,7 +247,8 @@
+
+ void Character::suffer_while_underwater()
+ {
+- if( !has_trait( trait_GILLS ) && !has_trait( trait_GILLS_CEPH ) ) {
++ if( !has_trait( trait_GILLS ) && !has_trait( trait_GILLS_CEPH ) &&
++ !has_trait( trait_THRESH_GYNOID ) && !has_trait( trait_THRESH_VAMP ) ) {
+ oxygen--;
+ }
+ if( oxygen < 12 && worn_with_flag( "REBREATHER" ) ) {