Browse Source

mobbase effect info command

lakebane
FatBoy-DOTC 8 hours ago
parent
commit
09695d97db
  1. 11
      src/engine/devcmd/cmds/InfoCmd.java

11
src/engine/devcmd/cmds/InfoCmd.java

@ -15,9 +15,11 @@ import engine.Enum.GameObjectType;
import engine.Enum.TargetColor; import engine.Enum.TargetColor;
import engine.devcmd.AbstractDevCmd; import engine.devcmd.AbstractDevCmd;
import engine.gameManager.BuildingManager; import engine.gameManager.BuildingManager;
import engine.gameManager.PowersManager;
import engine.gameManager.SessionManager; import engine.gameManager.SessionManager;
import engine.math.Vector3fImmutable; import engine.math.Vector3fImmutable;
import engine.objects.*; import engine.objects.*;
import engine.powers.PowersBase;
import engine.server.MBServerStatics; import engine.server.MBServerStatics;
import engine.util.StringUtils; import engine.util.StringUtils;
@ -499,8 +501,13 @@ public class InfoCmd extends AbstractDevCmd {
max = 321; max = 321;
} }
int min = (int)(4.469 * targetMob.level - 3.469); int min = (int)(4.469 * targetMob.level - 3.469);
output += "Min Loot Roll = " + min; output += "Min Loot Roll = " + min + newline;
output += "Max Loot Roll = " + max; 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; break;
case Item: //intentional passthrough case Item: //intentional passthrough
case MobLoot: case MobLoot:

Loading…
Cancel
Save