rename the boolean

This commit is contained in:
Matthias Mailänder
2014-09-05 15:42:38 +02:00
parent 99156451c0
commit 128b2b8b67
2 changed files with 2 additions and 2 deletions

View File

@@ -20,7 +20,7 @@ namespace OpenRA.Mods.RA.Scripting
public DateGlobal(ScriptContext context) : base(context) { } public DateGlobal(ScriptContext context) : base(context) { }
[Desc("True on the 31st of October.")] [Desc("True on the 31st of October.")]
public bool Halloween public bool IsHalloween
{ {
get { return DateTime.Today.Month == 10 && DateTime.Today.Day == 31; } get { return DateTime.Today.Month == 10 && DateTime.Today.Day == 31; }
} }

View File

@@ -1,4 +1,4 @@
if Date.Halloween then if Date.IsHalloween then
UnitTypes = { "ant", "ant", "ant" } UnitTypes = { "ant", "ant", "ant" }
BeachUnitTypes = { "ant", "ant" } BeachUnitTypes = { "ant", "ant" }
ParadropUnitTypes = { "ant", "ant", "ant", "ant", "ant" } ParadropUnitTypes = { "ant", "ant", "ant", "ant", "ant" }