mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-22 03:27:05 +01:00
Moves almost all wrench checks in attackby to wrench_act() (#25687)
* wrench a bunch of acts * atmospherics * some last few things * last iswrench changes for anything that isn't construction * Update code/game/machinery/pipe/pipe_construction.dm Co-authored-by: DGamerL <108773801+DGamerL@users.noreply.github.com> Signed-off-by: Luc <89928798+lewcc@users.noreply.github.com> * Apply suggestions from code review Co-authored-by: DGamerL <108773801+DGamerL@users.noreply.github.com> Signed-off-by: Luc <89928798+lewcc@users.noreply.github.com> * thank you dgamer * oopsie daisy * tests and addresses some introduced bugs * proper testing * proper ci * Update code/game/objects/structures/fluff.dm Co-authored-by: Burzah <116982774+Burzah@users.noreply.github.com> Signed-off-by: Luc <89928798+lewcc@users.noreply.github.com> * Update code/game/objects/structures/fluff.dm Co-authored-by: Burzah <116982774+Burzah@users.noreply.github.com> Signed-off-by: Luc <89928798+lewcc@users.noreply.github.com> * thank you burza 🙏 Co-authored-by: Burzah <116982774+Burzah@users.noreply.github.com> Signed-off-by: Luc <89928798+lewcc@users.noreply.github.com> * Apply suggestions from code review Co-authored-by: Burzah <116982774+Burzah@users.noreply.github.com> Signed-off-by: DGamerL <108773801+DGamerL@users.noreply.github.com> * Update code/modules/recycling/disposal-construction.dm Signed-off-by: DGamerL <108773801+DGamerL@users.noreply.github.com> --------- Signed-off-by: Luc <89928798+lewcc@users.noreply.github.com> Signed-off-by: DGamerL <108773801+DGamerL@users.noreply.github.com> Co-authored-by: DGamerL <108773801+DGamerL@users.noreply.github.com> Co-authored-by: Burzah <116982774+Burzah@users.noreply.github.com>
This commit is contained in:
@@ -12,15 +12,13 @@
|
||||
///The requirements for this frame to be placed, uses bit flags
|
||||
var/mount_requirements = 0
|
||||
|
||||
/obj/item/mounted/frame/attackby(obj/item/W, mob/user)
|
||||
..()
|
||||
if(istype(W, /obj/item/wrench))
|
||||
var/turf/user_turf = get_turf(user)
|
||||
if(metal_sheets_refunded)
|
||||
new /obj/item/stack/sheet/metal(user_turf, metal_sheets_refunded)
|
||||
if(glass_sheets_refunded)
|
||||
new /obj/item/stack/sheet/glass(user_turf, glass_sheets_refunded)
|
||||
qdel(src)
|
||||
/obj/item/mounted/frame/wrench_act(mob/living/user, obj/item/I)
|
||||
var/turf/user_turf = get_turf(user)
|
||||
if(metal_sheets_refunded)
|
||||
new /obj/item/stack/sheet/metal(user_turf, metal_sheets_refunded)
|
||||
if(glass_sheets_refunded)
|
||||
new /obj/item/stack/sheet/glass(user_turf, glass_sheets_refunded)
|
||||
qdel(src)
|
||||
|
||||
/obj/item/mounted/frame/try_build(turf/on_wall, mob/user)
|
||||
if(!..())
|
||||
|
||||
Reference in New Issue
Block a user