Refresh method created.
This commit is contained in:
@@ -97,6 +97,20 @@ public enum BuildingManager {
|
||||
return buildingLocation;
|
||||
}
|
||||
|
||||
public static void refreshHirelingSlots(Building building) {
|
||||
|
||||
// Method updates all hirelings with the slot locations
|
||||
// for the current mesh. The position and region can change
|
||||
// such as when upgrading a TOL to R8.
|
||||
|
||||
for (AbstractCharacter hireling : building.hirelings.keySet()) {
|
||||
|
||||
hireling.setLoc(getSlotLocation(building, building.hirelings.get(hireling)).getLocation());
|
||||
InterestManager.setObjectDirty(hireling);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public static boolean playerCanManage(PlayerCharacter player, Building building) {
|
||||
|
||||
if (player == null)
|
||||
|
||||
Reference in New Issue
Block a user