Build 0.20.0.0

This commit is contained in:
Markus Isberg
2022-10-27 17:54:57 +03:00
parent 05c7b1f869
commit edaf4b09fe
197 changed files with 4344 additions and 1773 deletions
@@ -27,6 +27,8 @@ namespace Barotrauma
public bool DisplayNonEmpty { get; } = false;
public Identifier StoreIdentifier { get; }
public bool RequiresUnlock { get; }
/// <summary>
/// Used when both <see cref="MinAvailableAmount"/> and <see cref="MaxAvailableAmount"/> are set to 0.
/// </summary>
@@ -48,6 +50,7 @@ namespace Barotrauma
int maxAmount = GetMaxAmount(element);
maxAmount = Math.Min(maxAmount, CargoManager.MaxQuantity);
MaxAvailableAmount = Math.Max(maxAmount, MinAvailableAmount);
RequiresUnlock = element.GetAttributeBool("requiresunlock", false);
}
public PriceInfo(int price, bool canBeBought,