chore: changed the access level of some functions
This commit is contained in:
@@ -10,10 +10,10 @@ using EFTCurrencyUtils = GClass2531;
|
||||
|
||||
namespace LootValueEX.Utils
|
||||
{
|
||||
internal class EconomyUtils
|
||||
internal static class EconomyUtils
|
||||
{
|
||||
|
||||
public static float ConvertToRuble(string id, float amount)
|
||||
internal static float ConvertToRuble(string id, float amount)
|
||||
{
|
||||
if (!EFTCurrencyUtils.TryGetCurrencyType(id, out ECurrencyType currencyType))
|
||||
return 0f;
|
||||
@@ -22,7 +22,7 @@ namespace LootValueEX.Utils
|
||||
return amount * (float)Singleton<HandbookClass>.Instance.GetBasePrice(id);
|
||||
}
|
||||
|
||||
public static Structs.TradeOfferStruct GetTraderItemOffer(TraderClass trader, Item item)
|
||||
internal static Structs.TradeOfferStruct GetTraderItemOffer(TraderClass trader, Item item)
|
||||
{
|
||||
Plugin.Log.LogDebug($"GetTraderItemOffer: {item.LocalizedName()} - {trader.LocalizedName}");
|
||||
TraderClass.GStruct244? tradeOffer = trader.GetUserItemPrice(item);
|
||||
|
||||
@@ -7,7 +7,7 @@ using System.Threading.Tasks;
|
||||
|
||||
namespace LootValueEX.Utils
|
||||
{
|
||||
internal class HashingUtils
|
||||
internal static class HashingUtils
|
||||
{
|
||||
internal static string ConvertToSha256(string value)
|
||||
{
|
||||
|
||||
@@ -4,9 +4,9 @@ using SPT.Reflection.Utils;
|
||||
|
||||
namespace LootValueEX.Utils
|
||||
{
|
||||
internal class ItemUtils
|
||||
internal static class ItemUtils
|
||||
{
|
||||
public static float GetArmorDurability(IEnumerable<RepairableComponent> repairableComponents)
|
||||
internal static float GetArmorDurability(IEnumerable<RepairableComponent> repairableComponents)
|
||||
{
|
||||
float totalDurability = 0;
|
||||
foreach (RepairableComponent component in repairableComponents)
|
||||
@@ -16,7 +16,7 @@ namespace LootValueEX.Utils
|
||||
return totalDurability;
|
||||
}
|
||||
|
||||
public static Task<Structs.TradeOfferStruct> GetBestTraderValueAsync(Item item)
|
||||
internal static Task<Structs.TradeOfferStruct> GetBestTraderValueAsync(Item item)
|
||||
{
|
||||
Structs.TradeOfferStruct bestOffer = new();
|
||||
item = item.UnstackItem();
|
||||
|
||||
Reference in New Issue
Block a user