mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-22 11:37:40 +01:00
replaced spawn with addtimer
This commit is contained in:
@@ -269,13 +269,16 @@
|
||||
/obj/item/flag/chameleon/burn()
|
||||
if(boobytrap)
|
||||
fire_act()
|
||||
spawn(boobytrap.det_time)
|
||||
boobytrap.loc = get_turf(loc)
|
||||
boobytrap.prime()
|
||||
..()
|
||||
addtimer(CALLBACK(src, .proc/prime_boobytrap), boobytrap.det_time)
|
||||
else
|
||||
..()
|
||||
|
||||
/obj/item/flag/chameleon/proc/prime_boobytrap()
|
||||
boobytrap.forceMove(get_turf(loc))
|
||||
boobytrap.prime()
|
||||
boobytrap = null
|
||||
burn()
|
||||
|
||||
/obj/item/flag/chameleon/updateFlagIcon()
|
||||
icon_state = updated_icon_state
|
||||
|
||||
|
||||
Reference in New Issue
Block a user