summaryrefslogtreecommitdiff
path: root/revert-01_removed-traits.patch
diff options
context:
space:
mode:
authorjc_gargma <jc_gargma@iserlohn-fortress.net>2022-02-07 12:23:27 -0800
committerjc_gargma <jc_gargma@iserlohn-fortress.net>2022-02-07 12:23:27 -0800
commit5a74b96c3956cdea9cf0b0dcdfd40671b29c1f82 (patch)
tree4485f2b9ee4d41d5bf6c040fa6e8a40ea30db96f /revert-01_removed-traits.patch
parentFix linting on lighthouse family patch v2 (diff)
downloadcataclysm-bn-5a74b96c3956cdea9cf0b0dcdfd40671b29c1f82.tar.xz
Updated to 2022-02-04-1939
Revert generic nv and telescopic lens changes.
Diffstat (limited to 'revert-01_removed-traits.patch')
-rw-r--r--revert-01_removed-traits.patch98
1 files changed, 98 insertions, 0 deletions
diff --git a/revert-01_removed-traits.patch b/revert-01_removed-traits.patch
new file mode 100644
index 0000000..cfe8c5d
--- /dev/null
+++ b/revert-01_removed-traits.patch
@@ -0,0 +1,98 @@
+--- a/data/json/mutations/mutations.json
++++ b/data/json/mutations/mutations.json
+@@ -2538,10 +2538,11 @@
+ {
+ "type": "mutation",
+ "id": "INFRESIST",
+- "name": { "str": "Infection Immune" },
+- "points": 1,
+- "description": "Your immune system is particularly good at resisting infections. Your wounds will no longer become infected, altough existing infections are still dangerous.",
++ "name": { "str": "Infection Resistant" },
++ "points": 2,
++ "description": "Your immune system is particularly good at resisting infections. You have an increased chance for bad wounds and infections to heal on their own, and only suffer reduced penalties from them.",
+ "starting_trait": true,
++ "changes_to": [ "INFIMMUNE" ],
+ "category": [ "TROGLOBITE", "RAT", "MEDICAL" ]
+ },
+ {
+
+--- a/data/json/scenarios.json
++++ b/data/json/scenarios.json
+@@ -319,7 +319,7 @@
+ "allowed_locs": [ "sloc_hospital" ],
+ "start_name": "Hospital",
+ "forced_traits": [ "FLIMSY2" ],
+- "forbidden_traits": [ "TOUGH" ],
++ "forbidden_traits": [ "TOUGH", "DISRESISTANT" ],
+ "professions": [ "unemployed", "bionic_patient", "patient", "broken_cyborg" ],
+ "flags": [ "CHALLENGE", "CITY_START", "LONE_START" ]
+ },
+
+--- a/data/json/npcs/starting_traits.json
++++ b/data/json/npcs/starting_traits.json
+@@ -34,6 +34,7 @@
+ { "group": "trait_group_PAINRESIST", "prob": 10 },
+ { "group": "trait_group_PROJUNK", "prob": 5 },
+ { "trait": "DEFT", "prob": 10 },
++ { "trait": "DISRESISTANT", "prob": 10 },
+ { "trait": "ADRENALINE", "prob": 10 },
+ { "trait": "INFRESIST", "prob": 15 },
+ { "trait": "MASOCHIST", "prob": 10 },
+@@ -200,7 +201,7 @@
+ "id": "trait_group_LIAR",
+ "subtype": "distribution",
+ "//": "NOTE: These traits should be used as conditionals to affect the difficulty of NPCs lying about the expertise they have.",
+- "traits": [ { "trait": "LIAR" } ]
++ "traits": [ { "trait": "LIAR" }, { "trait": "TRUTHTELLER" } ]
+ },
+ {
+ "type": "trait_group",
+
+--- a/src/player.cpp
++++ b/src/player.cpp
+@@ -84,6 +84,7 @@
+ static const activity_id ACT_READ( "ACT_READ" );
+
+ static const efftype_id effect_adrenaline( "adrenaline" );
++static const efftype_id effect_bite( "bite" );
+ static const efftype_id effect_blind( "blind" );
+ static const efftype_id effect_bloodworms( "bloodworms" );
+ static const efftype_id effect_boomered( "boomered" );
+@@ -93,14 +94,16 @@
+ static const efftype_id effect_drunk( "drunk" );
+ static const efftype_id effect_fungus( "fungus" );
+ static const efftype_id effect_happy( "happy" );
++static const efftype_id effect_infected( "infected" );
+ static const efftype_id effect_irradiated( "irradiated" );
+ static const efftype_id effect_masked_scent( "masked_scent" );
+ static const efftype_id effect_meth( "meth" );
+ static const efftype_id effect_narcosis( "narcosis" );
+ static const efftype_id effect_nausea( "nausea" );
+ static const efftype_id effect_onfire( "onfire" );
+ static const efftype_id effect_paincysts( "paincysts" );
+ static const efftype_id effect_pkill( "pkill" );
++static const efftype_id effect_recover( "recover" );
+ static const efftype_id effect_sad( "sad" );
+ static const efftype_id effect_sleep_deprived( "sleep_deprived" );
+ static const efftype_id effect_sleep( "sleep" );
+@@ -125,6 +128,7 @@
+ static const trait_id trait_FAT( "FAT" );
+ static const trait_id trait_FELINE_FUR( "FELINE_FUR" );
+ static const trait_id trait_FUR( "FUR" );
++static const trait_id trait_INFIMMUNE( "INFIMMUNE" );
+ static const trait_id trait_INSECT_ARMS( "INSECT_ARMS" );
+ static const trait_id trait_INSECT_ARMS_OK( "INSECT_ARMS_OK" );
+ static const trait_id trait_INSOMNIA( "INSOMNIA" );
+@@ -1660,6 +1664,12 @@
+ remove_effect( effect_tapeworm );
+ add_msg_if_player( m_good, _( "Your bowels gurgle as something inside them dies." ) );
+ }
++ if( has_trait( trait_INFIMMUNE ) && ( has_effect( effect_bite ) || has_effect( effect_infected ) ||
++ has_effect( effect_recover ) ) ) {
++ remove_effect( effect_bite );
++ remove_effect( effect_infected );
++ remove_effect( effect_recover );
++ }
+
+ //Human only effects
+ for( auto &elem : *effects ) {