make stackCount an int

This commit is contained in:
CWX
2025-01-18 22:58:22 +00:00
parent bea2d1799c
commit 4f32268c02
6 changed files with 15 additions and 15 deletions
+2 -2
View File
@@ -596,7 +596,7 @@ public class BotLootGenerator(
ParentId = walletId,
Upd = new()
{
StackObjectsCount = double.Parse(chosenStackCount)
StackObjectsCount = int.Parse(chosenStackCount)
}
}
];
@@ -799,7 +799,7 @@ public class BotLootGenerator(
_itemHelper.AddUpdObjectToItem(moneyItem);
moneyItem.Upd.StackObjectsCount = double.Parse(_weightedRandomHelper.GetWeightedValue(currencyWeight));
moneyItem.Upd.StackObjectsCount = int.Parse(_weightedRandomHelper.GetWeightedValue(currencyWeight));
}
/// <summary>