mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-21 12:02:31 +01:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user