Support enabling and disabling the low power notification via Lua

This commit is contained in:
abcdefg30
2023-05-19 19:05:57 +02:00
committed by Gustas
parent 300281695a
commit 74ed202b29
2 changed files with 14 additions and 4 deletions

View File

@@ -43,6 +43,13 @@ namespace OpenRA.Mods.Common.Scripting
{
pm.TriggerPowerOutage(ticks);
}
[Desc("Whether the player should receive a notification when low on power.")]
public bool PlayLowPowerNotification
{
get => pm.PlayLowPowerNotification;
set => pm.PlayLowPowerNotification = value;
}
}
[ScriptPropertyGroup("Power")]