Ejemplo n.º 1
0
 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;
 }
Ejemplo n.º 2
0
        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();

           
        }
Ejemplo n.º 3
0
        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);
        }