Assignment fix and comment cleanup.

This commit is contained in:
2023-08-31 08:58:55 -04:00
parent 7fc0d27c3c
commit 11c154e564
+10 -6
View File
@@ -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;