gave player extra lives, decreased damage taken by player
This commit is contained in:
parent
805d0af3b8
commit
4b65a8d3fd
|
@ -129,7 +129,7 @@ export default class PlayerController extends StateMachineAI implements BattlerA
|
||||||
lifestealratio : number = 0; //percent of damage to steal
|
lifestealratio : number = 0; //percent of damage to steal
|
||||||
hasOneShot: Boolean = false;
|
hasOneShot: Boolean = false;
|
||||||
extraDotDmg : number =0;
|
extraDotDmg : number =0;
|
||||||
lives: number = 1;
|
lives: number = 2;
|
||||||
cooldownMultiplier : number = 1;
|
cooldownMultiplier : number = 1;
|
||||||
fullHpBonus: Boolean = false;
|
fullHpBonus: Boolean = false;
|
||||||
|
|
||||||
|
@ -497,7 +497,7 @@ export default class PlayerController extends StateMachineAI implements BattlerA
|
||||||
case BuffCategory.EXTRA:
|
case BuffCategory.EXTRA:
|
||||||
extraBuffs.sort(() => 0.5 - Math.random());
|
extraBuffs.sort(() => 0.5 - Math.random());
|
||||||
if(extraBuffs.length ==0 ){
|
if(extraBuffs.length ==0 ){
|
||||||
selected.push({type:BuffType.EXTRALIFE, value:1, category: BuffCategory.EXTRA, string: "\n\nGain an \nExtra Life"});
|
selected.push({type:BuffType.EXTRALIFE, value:2, category: BuffCategory.EXTRA, string: "\n\nGain 2 \nExtra Lives"});
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
selected.push(extraBuffs.pop());
|
selected.push(extraBuffs.pop());
|
||||||
|
@ -612,7 +612,7 @@ export default class PlayerController extends StateMachineAI implements BattlerA
|
||||||
this.shieldDamage += buff.value ;
|
this.shieldDamage += buff.value ;
|
||||||
break;
|
break;
|
||||||
case BuffType.EXTRALIFE:
|
case BuffType.EXTRALIFE:
|
||||||
this.lives ++;
|
this.lives += buff.value;
|
||||||
PlayerController.appliedBuffs.pop(); //pop- dont want to give extra life in next lvl
|
PlayerController.appliedBuffs.pop(); //pop- dont want to give extra life in next lvl
|
||||||
break;
|
break;
|
||||||
case BuffType.LIFESTEAL:
|
case BuffType.LIFESTEAL:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user