示例#1
0
    public void takeDamage(Character source, string type, string amt)
    {
        float  trueAmt  = parseNum(this, source, amt);
        string trueType = parseType(this, source, type);
        float  damAmt   = stats.calcTakeDamage(trueAmt, trueType);


        stats.takeDamage(damAmt);
        updateInterface();
    }