From 22fb75d2a64b9c2cc7e3380e71ba5537ee6a9fa6 Mon Sep 17 00:00:00 2001 From: vuonojenmustaturska Date: Sat, 17 Feb 2018 17:38:17 +0200 Subject: [PATCH] Merge pull request #35735 from coiax/fire-proof-hands RESISTHOT species can put out fires with their hands --- code/game/objects/items.dm | 27 ++++++++++++++++----------- 1 file changed, 16 insertions(+), 11 deletions(-) diff --git a/code/game/objects/items.dm b/code/game/objects/items.dm index 9ac53cc85b..697c84ee0c 100644 --- a/code/game/objects/items.dm +++ b/code/game/objects/items.dm @@ -245,18 +245,23 @@ GLOBAL_VAR_INIT(rpg_loot_items, FALSE) if(resistance_flags & ON_FIRE) var/mob/living/carbon/C = user - if(istype(C)) - if(C.gloves && (C.gloves.max_heat_protection_temperature > 360)) - extinguish() - to_chat(user, "You put out the fire on [src].") - else - to_chat(user, "You burn your hand on [src]!") - var/obj/item/bodypart/affecting = C.get_bodypart("[(user.active_hand_index % 2 == 0) ? "r" : "l" ]_arm") - if(affecting && affecting.receive_damage( 0, 5 )) // 5 burn damage - C.update_damage_overlays() - return - else + var/can_handle_hot = FALSE + if(!istype(C)) + can_handle_hot = TRUE + else if(C.gloves && (C.gloves.max_heat_protection_temperature > 360)) + can_handle_hot = TRUE + else if(RESISTHOT in C.dna.species.species_traits) + can_handle_hot = TRUE + + if(can_handle_hot) extinguish() + to_chat(user, "You put out the fire on [src].") + else + to_chat(user, "You burn your hand on [src]!") + var/obj/item/bodypart/affecting = C.get_bodypart("[(user.active_hand_index % 2 == 0) ? "r" : "l" ]_arm") + if(affecting && affecting.receive_damage( 0, 5 )) // 5 burn damage + C.update_damage_overlays() + return if(acid_level > 20 && !ismob(loc))// so we can still remove the clothes on us that have acid. var/mob/living/carbon/C = user