added power casting for pets who have DB entires
This commit is contained in:
@@ -32,6 +32,7 @@ import engine.net.client.msg.ManageCityAssetsMsg;
|
||||
import engine.net.client.msg.PetMsg;
|
||||
import engine.net.client.msg.PlaceAssetMsg;
|
||||
import engine.powers.EffectsBase;
|
||||
import engine.powers.PowersBase;
|
||||
import engine.server.MBServerStatics;
|
||||
import engine.server.world.WorldServer;
|
||||
import org.joda.time.DateTime;
|
||||
@@ -111,7 +112,7 @@ public class Mob extends AbstractIntelligenceAgent {
|
||||
public boolean despawned = false;
|
||||
public Vector3fImmutable destination = Vector3fImmutable.ZERO;
|
||||
public Vector3fImmutable localLoc = Vector3fImmutable.ZERO;
|
||||
|
||||
public HashMap<Integer,Integer> mobPowers;
|
||||
/**
|
||||
* No Id Constructor
|
||||
*/
|
||||
@@ -365,6 +366,7 @@ public class Mob extends AbstractIntelligenceAgent {
|
||||
this.setObjectTypeMask(MBServerStatics.MASK_PET | this.getTypeMasks());
|
||||
if (ConfigManager.serverType.equals(ServerType.LOGINSERVER))
|
||||
this.setLoc(this.getLoc());
|
||||
mobPowers = DbManager.MobBaseQueries.LOAD_STATIC_POWERS(this.getMobBaseID());
|
||||
}
|
||||
if (!isPet && this.contract == null) {
|
||||
this.level = (short) this.mobBase.getLevel();
|
||||
@@ -393,10 +395,10 @@ public class Mob extends AbstractIntelligenceAgent {
|
||||
//TODO set these correctly later
|
||||
this.rangeHandOne = 8;
|
||||
this.rangeHandTwo = -1;
|
||||
this.minDamageHandOne = 0;
|
||||
this.maxDamageHandOne = 0;
|
||||
this.minDamageHandTwo = 1;
|
||||
this.maxDamageHandTwo = 4;
|
||||
this.minDamageHandOne = 0;
|
||||
this.maxDamageHandOne = 0;
|
||||
this.minDamageHandTwo = 1;
|
||||
this.maxDamageHandTwo = 4;
|
||||
this.atrHandOne = 300;
|
||||
this.atrHandOne = 300;
|
||||
this.defenseRating = (short) this.mobBase.getDefenseRating();
|
||||
|
||||
Reference in New Issue
Block a user