.NET Format Style Fixes
This commit is contained in:
@@ -10,7 +10,13 @@ public class PaymentHelper(ConfigServer configServer)
|
||||
{
|
||||
protected bool _addedCustomMoney;
|
||||
protected readonly InventoryConfig _inventoryConfig = configServer.GetConfig<InventoryConfig>();
|
||||
protected readonly HashSet<string> _moneyTpls = [Money.DOLLARS, Money.EUROS, Money.ROUBLES, Money.GP];
|
||||
protected readonly HashSet<string> _moneyTpls =
|
||||
[
|
||||
Money.DOLLARS,
|
||||
Money.EUROS,
|
||||
Money.ROUBLES,
|
||||
Money.GP,
|
||||
];
|
||||
|
||||
/// <summary>
|
||||
/// Is the passed in tpl money (also checks custom currencies in inventoryConfig.customMoneyTpls)
|
||||
@@ -26,7 +32,7 @@ public class PaymentHelper(ConfigServer configServer)
|
||||
{
|
||||
_moneyTpls.Add(customMoney);
|
||||
}
|
||||
|
||||
|
||||
_addedCustomMoney = true;
|
||||
}
|
||||
|
||||
@@ -46,7 +52,7 @@ public class PaymentHelper(ConfigServer configServer)
|
||||
CurrencyType.USD => Money.DOLLARS,
|
||||
CurrencyType.RUB => Money.ROUBLES,
|
||||
CurrencyType.GP => Money.GP,
|
||||
_ => string.Empty
|
||||
_ => string.Empty,
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user