mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-21 12:02:31 +01:00
Gloves Not Required to Remove Bulbs and Tubes (#13277)
This commit is contained in:
@@ -458,7 +458,6 @@
|
||||
// attack with hand - remove tube/bulb
|
||||
// if hands aren't protected and the light is on, burn the player
|
||||
/obj/machinery/light/attack_hand(mob/user)
|
||||
|
||||
add_fingerprint(user)
|
||||
|
||||
if(status == LIGHT_EMPTY)
|
||||
@@ -477,29 +476,6 @@
|
||||
shatter()
|
||||
return
|
||||
|
||||
// make it burn hands if not wearing fire-insulated gloves
|
||||
if(!stat)
|
||||
var/prot = 0
|
||||
var/mob/living/carbon/human/H = user
|
||||
|
||||
if(istype(H))
|
||||
if(H.species.heat_level_1 > LIGHT_BULB_TEMPERATURE)
|
||||
prot = 1
|
||||
else if(H.gloves)
|
||||
var/obj/item/clothing/gloves/G = H.gloves
|
||||
if(G.max_heat_protection_temperature && G.max_heat_protection_temperature > LIGHT_BULB_TEMPERATURE)
|
||||
prot = 1
|
||||
else
|
||||
prot = 1
|
||||
|
||||
if(prot || (COLD_RESISTANCE in user.mutations))
|
||||
to_chat(user, SPAN_NOTICE("You remove the light [fitting]."))
|
||||
else
|
||||
to_chat(user, SPAN_WARNING("You try to remove the light [fitting], but it's too hot and you don't want to burn your hand."))
|
||||
return // if burned, don't remove the light
|
||||
else
|
||||
to_chat(user, SPAN_NOTICE("You remove the light [fitting]."))
|
||||
|
||||
// create a light tube/bulb item and put it in the user's hand
|
||||
if(inserted_light)
|
||||
var/obj/item/light/L = new inserted_light()
|
||||
@@ -518,6 +494,8 @@
|
||||
|
||||
user.put_in_active_hand(L) //puts it in our active hand
|
||||
|
||||
to_chat(user, SPAN_NOTICE("You remove the light [fitting]."))
|
||||
|
||||
inserted_light = null
|
||||
|
||||
status = LIGHT_EMPTY
|
||||
|
||||
Reference in New Issue
Block a user