More Crowbar Acts (#24986)

* crowbar acts part 1

* livings checked

* convert istypes to tool behaviour

* solars

* use tool_volume

* Update code/modules/research/server.dm

Co-authored-by: Luc <89928798+lewcc@users.noreply.github.com>
Signed-off-by: larentoun <31931237+larentoun@users.noreply.github.com>

* Update code/modules/power/generators/portable generators/pacman.dm

Co-authored-by: Luc <89928798+lewcc@users.noreply.github.com>
Signed-off-by: larentoun <31931237+larentoun@users.noreply.github.com>

* return

* return returns

* Update code/modules/mob/living/simple_animal/bot/mulebot.dm

Co-authored-by: Henri215 <77684085+Henri215@users.noreply.github.com>
Signed-off-by: larentoun <31931237+larentoun@users.noreply.github.com>

* Update code/game/objects/structures/janicart.dm

Co-authored-by: Henri215 <77684085+Henri215@users.noreply.github.com>
Signed-off-by: larentoun <31931237+larentoun@users.noreply.github.com>

---------

Signed-off-by: larentoun <31931237+larentoun@users.noreply.github.com>
Co-authored-by: Luc <89928798+lewcc@users.noreply.github.com>
Co-authored-by: Henri215 <77684085+Henri215@users.noreply.github.com>
This commit is contained in:
larentoun
2024-05-01 10:37:08 +00:00
committed by GitHub
co-authored by Luc Henri215
parent a2e7d95306
commit 7daf219ec0
23 changed files with 293 additions and 220 deletions
+17 -8
View File
@@ -93,24 +93,33 @@
to_chat(user, "<span class='warning'>\The [T] seems stuck to your hand!</span>")
return
if(panel_open)
if(istype(O, /obj/item/wrench))
default_unfasten_wrench(user, O, time = 6 SECONDS)
if(component_parts && istype(O, /obj/item/crowbar))
if(tickets) //save the tickets!
print_tickets()
default_deconstruction_crowbar(user, O)
return
return ..()
/obj/machinery/prize_counter/crowbar_act(mob/living/user, obj/item/I)
if(!panel_open || !component_parts)
return
. = TRUE
if(tickets) //save the tickets!
print_tickets()
default_deconstruction_crowbar(user, I)
/obj/machinery/prize_counter/screwdriver_act(mob/living/user, obj/item/I)
if(!anchored)
return
I.play_tool_sound(src)
. = TRUE
if(!I.use_tool(src, user, I.tool_volume))
return
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/wrench_act(mob/living/user, obj/item/I)
if(!panel_open)
return
. = TRUE
default_unfasten_wrench(user, I, time = 6 SECONDS)
/obj/machinery/prize_counter/attack_hand(mob/user)
if(..())