EA 23.351.2 Nightly โ
October 3, 2026
2 files modified.
Important Changes โ
None.
AI_Idle โ
public override IEnumerable<Status> Run()
cs
thing8 = ThingGen.CreateFromCategory((EClass.rnd(5) != 0) ? "spellbook" : "ancientbook");
thing8.isNPCProperty = true;
}
if (!(thing8.id == "1084") || !owner.IsPCFaction)
if ((!(thing8.id == "1084") || !owner.IsPCFaction) && !(thing8.id == "book_death") && !(thing8.id == "book_black"))
{
if (!owner.HasElement(285))
{TraitBaseSpellbook โ
public override void OnRead(Chara c)
cs
switch (BookType)
{
case Type.BlackNote:
{
c.Say("book_decode", c, name);
c.Say("dingExp", c);
c.feat += (c.IsPC ? 1 : 4);
c.PlaySound("godbless");
c.PlayEffect("aura_heaven");
(owner.c_idRefName.IsEmpty() ? EClass.pc : EClass._map.FindChara(owner.c_idRefName))?.Die();
Chara chara = (owner.c_idRefName.IsEmpty() ? EClass.pc : EClass._map.FindChara(owner.c_idRefName));
if (chara != null && (c.IsPC || chara != EClass.pc))
{
chara.Die();
}
break;
}
case Type.Ancient:
c.Say("book_decode", c, name);
if (!c.IsPC)