public void baseform(ITransformAdapter newForm) { var newNumber = newForm.newNumber(tipo1, tipo2); this.hp = (hp / 10.0) - newNumber; this.attack = (attack / 3.0) - newNumber; this.defese = (defese / 2.0) - newNumber; this.specialAttack = (specialAttack / 2.0) - newNumber; this.specialDefese = (specialDefese / 3.0) - newNumber; this.speed = (speed / 1.0) - newNumber; }
public void transform(ITransformAdapter newForm) { var newNumber = newForm.newNumber(tipo1, tipo2); this.hp = (hp + newNumber) * 10.0; this.attack = (attack + newNumber) * 3.0; this.defese = (defese + newNumber) * 2.0; this.specialAttack = (specialAttack + newNumber) * 2.0; this.specialDefese = (specialDefese + newNumber) * 3.0; this.speed = (speed + newNumber) * 1.0; }