public static float GetEffectivness(SkillAffinity attackType, CritterAffinity defenseType)
    {
        int col = (int)attackType;
        int row = (int)defenseType;

        return(chart[row][col]);
    }
Exemplo n.º 2
0
    public void SetData(Pokemon pokemon)
    {
        _pokemon    = pokemon;
        affinityStr = _pokemon.Base.Affinity;

        nameText.text     = _pokemon.Base.Name;
        affinityText.text = affinityStr.ToString();
        attValueText.text = pokemon.Base.BaseAttack.ToString();
        defValueText.text = pokemon.Base.BaseDefense.ToString();
        spdValueText.text = pokemon.Base.BaseSpeed.ToString();

        hpBar.SetHP((float)pokemon.HP / pokemon.MaxHP);
    }