Browse Source

mobbase effect info command

lakebane
FatBoy-DOTC 11 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;
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.EffectsBase;
import engine.powers.PowersBase; import engine.powers.PowersBase;
import engine.server.MBServerStatics; import engine.server.MBServerStatics;
import engine.util.StringUtils; import engine.util.StringUtils;
@ -503,8 +504,8 @@ public class InfoCmd extends AbstractDevCmd {
output += "RANGE: " + targetMob.mobBase.getAttackRange() + newline; output += "RANGE: " + targetMob.mobBase.getAttackRange() + newline;
output += "Effects:" + newline; output += "Effects:" + newline;
for(MobBaseEffects mbe : targetMob.mobBase.mobbaseEffects){ for(MobBaseEffects mbe : targetMob.mobBase.mobbaseEffects){
PowersBase pb = PowersManager.getPowerByToken(mbe.getToken()); EffectsBase eb = PowersManager.getEffectByToken(mbe.getToken());
output += pb.name + newline; output += eb.getName() + newline;
} }
break; break;
case Item: //intentional passthrough case Item: //intentional passthrough

2
src/engine/objects/MobBase.java

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

Loading…
Cancel
Save