mirror of
https://github.com/vgstation-coders/vgstation13.git
synced 2025-12-10 10:21:11 +00:00
LIGHTING IS BACK.
AND A SHITLOAD FASTER. SANIC.
This commit is contained in:
@@ -130,13 +130,13 @@ Attach to transfer valve and open. BOOM.
|
||||
anchored = 1
|
||||
mouse_opacity = 0
|
||||
|
||||
//luminosity = 3
|
||||
blend_mode = BLEND_ADD
|
||||
|
||||
icon = 'icons/effects/fire.dmi'
|
||||
icon_state = "1"
|
||||
layer = TURF_LAYER
|
||||
|
||||
l_color = "#ED9200"
|
||||
light_color = LIGHT_COLOR_FIRE
|
||||
|
||||
/obj/fire/proc/Extinguish()
|
||||
//writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\/obj/fire/proc/Extinguish() called tick#: [world.time]")
|
||||
@@ -191,13 +191,13 @@ Attach to transfer valve and open. BOOM.
|
||||
|
||||
if(firelevel > 6)
|
||||
icon_state = "3"
|
||||
SetLuminosity(7)
|
||||
set_light(7, 3)
|
||||
else if(firelevel > 2.5)
|
||||
icon_state = "2"
|
||||
SetLuminosity(5)
|
||||
set_light(5, 2)
|
||||
else
|
||||
icon_state = "1"
|
||||
SetLuminosity(3)
|
||||
set_light(3, 1)
|
||||
|
||||
//im not sure how to implement a version that works for every creature so for now monkeys are firesafe
|
||||
for(var/mob/living/carbon/human/M in loc)
|
||||
@@ -253,13 +253,13 @@ Attach to transfer valve and open. BOOM.
|
||||
/obj/fire/New()
|
||||
. = ..()
|
||||
dir = pick(cardinal)
|
||||
SetLuminosity(3)
|
||||
set_light(3)
|
||||
air_master.active_hotspots.Add(src)
|
||||
|
||||
/obj/fire/Destroy()
|
||||
air_master.active_hotspots.Remove(src)
|
||||
|
||||
SetLuminosity(0)
|
||||
set_light(0)
|
||||
..()
|
||||
|
||||
turf/simulated/var/fire_protection = 0 //Protects newly extinguished tiles from being overrun again.
|
||||
|
||||
Reference in New Issue
Block a user