Browse Source

Assignment fix and comment cleanup.

feature-workorder
MagicBot 1 year ago
parent
commit
11c154e564
  1. 16
      src/engine/gameManager/BuildingManager.java

16
src/engine/gameManager/BuildingManager.java

@ -540,11 +540,12 @@ public enum BuildingManager { @@ -540,11 +540,12 @@ public enum BuildingManager {
if (mobile == null)
return false;
// Configure AI.
// Configure AI and write new mobile to disk
mobile.behaviourType = Enum.MobBehaviourType.GuardWallArcher;
mobile = DbManager.MobQueries.PERSIST(mobile);
DbManager.MobQueries.PERSIST(mobile);
// Spawn new mobile
mobile.setLoc(mobile.getLoc());
@ -558,11 +559,12 @@ public enum BuildingManager { @@ -558,11 +559,12 @@ public enum BuildingManager {
if (mobile == null)
return false;
// Configure AI.
// Configure AI and write new mobile to disk
mobile.behaviourType = Enum.MobBehaviourType.GuardCaptain;
mobile = DbManager.MobQueries.PERSIST(mobile);
DbManager.MobQueries.PERSIST(mobile);
// Spawn new mobile
mobile.setLoc(mobile.getLoc());
@ -577,11 +579,13 @@ public enum BuildingManager { @@ -577,11 +579,13 @@ public enum BuildingManager {
if (mobile == null)
return false;
// Configure AI.
// Configure AI and write new mobile to disk
mobile.behaviourType = Enum.MobBehaviourType.GuardCaptain;
mobile = DbManager.MobQueries.PERSIST(mobile);
// Spawn new mobile
DbManager.MobQueries.PERSIST(mobile);
mobile.setLoc(mobile.getLoc());
return true;

Loading…
Cancel
Save