diff --git a/dist/shattered_sword_assets/spritesheets/Archer.json b/dist/shattered_sword_assets/spritesheets/Archer.json index 3761c20..94b5eab 100644 --- a/dist/shattered_sword_assets/spritesheets/Archer.json +++ b/dist/shattered_sword_assets/spritesheets/Archer.json @@ -39,7 +39,7 @@ }, { "index": 5, - "duration": 10 + "duration": 30 }, { "index": 6, diff --git a/src/shattered_sword/AI/ArcherAI.ts b/src/shattered_sword/AI/ArcherAI.ts index 3c919cd..4fc11d9 100644 --- a/src/shattered_sword/AI/ArcherAI.ts +++ b/src/shattered_sword/AI/ArcherAI.ts @@ -17,6 +17,6 @@ export default class ArcherAI extends EnemyAI { } canAttack(position: Vec2): boolean { - return this.attackTimer.isStopped() && this.owner.position.distanceTo(position)<=96; + return this.attackTimer.isStopped() && this.owner.position.distanceTo(position)<=128; } } \ No newline at end of file diff --git a/src/shattered_sword/AI/BossAI.ts b/src/shattered_sword/AI/BossAI.ts index f679e25..bf92606 100644 --- a/src/shattered_sword/AI/BossAI.ts +++ b/src/shattered_sword/AI/BossAI.ts @@ -17,7 +17,7 @@ export default class BossAI extends EnemyAI { } canAttack(position: Vec2): boolean { - return this.attackTimer.isStopped() && this.owner.position.distanceTo(position)<=128; + return this.attackTimer.isStopped() && this.owner.position.distanceTo(position)<=225; } damage(damage: number): void { diff --git a/src/shattered_sword/Player/PlayerController.ts b/src/shattered_sword/Player/PlayerController.ts index 727e013..6643db4 100644 --- a/src/shattered_sword/Player/PlayerController.ts +++ b/src/shattered_sword/Player/PlayerController.ts @@ -191,9 +191,10 @@ export default class PlayerController extends StateMachineAI implements BattlerA } static reset(){ - this.appliedBuffs = new Array(); - this.buffPool = new Array(); - this.enemiesKilled = 0; + PlayerController.appliedBuffs = new Array(); + PlayerController.buffPool = new Array(); + PlayerController.enemiesKilled = 0; + PlayerController.level = 1; } initializePlatformer(): void {