// Global utils
    public static string EffectivnessName(Effectivness e)
    {
        switch(e)
        {
            case Effectivness.Immune: return "Immune";
            case Effectivness.Normal: return "1X";
            case Effectivness.Super_Effective: return "2X";
            case Effectivness.Weak: return "1/2X";
        }

        return "";
    }
Beispiel #2
0
    private bool subCheckSelectionButton(G_TypeChoiceButton b, Effectivness compare)
    {
        // Pull it's effectivness
        Effectivness e = TypeLibrary.instance.Library[b.tid].CheckMatch(currentEnemyTID);

        // Update the button text to reflect it
        b.SetText(GlobalConfiguration.EffectivnessName(e));

        if ((int)e <= (int)compare){
            return true;
        }
        else{
            return false;
        }
    }