void HandleIncidents() { if (incidentTickCounter++ < GenDate.TicksPerHour) { return; } incidentTickCounter = 0; if (ZombiesRising.ZombiesForNewIncident(this)) { var success = ZombiesRising.TryExecute(map, incidentInfo.parameters.incidentSize, IntVec3.Invalid); if (success == false) { Log.Warning("Incident creation failed. Most likely no valid spawn point found."); } } }
private void HandleIncidents() { if (incidentTickCounter++ < GenDate.TicksPerHour) { return; } incidentTickCounter = 0; var incidentSize = ZombiesRising.ZombiesForNewIncident(map); if (incidentSize > 0) { Log.Warning("Zombieland incident with " + incidentSize + " zombies"); var success = ZombiesRising.TryExecute(map, incidentSize); if (success == false) { Log.Warning("Incident creation failed. Most likely no valid spawn point found."); // TODO incident failed, so mark it for new executing asap } } }