static bool Prefix(GeneratorSetting generatorSetting, HoldableSpawnPoint spawnPoint, int seed, ref Bomb __result) { var gameplayState = SceneManager.Instance.GameplayState; __result = gameplayState.GetValue <BombGenerator>("bombGenerator").CreateBomb(generatorSetting, spawnPoint, seed, BombTypeEnum.Default); if (modsLoading == 0) { gameplayState.Bombs.Add(__result); } return(false); }
static bool Prefix(GeneratorSetting generatorSetting, HoldableSpawnPoint spawnPoint, int seed, ref Bomb __result) { var gameplayState = SceneManager.Instance.GameplayState; var bombGenerator = gameplayState.GetValue <BombGenerator>("bombGenerator"); ((log4net.Repository.Hierarchy.Logger)bombGenerator.GetValue <ILog>("logger").Logger).Level = Level.Notice; __result = bombGenerator.CreateBomb(generatorSetting, spawnPoint, seed, BombTypeEnum.Default); bombQueue.Enqueue(__result); if (modsLoading == 0) { gameplayState.Bombs.Add(__result); } return(false); }