Example #1
0
    // PostSerialize
    public void PostSerialize()
    {
        currentAttunementId = 0;
        damageMultiplier    = 1.0f;

        if (!Weapon.idToWeapon.ContainsKey(id))
        {
            Weapon.nameToWeapon[name] = this;
            Weapon.idToWeapon[id]     = this;
        }

        summonSkill = new Skill("Summon " + name, Weapon.SummonSkillIdStart + id, Skill.SkillType.Normal, false, null);
        summonSkill.stages.Add(new Skill.Stage());
        summonSkill.weapon = this;

        Attunement.PostSerialize(this, attunements);
    }
Example #2
0
 // Post serialization
 public void PostSerialize()
 {
     Weapon.PostSerialize(weapons);
     runeDetonators.PostSerialize(null);
 }