Browse Source

mobbase effect info command

lakebane
FatBoy-DOTC 5 hours ago
parent
commit
d0efd08a84
  1. 5
      src/engine/devcmd/cmds/InfoCmd.java
  2. 2
      src/engine/objects/MobBase.java

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

@ -19,6 +19,7 @@ import engine.gameManager.PowersManager; @@ -19,6 +19,7 @@ import engine.gameManager.PowersManager;
import engine.gameManager.SessionManager;
import engine.math.Vector3fImmutable;
import engine.objects.*;
import engine.powers.EffectsBase;
import engine.powers.PowersBase;
import engine.server.MBServerStatics;
import engine.util.StringUtils;
@ -503,8 +504,8 @@ public class InfoCmd extends AbstractDevCmd { @@ -503,8 +504,8 @@ public class InfoCmd extends AbstractDevCmd {
output += "RANGE: " + targetMob.mobBase.getAttackRange() + newline;
output += "Effects:" + newline;
for(MobBaseEffects mbe : targetMob.mobBase.mobbaseEffects){
PowersBase pb = PowersManager.getPowerByToken(mbe.getToken());
output += pb.name + newline;
EffectsBase eb = PowersManager.getEffectByToken(mbe.getToken());
output += eb.getName() + newline;
}
break;
case Item: //intentional passthrough

2
src/engine/objects/MobBase.java

@ -309,7 +309,7 @@ public class MobBase extends AbstractGameObject { @@ -309,7 +309,7 @@ public class MobBase extends AbstractGameObject {
public static void applyMobbaseEffects(Mob mob){
for(MobBaseEffects mbe : mob.mobBase.mobbaseEffects){
if(mob.level == mbe.getReqLvl()){
if(mob.level >= mbe.getReqLvl()){
try {
//PowersManager.applyPower(mob, mob, mob.loc, mbe.getToken(), mbe.getRank(), false);
EffectsBase effectsBase = PowersManager.getEffectByToken(mbe.getToken());

Loading…
Cancel
Save