Constructs now have their respective factions (#90690)

## About The Pull Request

Holy constructs are now part of a new Holy faction, that all Chaplains
get once they choose a sect.
Wizard constructs are now part of the Wizard faction
Juggernaut's Gaunlet Echo spell now respects factions (so ignores cult
as cult, wizards as wizard, and their creator as holy)


https://github.com/user-attachments/assets/e56f958d-fffa-4534-8b39-a95f9d160865

## Why It's Good For The Game

Makes constructs less likely to friendly fire and makes holy constructs
able to use their spells to fight Cult.

## Changelog

🆑 Ezel/Improvedname, JohnFulpWillard
fix: Constructs now have their proper factions, so Wizard constructs
can't hit Wizard Apprentices.
fix: Juggernaut's Gauntlet echo spell now respects factions.
/🆑
This commit is contained in:
John Willard
2025-04-19 20:13:12 +02:00
committed by GitHub
parent 5769be29d7
commit 2ef9be35d9
8 changed files with 16 additions and 1 deletions
@@ -28,3 +28,4 @@
to_fire.aim_projectile(target, caster)
SEND_SIGNAL(caster, COMSIG_MOB_SPELL_PROJECTILE, src, target, to_fire)
to_fire.fire()
return to_fire
@@ -12,3 +12,8 @@
spell_requirements = NONE
projectile_type = /obj/projectile/magic/aoe/juggernaut
/datum/action/cooldown/spell/basic_projectile/juggernaut/fire_projectile(atom/target, mob/caster)
var/obj/projectile/magic/aoe/juggernaut/to_fire = ..()
to_fire.ignored_factions = caster.faction
return to_fire