Exemple #1
0
    //Sets base stats, components, and initial display
    protected virtual void Start()
    {
        ec = new EffectCalculator(this, bc);
        bc = new BattleCalculator(this, ec);

        bc.ResetStats();
        UpdateDisplay();

        normal = render.color; //Set the normal color to the sprite's starting color
    }
    //Sets base stats, components, and initial display
    protected virtual void Start()
    {
        ec = new EffectCalculator(this, bc, pc);
        bc = new BattleCalculator(this, ec);

        bc.ResetStats();
        UpdateDisplay();

        normal = render.color; //Set the normal color to the sprite's starting color

        //Innate immunites
        if (type == TYPE.DROID && type != TYPE.MAGIC_DROID)
        {
            immunities.Add("POISON"); //Droids immune to poison
        }

        if (type != TYPE.DROID)
        {
            immunities.Add("CORROSION"); //Non-droids immune to corrosion
        }
    }
Exemple #3
0
 public BattleCalculator(Entity u, EffectCalculator calc)
 {
     user = u;
     ec   = calc;
 }