示例#1
0
 public Pet(float procChance, float scaling, float range, PetAbilty _petAbility, PetProcType _petProcType)
 {
     ProcChance  = procChance;
     Scaling     = scaling / 100f;
     Range       = range / 100f;
     petAbility  = _petAbility;
     petProcType = _petProcType;
 }
示例#2
0
    public static PetProcType GetProcTypeFromString(String s)
    {
        PetProcType petProcType = PetProcType.AllType;

        switch (s)
        {
        case "PerHit":
            petProcType = PetProcType.PerHit;
            break;

        case "GetHit":
            petProcType = PetProcType.GetHit;
            break;

        case "PerTurn":
            petProcType = PetProcType.PerTurn;
            break;

        case "AllType":
            petProcType = PetProcType.AllType;
            break;
        }
        return(petProcType);
    }
示例#3
0
    public void PetSelection(Character author, Character[] party, Character[] enemies, PetProcType currentPetProcType)
    {
        if (petProcType == currentPetProcType || petProcType == PetProcType.AllType)
        {
            if (Logic.RNGroll(ProcChance))
            {
                StoreRandomFactors(author);
                GetValue(author);
                switch (petAbility)
                {
                case PetAbilty.TeamHeal:
                    TeamHeal(party);
                    break;

                case PetAbilty.SpreahHeal:
                    SpreadHeal(party);
                    break;

                case PetAbilty.SelfHeal:
                    SelfHeal(author);
                    break;

                case PetAbilty.WeakestHeal:
                    WeakestHeal(party);
                    break;

                case PetAbilty.SpreadShield:
                    SpreadShield(party);
                    break;

                case PetAbilty.TeamHealShield:
                    TeamHealShield(party);
                    break;

                case PetAbilty.TeamShield:
                    TeamShield(party);
                    break;

                case PetAbilty.ClosestAttack:
                    ClosestAttack(enemies);
                    break;

                case PetAbilty.WeakestAttack:
                    WeakestAttack(enemies);
                    break;

                case PetAbilty.AOEAttack:
                    AoeAttack(enemies);
                    break;

                case PetAbilty.RandomAttack:
                    RandomAttack(enemies);
                    break;
                }
            }
        }
    }
示例#4
0
 public Pet()
 {
     ProcChance  = 0;
     petProcType = PetProcType.AllType;
 }