Fix inability to engage with economic Cargonia (#36668)
Fix inability to engage with cargo supremacy
This commit is contained in:
@@ -75,13 +75,26 @@ public sealed partial class CargoSystem : SharedCargoSystem
|
||||
UpdateBounty();
|
||||
}
|
||||
|
||||
public void UpdateBankAccount(
|
||||
Entity<StationBankAccountComponent?> ent,
|
||||
int balanceAdded,
|
||||
ProtoId<CargoAccountPrototype> account,
|
||||
bool dirty = true)
|
||||
{
|
||||
UpdateBankAccount(
|
||||
ent,
|
||||
balanceAdded,
|
||||
new Dictionary<ProtoId<CargoAccountPrototype>, double> { {account, 1} },
|
||||
dirty: dirty);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Adds or removes funds from the <see cref="StationBankAccountComponent"/>.
|
||||
/// </summary>
|
||||
/// <param name="ent">The station.</param>
|
||||
/// <param name="balanceAdded">The amount of funds to add or remove.</param>
|
||||
/// <param name="accountDistribution">The distribution between individual <see cref="CargoAccountPrototype"/>.</param>
|
||||
/// <param name="dirty">Whether to mark the bank accoujnt component as dirty.</param>
|
||||
/// <param name="dirty">Whether to mark the bank account component as dirty.</param>
|
||||
[PublicAPI]
|
||||
public void UpdateBankAccount(
|
||||
Entity<StationBankAccountComponent?> ent,
|
||||
|
||||
Reference in New Issue
Block a user