From d60c80ac60f4a4646970554c7aa866c859204b69 Mon Sep 17 00:00:00 2001 From: "Kyle J. Kemp" Date: Thu, 21 Sep 2023 17:01:18 -0500 Subject: [PATCH] Update player.service.ts --- server/src/modules/player/player.service.ts | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/server/src/modules/player/player.service.ts b/server/src/modules/player/player.service.ts index 8394ae5..2d210d3 100644 --- a/server/src/modules/player/player.service.ts +++ b/server/src/modules/player/player.service.ts @@ -550,20 +550,24 @@ export class PlayerService { }); if (this.playerHelper.isDeityDefenseBuffActive(player)) { - base.toughness *= percentNumberAsMultiplier( + base.toughness += base.toughness * percentNumberAsMultiplier( this.constants.worshipDefenseBoost, + 0, ); - base.resistance *= percentNumberAsMultiplier( + base.resistance += base.resistance * percentNumberAsMultiplier( this.constants.worshipDefenseBoost, + 0, ); } if (this.playerHelper.isDeityOffenseBuffActive(player)) { - base.power *= percentNumberAsMultiplier( + base.power += base.power * percentNumberAsMultiplier( this.constants.worshipOffenseBoost, + 0, ); - base.magic *= percentNumberAsMultiplier( + base.magic += base.magic * percentNumberAsMultiplier( this.constants.worshipOffenseBoost, + 0, ); }