modified dot effects, changed range buff

This commit is contained in:
OfficialCHenry 2022-04-25 21:31:30 -04:00
parent e4500c9e6f
commit da40ee0b59
2 changed files with 6 additions and 5 deletions

View File

@ -216,17 +216,18 @@ export default class EnemyAI extends StateMachineAI implements BattlerAI {
if(this.burnTimer.isStopped() && this.burnCounter >0){ if(this.burnTimer.isStopped() && this.burnCounter >0){
this.burnCounter --; this.burnCounter --;
this.burnTimer.start(); this.burnTimer.start();
this.damage(5 + (<PlayerController>this.player._ai).extraDotDmg + (<PlayerController>this.player._ai).CURRENT_ATK * .2); this.damage(12 + (<PlayerController>this.player._ai).extraDotDmg );
} }
if(this.poisonTimer.isStopped() && this.poisonCounter >0){ if(this.poisonTimer.isStopped() && this.poisonCounter >0){
this.poisonCounter --; this.poisonCounter --;
this.poisonTimer.start(); this.poisonTimer.start();
this.damage(5 + (<PlayerController>this.player._ai).extraDotDmg + (<PlayerController>this.player._ai).CURRENT_ATK * .2); this.damage( Math.round(this.CURRENT_HP/20) + (<PlayerController>this.player._ai).extraDotDmg );
} }
if(this.bleedTimer.isStopped() && this.bleedCounter >0){ if(this.bleedTimer.isStopped() && this.bleedCounter >0){
this.bleedCounter --; this.bleedCounter --;
this.bleedTimer.start(); this.bleedTimer.start();
this.damage(5 + (<PlayerController>this.player._ai).extraDotDmg + (<PlayerController>this.player._ai).CURRENT_ATK * .08); this.damage(3 +Math.round(this.CURRENT_HP/33) + (<PlayerController>this.player._ai).extraDotDmg );
} }
if (this.healthBar) { if (this.healthBar) {

View File

@ -366,7 +366,7 @@ export default class PlayerController extends StateMachineAI implements BattlerA
buffs.push({type:BuffType.FLAT_ATK, value:num, category: BuffCategory.EXTRA}, buffs.push({type:BuffType.FLAT_ATK, value:num, category: BuffCategory.EXTRA},
{type:BuffType.SPEED, value:num, category: BuffCategory.EXTRA}, {type:BuffType.SPEED, value:num, category: BuffCategory.EXTRA},
{type:BuffType.FLAT_HEALTH, value:num, category: BuffCategory.SHIELD}, {type:BuffType.FLAT_HEALTH, value:num, category: BuffCategory.SHIELD},
{type:BuffType.RANGE, value:num/10, category: BuffCategory.ATTACK}, {type:BuffType.RANGE, value:num/100, category: BuffCategory.ATTACK, string: "\n\nIncrease range \nby "+num/100+"%"},
{type:BuffType.ATKSPEED, value:num, category: BuffCategory.ATTACK}, {type:BuffType.ATKSPEED, value:num, category: BuffCategory.ATTACK},
); );
@ -560,7 +560,7 @@ export default class PlayerController extends StateMachineAI implements BattlerA
this.damage_multiplier *= (1-buff.value); this.damage_multiplier *= (1-buff.value);
break; break;
case BuffType.RANGE: case BuffType.RANGE:
//this.CURRENT_BUFFS.range += buff.value;
if (item) { if (item) {
(<Weapon>item).EXTRA_RANGE += buff.value; (<Weapon>item).EXTRA_RANGE += buff.value;
} }