mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-29 06:57:42 +01:00
Moves most screwdriver checks to screwdriver_act (#19024)
* screwdriver_act my beloved
* convert to returns instead of . / lewcc review
* it will be done
* i'm a little bit stupid, but now time to test
* sometimes I get excited and press the commit
* The great test has been completed
* oh wow oh wow, lewc review
* found one last one
* Steel review
* Lewc review
* quick sirryan review
* removes stupid comments (old coders I blame)
* sirryan review two
* whoops...
* hal review
* the fix to the fix to the fix
* Revert "the fix to the fix to the fix"
FUCK I pushed to the wrong branch
This reverts commit a96fe98781.
This commit is contained in:
@@ -39,12 +39,6 @@
|
||||
else
|
||||
to_chat(user, "<span class='warning'>\The [T] seems stuck to your hand!</span>")
|
||||
return
|
||||
if(istype(O, /obj/item/screwdriver) && anchored)
|
||||
playsound(src.loc, O.usesound, 50, 1)
|
||||
panel_open = !panel_open
|
||||
to_chat(user, "You [panel_open ? "open" : "close"] the maintenance panel.")
|
||||
update_icon(UPDATE_ICON_STATE)
|
||||
return
|
||||
if(panel_open)
|
||||
if(istype(O, /obj/item/wrench))
|
||||
default_unfasten_wrench(user, O)
|
||||
@@ -53,8 +47,18 @@
|
||||
print_tickets()
|
||||
default_deconstruction_crowbar(user, O)
|
||||
return
|
||||
|
||||
return ..()
|
||||
|
||||
/obj/machinery/prize_counter/screwdriver_act(mob/living/user, obj/item/I)
|
||||
if(!anchored)
|
||||
return
|
||||
I.play_tool_sound(src)
|
||||
panel_open = !panel_open
|
||||
to_chat(user, "<span class='notice'>You [panel_open ? "open" : "close"] the maintenance panel.</span>")
|
||||
update_icon(UPDATE_ICON_STATE)
|
||||
return TRUE
|
||||
|
||||
/obj/machinery/prize_counter/attack_hand(mob/user as mob)
|
||||
if(..())
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user