Example #1
0
 public RaidBoss(RaidBosses._RaidBoss raidboss, Common.IVScore baseIV, Common.PossibilitySet.Possibility[] regular, Common.PossibilitySet.Possibility[] boosted, DateTime updateDateTime)
 {
     last_updated = updateDateTime;
     Pokemon      = new Pokemon(raidboss.id, raidboss.name, raidboss.FormId);
     raid_cp      = (int)Math.Floor((baseIV.attack + 15) * Math.Sqrt(baseIV.defense + 15) * Math.Sqrt(RaidHPBoost[raidboss.tier]) / 10);
     Regular      = new Common.PossibilitySet(regular);
     Boosted      = new Common.PossibilitySet(boosted);
 }
Example #2
0
 public Encounter(Pokemon pokemon, Common.PossibilitySet.Possibility[] possibilities, DateTime updateDateTime)
 {
     last_updated = updateDateTime;
     Pokemon      = new Pokemon(pokemon);
     Regular      = new Common.PossibilitySet(possibilities);
 }