mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-17 18:13:34 +01:00
Merge pull request #13490 from farie82/flash-and-camera-flash
Gives flashes and cameras a light flash
This commit is contained in:
@@ -67,20 +67,22 @@
|
||||
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)
|
||||
return 0
|
||||
return FALSE
|
||||
|
||||
playsound(src.loc, use_sound, 100, 1)
|
||||
playsound(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))
|
||||
return 0
|
||||
return FALSE
|
||||
|
||||
return 1
|
||||
return TRUE
|
||||
|
||||
|
||||
/obj/item/flash/proc/flash_carbon(var/mob/living/carbon/M, var/mob/user = null, var/power = 5, targeted = 1)
|
||||
|
||||
Reference in New Issue
Block a user