public Pet(float procChance, float scaling, float range, PetAbilty _petAbility, PetProcType _petProcType) { ProcChance = procChance; Scaling = scaling / 100f; Range = range / 100f; petAbility = _petAbility; petProcType = _petProcType; }
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); }
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; } } } }
public Pet() { ProcChance = 0; petProcType = PetProcType.AllType; }