Lag War 2: Revengeance (#21950)

<img width="750" height="449" alt="image"
src="https://github.com/user-attachments/assets/29c06609-eb62-42be-9b9c-334f9fe88636"
/>

Ports: tgstation/tgstation#75769, tgstation/tgstation#72572,
tgstation/tgstation#93054

Fixes the holodeck causing 800 trillion hard dels that brings the server
to its knees. Stops turrets, weather system, and overmap contacts from
generating 500+ timers every tick by just using vars instead.

---------

Signed-off-by: Wildkins <john.wildkins@gmail.com>
This commit is contained in:
Wildkins
2026-03-09 21:47:50 +00:00
committed by GitHub
parent 1beef3d476
commit afd8d9d8e0
14 changed files with 128 additions and 60 deletions
+2 -1
View File
@@ -220,7 +220,8 @@
// Handle physical effects of weather.
var/singleton/state/weather/weather_state
var/obj/abstract/weather_system/weather = get_affecting_weather()
if(weather)
if(weather_cooldown_time <= world.time && weather)
weather_cooldown_time = world.time + WEATHER_COOLDOWN_TIME
weather_state = weather.weather_system.current_state
if(istype(weather_state))
weather_state.handle_exposure(src, get_weather_exposure(weather), weather)
@@ -103,3 +103,6 @@
/// If true, ignores weather effects
var/resists_weather = FALSE
/// Time since last weather effect
var/weather_cooldown_time = 0