[MIRROR] Refactors tool typechecks, refactors transforming tools, makes Altevian wrench into one (#7062)

Co-authored-by: Heroman3003 <31296024+Heroman3003@users.noreply.github.com>
Co-authored-by: Nadyr <41974248+Darlantanis@users.noreply.github.com>
This commit is contained in:
CHOMPStation2
2023-10-04 18:37:41 -04:00
committed by GitHub
co-authored by Heroman3003 Nadyr
parent 00a5f09ad4
commit d2e66e6410
310 changed files with 1035 additions and 944 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