From 3189ac0d56a31f61d38efaa4aae82914aebd6fe8 Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Thu, 9 Jun 2022 18:55:16 -0500 Subject: [PATCH] mob powers now scale based on their level --- src/engine/ai/utilities/CombatUtilities.java | 29 +++++++++++++++++++- 1 file changed, 28 insertions(+), 1 deletion(-) diff --git a/src/engine/ai/utilities/CombatUtilities.java b/src/engine/ai/utilities/CombatUtilities.java index 2c092188..c29d6fe0 100644 --- a/src/engine/ai/utilities/CombatUtilities.java +++ b/src/engine/ai/utilities/CombatUtilities.java @@ -311,7 +311,34 @@ public class CombatUtilities { if(count == random) { powerToken = entry.getKey(); - powerRank = entry.getValue(); + //powerRank = entry.getValue(); + switch(agent.getLevel()) + { + default: + powerRank = 1; + break; + case 10: + powerRank = 5; + break; + case 20: + powerRank = 10; + break; + case 30: + powerRank = 15; + break; + case 40: + powerRank = 25; + break; + case 50: + powerRank = 30; + break; + case 60: + powerRank = 35; + break; + case 70: + powerRank = 40; + break; + } System.out.println(agent.getMobBase().getFirstName() + " is casting: " + PowersManager.getPowerByToken(powerToken).skillName); PowersManager.applyPower(agent,target,target.getLoc(),powerToken,powerRank, false); }