Beispiel #1
0
    public virtual void OnUnequip(Classes user)
    {
        if (!this.user.Equals(user))
        {
            return;
        }

        equipped  = false;
        this.user = null;

        user.AddStats(-Str, -Dex, -Con, -Int, -Will, -End);

        user.UpdateStats();

        user.AddResistences(-stunResist, -fireResist, -poisonResist, -dazeResist, -blindResist, -slowResist, -possessResist);
    }
Beispiel #2
0
    public virtual void OnEquip(Classes user)
    {
        if (equipped)
        {
            return;
        }
        equipped  = true;
        this.user = user;

        user.AddStats(Str, Dex, Con, Int, Will, End);

        user.UpdateStats();

        user.AR         += AR;
        user.initiative += initiative;
        user.speed      += speed;
        user.SR         += SR;
        user.BAB        += BAB;

        user.AddResistences(stunResist, fireResist, poisonResist, dazeResist, blindResist, slowResist, possessResist);
    }