Fixes Runtime in ,: bad arg name 'disable_warning'

This commit is contained in:
Atermonera
2020-05-15 13:37:14 -07:00
committed by VirgoBot
parent 51c38f8555
commit 5e6cbc0315
7 changed files with 11 additions and 7 deletions
+1 -1
View File
@@ -341,7 +341,7 @@ var/list/global/slot_flags_enumeration = list(
//If you are making custom procs but would like to retain partial or complete functionality of this one, include a 'return ..()' to where you want this to happen.
//Set disable_warning to 1 if you wish it to not give you outputs.
//Should probably move the bulk of this into mob code some time, as most of it is related to the definition of slots and not item-specific
/obj/item/proc/mob_can_equip(M as mob, slot, disable_warning = 0)
/obj/item/proc/mob_can_equip(M as mob, slot, disable_warning = FALSE)
if(!slot) return 0
if(!M) return 0
@@ -18,7 +18,7 @@
/obj/item/weapon/storage/internal/attack_hand()
return //make sure this is never picked up
/obj/item/weapon/storage/internal/mob_can_equip(M as mob, slot, disable_warning = 0)
/obj/item/weapon/storage/internal/mob_can_equip(M as mob, slot, disable_warning = FALSE)
return 0 //make sure this is never picked up
//Helper procs to cleanly implement internal storages - storage items that provide inventory slots for other items.