mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 10:43:20 +00:00
[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:
@@ -26,11 +26,11 @@
|
||||
/obj/machinery/slime/extractor/attackby(var/obj/item/W, var/mob/user)
|
||||
|
||||
//Let's try to deconstruct first.
|
||||
if(W.is_screwdriver() && !inuse)
|
||||
if(W.has_tool_quality(TOOL_SCREWDRIVER) && !inuse)
|
||||
default_deconstruction_screwdriver(user, W)
|
||||
return
|
||||
|
||||
if(W.is_crowbar())
|
||||
if(W.has_tool_quality(TOOL_CROWBAR))
|
||||
default_deconstruction_crowbar(user, W)
|
||||
return
|
||||
|
||||
|
||||
@@ -88,11 +88,11 @@
|
||||
/obj/machinery/xenobio2/manualinjector/attackby(var/obj/item/W, var/mob/user)
|
||||
|
||||
//Let's try to deconstruct first.
|
||||
if(W.is_screwdriver())
|
||||
if(W.has_tool_quality(TOOL_SCREWDRIVER))
|
||||
default_deconstruction_screwdriver(user, W)
|
||||
return
|
||||
|
||||
if(W.is_crowbar() && !occupant)
|
||||
if(W.has_tool_quality(TOOL_CROWBAR) && !occupant)
|
||||
default_deconstruction_crowbar(user, W)
|
||||
return
|
||||
|
||||
|
||||
@@ -24,11 +24,11 @@
|
||||
|
||||
/obj/machinery/slime/replicator/attackby(var/obj/item/W, var/mob/user)
|
||||
//Let's try to deconstruct first.
|
||||
if(W.is_screwdriver() && !inuse)
|
||||
if(W.has_tool_quality(TOOL_SCREWDRIVER) && !inuse)
|
||||
default_deconstruction_screwdriver(user, W)
|
||||
return
|
||||
|
||||
if(W.is_crowbar())
|
||||
if(W.has_tool_quality(TOOL_CROWBAR))
|
||||
default_deconstruction_crowbar(user, W)
|
||||
return
|
||||
|
||||
|
||||
Reference in New Issue
Block a user