Commit 85fe1786 authored by Guillaume Dewisme's avatar Guillaume Dewisme

feat/player special ability impl

parent f67862bb
...@@ -24,15 +24,16 @@ public class Player extends Entity { ...@@ -24,15 +24,16 @@ public class Player extends Entity {
public void useSpecialAbility(){ public void useSpecialAbility(){
if(this.specialAbility == SpecialAbility.DAMAGE){ if(this.specialAbility == SpecialAbility.DAMAGE){
this.setDamage(MAX_ENDURANCE); this.setDamage(this.getDamage()*2);
} }
if(this.specialAbility == SpecialAbility.FULLHEAL){ if(this.specialAbility == SpecialAbility.FULLHEAL){
this.setPv(this.getPvMax());
} }
if(this.specialAbility == SpecialAbility.SHIELD ){ if(this.specialAbility == SpecialAbility.SHIELD ){
//to-do
//add random for variation damage each round
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment