Skip to content

Commit

Permalink
Update king_powers.dm
Browse files Browse the repository at this point in the history
  • Loading branch information
Git-Nivrak committed Jun 23, 2024
1 parent 5de79d5 commit cb6d75f
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -85,13 +85,14 @@

if(!istype(current_atom, /mob/dead))
var/power = current_atom.light_power
if(power > 0)
var/range = current_atom.light_range
if(power > 0 && range > 0)
if(current_atom.light_system != MOVABLE_LIGHT)
current_atom.set_light(l_range=0)
addtimer(CALLBACK(current_atom, TYPE_PROC_REF(/atom, set_light), power), 10 SECONDS)
addtimer(CALLBACK(current_atom, TYPE_PROC_REF(/atom, set_light), range, power), 10 SECONDS)
else
current_atom.set_light_range(0)
addtimer(CALLBACK(current_atom, TYPE_PROC_REF(/atom, set_light_range), power), 10 SECONDS)
addtimer(CALLBACK(current_atom, TYPE_PROC_REF(/atom, set_light_range), range), 10 SECONDS)


apply_cooldown()
Expand Down

0 comments on commit cb6d75f

Please sign in to comment.