diff --git a/maps/pirates/api_on_tick.lua b/maps/pirates/api_on_tick.lua index a0048205..fc13262d 100644 --- a/maps/pirates/api_on_tick.lua +++ b/maps/pirates/api_on_tick.lua @@ -1022,9 +1022,9 @@ function Public.silo_update(tickinterval) game.pollution_statistics.on_flow('rocket-silo', pollution) if not memory.floating_pollution then memory.floating_pollution = 0 end - -- Eventually I want to reformulate pollution not to pull from the map directly, but to pull from pollution_statistics. Previously all the silo pollution went to the map, but this causes a lag ~1-2 minutes. So as a compromise, let's send half to floating_pollution directly, and half to the map: - memory.floating_pollution = memory.floating_pollution + pollution/2 - game.surfaces[destination.surface_name].pollute(p, pollution/2) + -- Eventually I want to reformulate pollution not to pull from the map directly, but to pull from pollution_statistics. Previously all the silo pollution went to the map, but this causes a lag ~1-2 minutes. So as a compromise, let's send some to floating_pollution directly, and some to the map: + memory.floating_pollution = memory.floating_pollution + 2*pollution/3 + game.surfaces[destination.surface_name].pollute(p, pollution/3) if memory.overworldx >= 0 and dynamic_data.rocketsiloenergyconsumed >= 0.25 * dynamic_data.rocketsiloenergyneeded and (not dynamic_data.parrot_silo_warned) then dynamic_data.parrot_silo_warned = true