string to mongoid conversion

Removed unnecessary nulls

Cleaned up access levels for methods in `BotGenerator`
This commit is contained in:
Chomp
2025-07-20 11:33:25 +01:00
parent 737776c99d
commit 80e0637b26
10 changed files with 96 additions and 112 deletions
@@ -66,7 +66,7 @@ public class BotWeaponGenerator(
MongoId sessionId,
string equipmentSlot,
BotTypeInventory botTemplateInventory,
string weaponParentId,
MongoId weaponParentId,
Dictionary<string, double> modChances,
string botRole,
bool isPmc,
@@ -93,7 +93,7 @@ public class BotWeaponGenerator(
/// <param name="equipmentSlot">Primary/secondary/holster</param>
/// <param name="botTemplateInventory">e.g. assault.json</param>
/// <returns>Weapon template</returns>
public string PickWeightedWeaponTemplateFromPool(
public MongoId PickWeightedWeaponTemplateFromPool(
string equipmentSlot,
BotTypeInventory botTemplateInventory
)
@@ -125,7 +125,7 @@ public class BotWeaponGenerator(
MongoId weaponTpl,
string slotName,
BotTypeInventory botTemplateInventory,
string weaponParentId,
MongoId weaponParentId,
Dictionary<string, double> modChances,
string botRole,
bool isPmc,