Gives flashes and cameras a flash

This commit is contained in:
joep van der velden
2020-05-25 21:15:26 +02:00
parent defbf5b6df
commit d065268efd
2 changed files with 10 additions and 6 deletions
+3 -1
View File
@@ -67,7 +67,7 @@
times_used = max(0, times_used) //sanity
/obj/item/flash/proc/try_use_flash(var/mob/user = null)
/obj/item/flash/proc/try_use_flash(mob/user = null)
flash_recharge(user)
if(broken)
@@ -75,6 +75,8 @@
playsound(src.loc, use_sound, 100, 1)
flick("[initial(icon_state)]2", src)
set_light(2, 1, COLOR_WHITE)
addtimer(CALLBACK(src, /atom./proc/set_light, 0), 2)
times_used++
if(user && !clown_check(user))