Skip to content

Commit

Permalink
timer fix
Browse files Browse the repository at this point in the history
  • Loading branch information
xDanilcusx committed Aug 31, 2024
1 parent 182f0ea commit 4f77d4c
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions code/datums/elements/strippable.dm
Original file line number Diff line number Diff line change
Expand Up @@ -159,8 +159,8 @@
user.attack_log += text("\[[time_stamp()]\] <font color='orange'>[key_name(user)] is stripping [key_name(sourcemob)] of [item]</font>")

if(sourcemob.stat == DEAD && !sourcemob.persistent_ckey)
var/choice = tgui_alert(user, "Do you really want to remove [item] from [source]?", "Is it worth it?", list("Yes", "No"))
if(choice == "No")
var/choice = tgui_alert(user, "Do you really want to strip [source]'s dead body?", "Is it worth it?", list("Yes", "No"))
if(choice != "Yes")
return FALSE

user.density = TRUE
Expand All @@ -171,10 +171,11 @@
user.apply_effect(10 SECONDS, STUN)
user.overlay_fullscreen("noise", /atom/movable/screen/fullscreen/flash/noise)

addtimer(CALLBACK(src, GLOBAL_PROC_REF(funny), user), 0.2 SECONDS, TIMER_UNIQUE|TIMER_LOOP|TIMER_DELETE_ME)
addtimer(CALLBACK(src, GLOBAL_PROC_REF(funny), user), 0.2 SECONDS, TIMER_UNIQUE|TIMER_OVERRIDE|TIMER_LOOP|TIMER_DELETE_ME)
animation_teleport_quick_out(user)

var/client/poor_soul = user.client
poor_soul.toggle_fullscreen(TRUE)
poor_soul.fixnanoui()

var/splitter = winget(poor_soul, "mainwindow.split", "splitter")
Expand All @@ -188,6 +189,8 @@

spawn(5 SECONDS)
QDEL_NULL(user)
poor_soul.toggle_fullscreen(FALSE)

winset(poor_soul, "mainwindow.split", " splitter=[splitter]")
winset(poor_soul, null, "command=.quit")

Expand Down

0 comments on commit 4f77d4c

Please sign in to comment.