Refactors tool typechecks, refactors transforming tools, makes Altevian wrench into one

This commit is contained in:
Heroman
2023-10-01 09:34:43 +10:00
parent d62009d967
commit 9a94306585
310 changed files with 1036 additions and 946 deletions
+1 -1
View File
@@ -22,7 +22,7 @@
to_chat(user, "The maintenance panel is open.")
/obj/machinery/disperser/attackby(obj/item/I, mob/user)
if(I && I.is_wrench())
if(I && I.has_tool_quality(TOOL_WRENCH))
if(panel_open)
user.visible_message("<b>\The [user]</b> rotates \the [src] with \the [I].",
"<span class='notice'>You rotate \the [src] with \the [I].</span>")
+2 -2
View File
@@ -78,7 +78,7 @@
var/list/waypoints = S.get_waypoints(name)
for(var/obj/effect/shuttle_landmark/LZ in waypoints)
if(LZ.is_valid(src))
res["[waypoints[LZ]] - [LZ.name]"] = LZ
res["[waypoints[LZ]] - [LZ.name]"] = LZ
return res
/datum/shuttle/autodock/overmap/get_location_name()
@@ -167,7 +167,7 @@
..()
/obj/structure/fuel_port/attackby(obj/item/weapon/W as obj, mob/user as mob)
if(W.is_crowbar())
if(W.has_tool_quality(TOOL_CROWBAR))
if(opened)
to_chat(user, "<spawn class='notice'>You tightly shut \the [src] door.")
playsound(src, 'sound/effects/locker_close.ogg', 25, 0, -3)
@@ -145,9 +145,9 @@
/obj/machinery/shipsensors/attackby(obj/item/weapon/W, mob/user)
var/damage = max_health - health
if(damage && istype(W, /obj/item/weapon/weldingtool))
if(damage && W.has_tool_quality(TOOL_WELDER))
var/obj/item/weapon/weldingtool/WT = W
var/obj/item/weapon/weldingtool/WT = W.get_welder()
if(!WT.isOn())
return