Various Fixes
Newly created drones now register their origin colony correctly Hauling behavior fixed for multiple items Buttons can't be dragged unless explicitly enabled Inspecting a colony with lots of compound commodities no longer sets your computer on fire
This commit is contained in:
parent
cbebc78af1
commit
1e2b474fc1
11 changed files with 133 additions and 47 deletions
|
|
@ -213,6 +213,7 @@ public class StrategyGameManager : MonoBehaviour
|
|||
ZoneTabButton.OnPointerClick(null);
|
||||
|
||||
var entities = new List<Entity>();
|
||||
|
||||
foreach(var loadout in parentCorp.InitialFleet)
|
||||
for(int i=0; i<loadout.Value; i++)
|
||||
entities.Add(_context.CreateEntity(_selectedZone, newCorp.ID, loadout.Key));
|
||||
|
|
@ -220,8 +221,7 @@ public class StrategyGameManager : MonoBehaviour
|
|||
_selectedColony = colony.ID;
|
||||
foreach (var ship in entities.Where(e => e is Ship))
|
||||
{
|
||||
foreach (var controller in ship.GetBehaviors<ControllerBase>())
|
||||
controller.HomeEntity = colony.ID;
|
||||
((Ship)ship).HomeEntity = colony.ID;
|
||||
|
||||
_context.SetParent(ship, colony);
|
||||
}
|
||||
|
|
@ -719,6 +719,7 @@ public class StrategyGameManager : MonoBehaviour
|
|||
var itemData = _context.Cache.Get<SimpleCommodityData>(resource.Key);
|
||||
list.AddProperty(itemData.Name, () => $"{resource.Value:0}");
|
||||
}
|
||||
list.SetExpanded(true, true);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue