moved map_tick_atmos to lua