public BattlePokemon(Pokemon p) { this.mon = p; maxHealth = mon.getRealStat("hp"); currentHealth = maxHealth; status = Status.STATE_HEALTHY; currentBoosts = new Boosts(); type1 = mon.type1; type2 = mon.type2; item = mon.item; level = 100; //Assume max level initBoosts(); canUseFakeout = true; hasUsedHazard = false; }
public BattlePokemon(Pokemon p) { this.mon = p; maxHealth = mon.getRealStat("hp"); currentHealth = maxHealth; status = Status.STATE_HEALTHY; currentBoosts = new Boosts(); type1 = mon.type1; type2 = mon.type2; item = mon.item; level = 100; //TODO: actually find this, for now just assume its max. initBoosts(); }
public float getStat(string stat) { float statusmod = 1f; float itemmod = 1f; float real = mon.getRealStat(stat); float boosts = 1f; if (status == Status.STATE_PAR && stat == "spe") { statusmod = 0.25f; } else if (status == Status.STATE_BRN && stat == "atk") { statusmod = 0.5f; } boosts = getBoostModifier(stat); return(real * statusmod * itemmod * boosts); }