Replaces some old code w/ IsAdvancedToolUser and fixes twohanded weapons for simple_mobs

This commit is contained in:
Casey
2022-07-29 20:48:29 +00:00
committed by CHOMPStation2
parent 51104e838f
commit ac204e7749
7 changed files with 340 additions and 7 deletions
+1 -1
View File
@@ -361,7 +361,7 @@ var/list/mining_overlay_cache = list()
//Not even going to touch this pile of spaghetti
/turf/simulated/mineral/attackby(obj/item/weapon/W as obj, mob/user as mob)
if (!(istype(usr, /mob/living/carbon/human) || ticker) && ticker.mode.name != "monkey")
if (!user.IsAdvancedToolUser())
to_chat(user, "<span class='warning'>You don't have the dexterity to do this!</span>")
return