From ddb9fad13043937a008bc21ae206de3941e70c82 Mon Sep 17 00:00:00 2001 From: Reedux Date: Tue, 12 Jan 2021 17:27:03 +0000 Subject: [PATCH] Beast Dietary Supplements now also affect the pet's loyalty gain by the same amount as the supplements effect on experience gain. https://github.com/SWG-Source/qa-testing/issues/287 --- sku.0/sys.server/compiled/game/script/library/beast_lib.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sku.0/sys.server/compiled/game/script/library/beast_lib.java b/sku.0/sys.server/compiled/game/script/library/beast_lib.java index fba5eb54b..03925913d 100755 --- a/sku.0/sys.server/compiled/game/script/library/beast_lib.java +++ b/sku.0/sys.server/compiled/game/script/library/beast_lib.java @@ -1097,6 +1097,9 @@ public class beast_lib extends script.base_script modifiedHappiness *= multiplier; } float newLoyalty = loyalty + modifiedHappiness; + if (buff.hasBuff(getBCDBeastCalled(bcd), "bm_beast_steroid")) { + newLoyalty *= utils.getIntScriptVar(getBCDBeastCalled(bcd), "beastBuff.beastXpBonusPercent"); + } if (loyalty < LOYALTY_LVL_TWO && newLoyalty >= LOYALTY_LVL_TWO) { incrementBeastLoyaltyLevel(bcd);