From a4bafa18ddccdbe86f8d7cd2ea8fcbce7db48c72 Mon Sep 17 00:00:00 2001 From: MrMelbert <51863163+MrMelbert@users.noreply.github.com> Date: Tue, 7 Apr 2026 19:55:20 -0500 Subject: [PATCH] Block edits on cached movespeed modifiers (#95617) --- code/modules/movespeed/_movespeed_modifier.dm | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/code/modules/movespeed/_movespeed_modifier.dm b/code/modules/movespeed/_movespeed_modifier.dm index fea932650f6..af4b29d89d6 100644 --- a/code/modules/movespeed/_movespeed_modifier.dm +++ b/code/modules/movespeed/_movespeed_modifier.dm @@ -53,6 +53,12 @@ Key procs if(!id) id = "[type]" //We turn the path into a string. +/datum/movespeed_modifier/vv_edit_var(var_name, var_value) + if(GLOB.movespeed_modification_cache[type] == src) + return FALSE + + return ..() + GLOBAL_LIST_EMPTY(movespeed_modification_cache) /// Grabs a STATIC MODIFIER datum from cache. YOU MUST NEVER EDIT THESE DATUMS, OR IT WILL AFFECT ANYTHING ELSE USING IT TOO!