mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-23 12:07:27 +01:00
CI lint for UID() misuse (#28465)
* Adds CI check for UID() being passed parameters. * Fixes cases of UID() being passed parameters.
This commit is contained in:
@@ -425,7 +425,7 @@
|
||||
zap(target, user, list(user), power)
|
||||
|
||||
/datum/enchantment/lightning/toggle_traits(obj/item/I, mob/living/user)
|
||||
var/enchant_ID = UID(src) // so it only removes the traits applied by this specific enchant.
|
||||
var/enchant_ID = UID() // so it only removes the traits applied by this specific enchant.
|
||||
if(applied_traits)
|
||||
REMOVE_TRAIT(user, TRAIT_SHOCKIMMUNE, "[enchant_ID]")
|
||||
else
|
||||
@@ -462,7 +462,7 @@
|
||||
toggle_traits(S, user)
|
||||
|
||||
/datum/enchantment/fire/toggle_traits(obj/item/I, mob/living/user)
|
||||
var/enchant_ID = UID(src) // so it only removes the traits applied by this specific enchant.
|
||||
var/enchant_ID = UID() // so it only removes the traits applied by this specific enchant.
|
||||
if(applied_traits)
|
||||
REMOVE_TRAIT(user, TRAIT_NOFIRE, "[enchant_ID]")
|
||||
REMOVE_TRAIT(user, TRAIT_RESISTHEAT, "[enchant_ID]")
|
||||
|
||||
Reference in New Issue
Block a user