public static void Postfix(EnemyDataBlock data) { if (ConfigManager.GetAbility(data.persistentID, out Il2CppSystem.Type ability)) { Log.Debug($"Creating '{ability.Name}' type enemy with name of '{data.name}'"); GameObject enemyPrefab = EnemyPrefabManager.Current.m_enemyPrefabs[data.persistentID]; enemyPrefab.AddComponent(ability); } }
public static void Postfix(EnemyDataBlock data) { //if (data.persistentID == 303) //{ // Log.Debug($"Created bleeder type enemy with name of {data.name}"); // GameObject BleederPrefab = EnemyPrefabManager.Current.m_enemyPrefabs[data.persistentID]; // BleederPrefab.AddComponent<BleederBase>(); //} if (ConfigManager.ExploderConfigDictionary.ContainsKey(data.persistentID)) { Log.Debug($"Created exploder type enemy with name of '{data.name}'"); GameObject ExploderPrefab = EnemyPrefabManager.Current.m_enemyPrefabs[data.persistentID]; ExploderPrefab.AddComponent <ExploderBase>(); } }
static void Prefix(EnemyDataBlock data) { LoggerWrapper.Log("ENEMY_INF - " + data.name + " ID " + data.persistentID, LogLevel.Debug); }