forked from MagicBane/Server
Assignment fix and comment cleanup.
This commit is contained in:
@@ -540,11 +540,12 @@ public enum BuildingManager {
|
|||||||
if (mobile == null)
|
if (mobile == null)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
// Configure AI.
|
// Configure AI and write new mobile to disk
|
||||||
|
|
||||||
mobile.behaviourType = Enum.MobBehaviourType.GuardWallArcher;
|
mobile.behaviourType = Enum.MobBehaviourType.GuardWallArcher;
|
||||||
|
mobile = DbManager.MobQueries.PERSIST(mobile);
|
||||||
|
|
||||||
DbManager.MobQueries.PERSIST(mobile);
|
// Spawn new mobile
|
||||||
|
|
||||||
mobile.setLoc(mobile.getLoc());
|
mobile.setLoc(mobile.getLoc());
|
||||||
|
|
||||||
@@ -558,11 +559,12 @@ public enum BuildingManager {
|
|||||||
if (mobile == null)
|
if (mobile == null)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
// Configure AI.
|
// Configure AI and write new mobile to disk
|
||||||
|
|
||||||
mobile.behaviourType = Enum.MobBehaviourType.GuardCaptain;
|
mobile.behaviourType = Enum.MobBehaviourType.GuardCaptain;
|
||||||
|
mobile = DbManager.MobQueries.PERSIST(mobile);
|
||||||
|
|
||||||
DbManager.MobQueries.PERSIST(mobile);
|
// Spawn new mobile
|
||||||
|
|
||||||
mobile.setLoc(mobile.getLoc());
|
mobile.setLoc(mobile.getLoc());
|
||||||
|
|
||||||
@@ -577,11 +579,13 @@ public enum BuildingManager {
|
|||||||
if (mobile == null)
|
if (mobile == null)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
// Configure AI.
|
// Configure AI and write new mobile to disk
|
||||||
|
|
||||||
mobile.behaviourType = Enum.MobBehaviourType.GuardCaptain;
|
mobile.behaviourType = Enum.MobBehaviourType.GuardCaptain;
|
||||||
|
mobile = DbManager.MobQueries.PERSIST(mobile);
|
||||||
|
|
||||||
|
// Spawn new mobile
|
||||||
|
|
||||||
DbManager.MobQueries.PERSIST(mobile);
|
|
||||||
mobile.setLoc(mobile.getLoc());
|
mobile.setLoc(mobile.getLoc());
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
|||||||
Reference in New Issue
Block a user