This commit is contained in:
2025-07-31 15:19:46 +08:00
parent f46e589727
commit cf292541b3
8 changed files with 43 additions and 8 deletions

View File

@@ -293,7 +293,12 @@ namespace WulaFallenEmpire
return;
}
float currentValue = EventContext.GetVariable<float>(name, 0f);
if (!EventContext.HasVariable(name))
{
EventContext.SetVariable(name, 0f);
}
float currentValue = EventContext.GetVariable<float>(name);
switch (operation)
{