From e69082ae262a112c5f5dd80dabbd413a71b971fa Mon Sep 17 00:00:00 2001 From: GPeckman Date: Mon, 26 Jun 2023 19:51:06 -0400 Subject: [PATCH] Lavaproof tracks fix (#76258) ## About The Pull Request There is an upgrade for mining borgs called lavaproof tracks. As the name implies, it allows them to safely traverse lava. This PR makes the tracks also protect from liquid plasma. Fixes #76107. ## Why It's Good For The Game Liquid plasma is the Icebox equivalent of lava, it stands to reason that something that protects against lava should also protect against liquid plasma. ## Changelog :cl: fix: The lavaproof tracks cyborg upgrade now protects against liquid plasma, the Icebox equivalent of lava. /:cl: --- code/game/objects/items/robot/robot_upgrades.dm | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/code/game/objects/items/robot/robot_upgrades.dm b/code/game/objects/items/robot/robot_upgrades.dm index 4deb6aeb58a..de2b6006124 100644 --- a/code/game/objects/items/robot/robot_upgrades.dm +++ b/code/game/objects/items/robot/robot_upgrades.dm @@ -267,9 +267,9 @@ /obj/item/borg/upgrade/lavaproof name = "mining cyborg lavaproof chassis" - desc = "An upgrade kit to apply specialized coolant systems and insulation layers to a mining cyborg's chassis, enabling them to withstand exposure to molten rock." + desc = "An upgrade kit to apply specialized coolant systems and insulation layers to a mining cyborg's chassis, enabling them to withstand exposure to molten rock and liquid plasma." icon_state = "ash_plating" - resistance_flags = LAVA_PROOF | FIRE_PROOF + resistance_flags = LAVA_PROOF | FIRE_PROOF | FREEZE_PROOF require_model = TRUE model_type = list(/obj/item/robot_model/miner) model_flags = BORG_MODEL_MINER @@ -277,12 +277,12 @@ /obj/item/borg/upgrade/lavaproof/action(mob/living/silicon/robot/R, user = usr) . = ..() if(.) - ADD_TRAIT(R, TRAIT_LAVA_IMMUNE, type) + R.add_traits(list(TRAIT_LAVA_IMMUNE, TRAIT_SNOWSTORM_IMMUNE), type) /obj/item/borg/upgrade/lavaproof/deactivate(mob/living/silicon/robot/R, user = usr) . = ..() if (.) - REMOVE_TRAIT(R, TRAIT_LAVA_IMMUNE, type) + R.remove_traits(list(TRAIT_LAVA_IMMUNE, TRAIT_SNOWSTORM_IMMUNE), type) /obj/item/borg/upgrade/selfrepair name = "self-repair module"