mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-22 11:37:40 +01:00
Improves thermal drill clarity (#18924)
* Improves thermal drill clarity * Also remove progress bar on stop Co-authored-by: adrermail@gmail.com <adrermail@gmail.com>
This commit is contained in:
co-authored by
adrermail@gmail.com <adrermail@gmail.com>
parent
9c78cdafa5
commit
9aed532f42
@@ -141,7 +141,7 @@ GLOBAL_LIST_EMPTY(safes)
|
||||
if(..())
|
||||
return TRUE
|
||||
|
||||
if(drill)
|
||||
if(drill && !broken)
|
||||
switch(alert("What would you like to do?", "Thermal Drill", "Turn [drill_timer ? "Off" : "On"]", "Remove Drill", "Cancel"))
|
||||
if("Turn On")
|
||||
if(do_after(user, 2 SECONDS, target = src))
|
||||
@@ -155,6 +155,7 @@ GLOBAL_LIST_EMPTY(safes)
|
||||
deltimer(drill_timer)
|
||||
drill_timer = null
|
||||
drill.soundloop.stop()
|
||||
cut_overlay(progress_bar)
|
||||
update_icon()
|
||||
STOP_PROCESSING(SSobj, src)
|
||||
if("Remove Drill")
|
||||
@@ -166,6 +167,10 @@ GLOBAL_LIST_EMPTY(safes)
|
||||
update_icon()
|
||||
if("Cancel")
|
||||
return
|
||||
else if(drill && broken)
|
||||
user.put_in_hands(drill)
|
||||
drill = null
|
||||
update_icon()
|
||||
else
|
||||
ui_interact(user)
|
||||
|
||||
@@ -346,9 +351,11 @@ GLOBAL_LIST_EMPTY(safes)
|
||||
broken = TRUE
|
||||
drill_timer = null
|
||||
drill.soundloop.stop()
|
||||
playsound(loc, 'sound/machines/ding.ogg', 50, 1)
|
||||
cut_overlay(progress_bar)
|
||||
update_icon()
|
||||
STOP_PROCESSING(SSobj, src)
|
||||
|
||||
|
||||
/**
|
||||
* # Floor Safe
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user