7 public bool IsEffective(
Thing t)
9 return t.c_idDeity.IsEmpty() || t.c_idDeity ==
EClass.pc.idFaith;
33 public void OnEquip(
Thing t)
35 if (!this.IsEffective(t))
39 foreach (
Element element
in t.elements.dict.Values)
41 if (element.IsGlobalElement)
43 base.ModBase(element.id, element.Value).vExp = element.vExp;
51 public void OnUnequip(
Thing t)
53 if (!this.IsEffective(t))
57 foreach (
Element element
in t.elements.dict.Values)
59 if (element.IsGlobalElement)
61 base.ModBase(element.id, -element.Value);
69 public void CheckDirty()
75 foreach (
Chara chara
in EClass.game.cards.globalCharas.Values)
77 if (chara.IsPCFaction)
82 if (
EClass.core.IsGameStarted)
86 if (chara2.IsPCFactionMinion)
88 chara2.Refresh(
false);
96 public void OnLeaveFaith()
98 foreach (
Chara chara
in EClass.game.cards.globalCharas.Values)
100 if (chara.IsPCFaction)
102 this.OnRemoveMember(chara);
108 public void OnJoinFaith()
110 foreach (
Chara chara
in EClass.game.cards.globalCharas.Values)
112 if (chara.IsPCFaction)
114 this.OnAddMemeber(chara);
120 public void OnAddMemeber(
Chara c)
122 foreach (
BodySlot bodySlot
in c.body.slots)
124 if (bodySlot.thing !=
null)
126 this.OnEquip(bodySlot.thing);
132 public void OnRemoveMember(
Chara c)
134 foreach (
BodySlot bodySlot
in c.body.slots)
136 if (bodySlot.thing !=
null)
138 this.OnUnequip(bodySlot.thing);