From 93e972ffb1ee3cbe02ff6ba77d7d81e84c61084f Mon Sep 17 00:00:00 2001 From: Kamejeir <99511880+Kamejeir@users.noreply.github.com> Date: Sat, 18 May 2024 11:38:57 +0200 Subject: [PATCH] scope creep no more --- data/json/mutations/mutations.json | 14 +++++++------- src/character_body.cpp | 5 +---- 2 files changed, 8 insertions(+), 11 deletions(-) diff --git a/data/json/mutations/mutations.json b/data/json/mutations/mutations.json index 7f58c78e57124..6eddfaf322943 100644 --- a/data/json/mutations/mutations.json +++ b/data/json/mutations/mutations.json @@ -3424,7 +3424,7 @@ "ugliness": 3, "description": "All the hair on your body has turned to long, grass-like leaves. Apart from being physically striking, these provide you with a minor amount of nutrients while in sunlight when your head is uncovered. Slightly reduces wet effects.", "types": [ "HAIR" ], - "prereqs": [ "PLANTSKIN", "BARK", "BARK2_a", "BARK2_b", "BARK2_c" ], + "prereqs": [ "PLANTSKIN", "BARK" ], "changes_to": [ "LEAVES2" ], "category": [ "PLANT", "ELFA" ], "wet_protection": [ { "part": "head", "ignored": 1 } ] @@ -3470,7 +3470,7 @@ "visibility": 0, "ugliness": 0, "description": "You body has begun moving nutrients via the evaporation of water. This increases your thirst when it's hot, but reduces it when it's cold.", - "prereqs": [ "PLANTSKIN", "BARK", "BARK2_a", "BARK2_b", "BARK2_c" ], + "prereqs": [ "PLANTSKIN", "BARK" ], "prereqs2": [ "LEAVES" ], "threshreq": [ "THRESH_PLANT" ], "category": [ "PLANT" ] @@ -3483,7 +3483,7 @@ "visibility": 10, "ugliness": -4, "description": "You've started blooming where your scalp used to be. Your blossoms have a pleasant aroma, are visually striking, and are quite sensitive.", - "prereqs": [ "PLANTSKIN", "BARK", "BARK2_a", "BARK2_b", "BARK2_c" ], + "prereqs": [ "PLANTSKIN", "BARK" ], "prereqs2": [ "HAIRROOTS" ], "types": [ "SCENT" ], "threshreq": [ "THRESH_PLANT", "THRESH_ELFA" ], @@ -4035,7 +4035,7 @@ "points": 1, "visibility": 1, "description": "Your extremities have gained strength but lost fine motor skills. -1 Dexterity +2 Strength.", - "leads_to": [ "GASTROPOD_EXTREMITY2" ], + "changes_to": [ "GASTROPOD_EXTREMITY2" ], "category": [ "GASTROPOD" ], "enchantments": [ { "values": [ { "value": "STRENGTH", "add": 2 }, { "value": "DEXTERITY", "add": -1 } ] } ] }, @@ -7497,7 +7497,7 @@ "ugliness": 5, "description": "You have developed several vines sprouting from your shoulder area. They're bulky, and get in the way.", "types": [ "WINGS" ], - "prereqs": [ "PLANTSKIN", "BARK", "BARK2_a", "BARK2_b", "BARK2_c" ], + "prereqs": [ "PLANTSKIN", "BARK" ], "changes_to": [ "VINES2" ], "category": [ "PLANT" ], "encumbrance_always": [ [ "torso", 10 ] ] @@ -7511,7 +7511,7 @@ "ugliness": 5, "description": "You've developed the ability to control your vines; they make good lashes. You can even rappel down sheer drops using them, but disconnecting HURTS.", "types": [ "WINGS" ], - "prereqs": [ "PLANTSKIN", "BARK", "BARK2_a", "BARK2_b", "BARK2_c" ], + "prereqs": [ "PLANTSKIN", "BARK" ], "prereqs2": [ "VINES1" ], "changes_to": [ "VINES3" ], "category": [ "PLANT" ], @@ -7534,7 +7534,7 @@ "ugliness": 6, "description": "You have full control of your vines, and can grow new ones and detach old ones more or less at will.", "types": [ "WINGS" ], - "prereqs": [ "PLANTSKIN", "BARK", "BARK2_a", "BARK2_b", "BARK2_c" ], + "prereqs": [ "PLANTSKIN", "BARK" ], "prereqs2": [ "VINES2" ], "threshreq": [ "THRESH_PLANT" ], "category": [ "PLANT" ], diff --git a/src/character_body.cpp b/src/character_body.cpp index e102f06c4f7ed..25d0689b85bc7 100644 --- a/src/character_body.cpp +++ b/src/character_body.cpp @@ -102,9 +102,6 @@ static const json_character_flag json_flag_NO_THIRST( "NO_THIRST" ); static const json_character_flag json_flag_PAIN_IMMUNE( "PAIN_IMMUNE" ); static const trait_id trait_BARK( "BARK" ); -static const trait_id trait_BARK2_a( "BARK2_a" ); -static const trait_id trait_BARK2_b( "BARK2_b" ); -static const trait_id trait_BARK2_c( "BARK2_c" ); static const trait_id trait_CHITIN_FUR( "CHITIN_FUR" ); static const trait_id trait_CHITIN_FUR2( "CHITIN_FUR2" ); static const trait_id trait_CHITIN_FUR3( "CHITIN_FUR3" ); @@ -461,7 +458,7 @@ void Character::update_bodytemp() int bp_windpower = get_local_windpower( weather_man.windspeed + vehwindspeed, cur_om_ter, get_location(), weather_man.winddirection, sheltered ); // Let's cache this not to check it for every bodyparts - const bool has_bark = has_trait( trait_BARK ) || has_trait( trait_BARK2_a ) || has_trait( trait_BARK2_b ) || has_trait( trait_BARK2_c ); + const bool has_bark = has_trait( trait_BARK ); const bool has_sleep = has_effect( effect_sleep ); const bool has_sleep_state = has_sleep || in_sleep_state(); const bool heat_immune = has_flag( json_flag_HEAT_IMMUNE );