Problem description:
Im using night/day system in my game, and im trying to make it so if u like, got a certain item equipped the night effect doesnt affect you for 4 squares <.<
world
area = /area/outside
New()
..()
for(var/area/outside/O in world)
spawn() O.daycycle()
area
outside
icon = 'Night.dmi'
layer = 999
var
lit = 1
proc
daycycle()
lit = 1 - lit
if(lit)
icon_state = "dark"
night = 1
else
icon_state = ""
night = 0
spawn(150) daycycle()
inside
luminosity = 1
is there any way that if i equip a candle or something the area icon state changes from "dark" to normal in the 4 squares around you and when you move the area icon state of those 4 squares follows you or something?
thats the best way i can explain it lol >.<
- GhostAnime