From 11ab31d5332338c7a9c8aea0a497fc6b1c13c34a Mon Sep 17 00:00:00 2001 From: Flashfyre Date: Sun, 17 Mar 2024 21:56:24 -0400 Subject: [PATCH] Update score logic for bosses --- src/battle.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/battle.ts b/src/battle.ts index ed49bec86cc..844e2e73565 100644 --- a/src/battle.ts +++ b/src/battle.ts @@ -150,6 +150,10 @@ export default class Battle { let partyMemberTurnMultiplier = scene.getEnemyParty().length / 2 + 0.5; if (this.double) partyMemberTurnMultiplier /= 1.5; + for (let p of scene.getEnemyParty()) { + if (p.isBoss()) + partyMemberTurnMultiplier *= (p.bossSegments / 1.5) / scene.getEnemyParty().length; + } const turnMultiplier = Phaser.Tweens.Builders.GetEaseFunction('Sine.easeIn')(1 - Math.min(this.turn - 2, 10 * partyMemberTurnMultiplier) / (10 * partyMemberTurnMultiplier)); const finalBattleScore = Math.ceil(this.battleScore * turnMultiplier); scene.score += finalBattleScore;