From 09695d97dbf3f929b45521c59af421dc299acdac Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Sat, 18 Jan 2025 15:04:27 -0600 Subject: [PATCH] mobbase effect info command --- src/engine/devcmd/cmds/InfoCmd.java | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/src/engine/devcmd/cmds/InfoCmd.java b/src/engine/devcmd/cmds/InfoCmd.java index fa3445b1..3dcecda1 100644 --- a/src/engine/devcmd/cmds/InfoCmd.java +++ b/src/engine/devcmd/cmds/InfoCmd.java @@ -15,9 +15,11 @@ import engine.Enum.GameObjectType; import engine.Enum.TargetColor; import engine.devcmd.AbstractDevCmd; import engine.gameManager.BuildingManager; +import engine.gameManager.PowersManager; import engine.gameManager.SessionManager; import engine.math.Vector3fImmutable; import engine.objects.*; +import engine.powers.PowersBase; import engine.server.MBServerStatics; import engine.util.StringUtils; @@ -499,8 +501,13 @@ public class InfoCmd extends AbstractDevCmd { max = 321; } int min = (int)(4.469 * targetMob.level - 3.469); - output += "Min Loot Roll = " + min; - output += "Max Loot Roll = " + max; + output += "Min Loot Roll = " + min + newline; + output += "Max Loot Roll = " + max + newline; + output += "Effects:" + newline; + for(MobBaseEffects mbe : targetMob.mobBase.mobbaseEffects){ + PowersBase pb = PowersManager.getPowerByToken(mbe.getToken()); + output += pb.name + newline; + } break; case Item: //intentional passthrough case MobLoot: