Beispiel #1
0
        private void LoadData(Actor a)
        {
            // declar vars
            int oldLvl = a.Level;
            int oldHP  = a.HPBaseMax;
            int oldMP  = a.MPBaseMax;
            int oldAtt = a.CurrentAttack;
            int oldDef = a.CurrentDefense;

            RPGCalc calc = new RPGCalc();

            calc.LevelUpActor(a);

            int newLvl = a.Level;
            int newHP  = a.HPBaseMax;
            int newMP  = a.MPBaseMax;
            int newAtt = a.CurrentAttack;
            int newDef = a.CurrentDefense;

            // display change in vars
            Add("Level: " + '\t' + oldLvl.ToString() + '\t' + " -> " + '\t' + newLvl);
            Add("HP: " + '\t' + oldHP.ToString() + '\t' + " -> " + '\t' + newHP);
            Add("MP: " + '\t' + oldMP.ToString() + '\t' + " -> " + '\t' + newMP);
            Add("Att: " + '\t' + oldAtt.ToString() + '\t' + " -> " + '\t' + newAtt);
            Add("Def: " + '\t' + oldDef.ToString() + '\t' + " -> " + '\t' + newDef);
        }