Refactors faction lists to use getters and setters and be cached (#94490)

This commit is contained in:
Bloop
2026-01-19 04:12:35 +01:00
committed by GitHub
parent 8a8e9f7c88
commit 68153c2333
158 changed files with 757 additions and 393 deletions
+1 -1
View File
@@ -487,7 +487,7 @@
spawn_types = list(spawned_mob_type), \
spawn_time = 5 SECONDS, \
max_spawned = 3, \
faction = mod.wearer.faction, \
faction = mod.wearer.get_faction(), \
)
RegisterSignal(mob_spawner, COMSIG_SPAWNER_SPAWNED, PROC_REF(new_mob))
RegisterSignal(mod.wearer, COMSIG_MOVABLE_MOVED, PROC_REF(spread_flowers))
+1 -1
View File
@@ -491,7 +491,7 @@
//BORG, Ninja objective converts a borg to a syndicate version
/mob/living/silicon/robot/ninjadrain_act(mob/living/carbon/human/ninja, obj/item/mod/module/hacker/hacking_module)
if(!ninja || !hacking_module || (ROLE_NINJA in faction))
if(!ninja || !hacking_module || (has_faction(ROLE_NINJA)))
return NONE
to_chat(src, span_danger("Warni-***BZZZZZZZZZRT*** UPLOADING SPYDERPATCHER VERSION 9.5.2..."))