mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 10:43:20 +00:00
Fixes #8977
This commit is contained in:
@@ -9,7 +9,7 @@
|
|||||||
#define LIGHT_BROKEN 2
|
#define LIGHT_BROKEN 2
|
||||||
#define LIGHT_BURNED 3
|
#define LIGHT_BURNED 3
|
||||||
|
|
||||||
|
#define LIGHT_BULB_TEMPERATURE 400 //K - used value for a 60W bulb
|
||||||
|
|
||||||
/obj/item/light_fixture_frame
|
/obj/item/light_fixture_frame
|
||||||
name = "light fixture frame"
|
name = "light fixture frame"
|
||||||
@@ -487,11 +487,13 @@
|
|||||||
var/mob/living/carbon/human/H = user
|
var/mob/living/carbon/human/H = user
|
||||||
|
|
||||||
if(istype(H))
|
if(istype(H))
|
||||||
|
if(H.species.heat_level_1 > LIGHT_BULB_TEMPERATURE)
|
||||||
if(H.gloves)
|
prot = 1
|
||||||
|
else if(H.gloves)
|
||||||
var/obj/item/clothing/gloves/G = H.gloves
|
var/obj/item/clothing/gloves/G = H.gloves
|
||||||
if(G.max_heat_protection_temperature)
|
if(G.max_heat_protection_temperature)
|
||||||
prot = (G.max_heat_protection_temperature > 360)
|
if(G.max_heat_protection_temperature > LIGHT_BULB_TEMPERATURE)
|
||||||
|
prot = 1
|
||||||
else
|
else
|
||||||
prot = 1
|
prot = 1
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user