private void SummonBotsHook(On.RoR2.CharacterMaster.orig_OnInventoryChanged orig, CharacterMaster self) { orig(self); SurvivorIndex index = SurvivorIndex.Toolbot; if ((self.playerCharacterMasterController != null) && (self.inventory.GetItemCount(Index) > 0) && (self.inventory.GetItemCount(Index) > botToolCount)) { PlayerBotManager.SpawnPlayerbots(self, index, NumT00LBotsSpawned); botToolCount = GetCount(self); } }
private void SummonBotsHook(On.RoR2.CharacterMaster.orig_OnInventoryChanged orig, CharacterMaster self) { orig(self); SurvivorIndex index = SurvivorIndex.Captain; if ((self.playerCharacterMasterController != null) && (GetCount(self) > 0) && (GetCount(self) > botCapCount)) { PlayerBotManager.SpawnPlayerbots(self, index, NumC4PTNBotsSpawned); botCapCount = GetCount(self); } }