Revert "Purifies code, fix collapsible TGUI component"

This reverts commit 1f38f22a58.
This commit is contained in:
Mosley
2024-09-20 01:22:41 -05:00
parent 3a8024db6d
commit d0bf81dc09
8 changed files with 57 additions and 9 deletions

View File

@@ -1229,9 +1229,9 @@
if(obj_integrity < max_integrity)
if(!W.tool_start_check(user, amount=0))
return
user.visible_message("[user] is welding the airlock.", \
"<span class='notice'>You begin reparing the airlock...</span>", \
"<span class='italics'>You hear welding.</span>")
user.visible_message("[user] чинит шлюз сваркой.", \
"<span class='notice'>Вы начинаете чинить шлюз...</span>", \
"<span class='italics'>Вы слышите звук сварки.</span>")
if(W.use_tool(src, user, 40, volume=50, extra_checks = CALLBACK(src, PROC_REF(weld_checks), W, user)))
obj_integrity = max_integrity
machine_stat &= ~BROKEN

View File

@@ -174,8 +174,12 @@
var/exposed = 0 // can you currently put an item inside
var/obj/item/hiddenitem = null // what's in the urinal
/obj/structure/urinal/Initialize()
/obj/structure/urinal/Initialize(no_shit = FALSE)
. = ..()
if(!no_shit && prob(1))
new /obj/structure/urinal/shit(loc, dir)
qdel(src)
return
hiddenitem = new /obj/item/reagent_containers/food/urinalcake
/obj/structure/urinal/Destroy()