Converts many proc overrides to properly use list/modifiers, lots of other smaller things (#56847)

Converts many proc overrides to properly use list/modifiers, fixes some spots where modifiers should have been passed, calls modifiers what it is, a lazy list, and cleans up some improper arg names like L, M, C, and N. Oh and I think there was a spot where someone was trying to pass M.name in as a string, but forgot to wrap it in []. I fixed that too.
This commit is contained in:
LemonInTheDark
2021-02-16 09:18:46 -05:00
committed by GitHub
parent 93e98cdd8d
commit 5c22a0cfc1
254 changed files with 837 additions and 837 deletions
+1 -1
View File
@@ -87,7 +87,7 @@
if(bombassembly)
bombassembly.on_found(finder)
/obj/item/onetankbomb/attack_hand() //also for mousetraps
/obj/item/onetankbomb/attack_hand(mob/user, list/modifiers) //also for mousetraps
. = ..()
if(.)
return
+1 -1
View File
@@ -93,7 +93,7 @@
if(a_right)
a_right.dropped()
/obj/item/assembly_holder/attack_hand(mob/living/user, modifiers)//Perhapse this should be a holder_pickup proc instead, can add if needbe I guess
/obj/item/assembly_holder/attack_hand(mob/living/user, list/modifiers)//Perhapse this should be a holder_pickup proc instead, can add if needbe I guess
. = ..()
if(.)
return
+1 -1
View File
@@ -125,7 +125,7 @@
return
refreshBeam()
/obj/item/assembly/infra/attack_hand()
/obj/item/assembly/infra/attack_hand(mob/user, list/modifiers)
. = ..()
refreshBeam()
+1 -1
View File
@@ -94,7 +94,7 @@
//ATTACK HAND IGNORING PARENT RETURN VALUE
/obj/item/assembly/mousetrap/attack_hand(mob/living/carbon/human/user)
/obj/item/assembly/mousetrap/attack_hand(mob/living/carbon/human/user, list/modifiers)
if(armed)
if((HAS_TRAIT(user, TRAIT_DUMB) || HAS_TRAIT(user, TRAIT_CLUMSY)) && prob(50))
var/which_hand = BODY_ZONE_PRECISE_L_HAND