mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-01-03 14:02:49 +00:00
Killing off inconsistencies with impact wrenches / combi-tools (#7269)
Part 1 in the "why my impact wrench no wrench bolt" saga tl;dr for end users: combitools / impact wrenches now work on everything their non-powered versions do (except mechs and RIGs, tune in next time on dragon ball Z for that) essentially all this PR does is murder every istype() check possible that could use a helper function instead, most notably many pen checks with ispen(). it also repaths combitools and powerdrills to /obj/item/weapon so they aren't instantly taken out of contention by half of the known attackby() prompts I already squashed a couple runtimes here and there from the pen changes and it's possible I missed another because pencode is another scourge upon our lives
This commit is contained in:
@@ -398,7 +398,7 @@
|
||||
custom_name = sanitize(input("Enter a custom name for your [name]", "Set Name") as text|null)
|
||||
to_chat(user,"You label \the [name] as \"[custom_name]\"")
|
||||
update_icon()
|
||||
else if(istype(I,/obj/item/weapon/wrench))
|
||||
else if(I.iswrench())
|
||||
if(installed_upgrade_chip)
|
||||
playsound(src,I.usesound, 50, 0)
|
||||
to_chat(user,"You remove \the [installed_upgrade_chip].")
|
||||
|
||||
Reference in New Issue
Block a user