rename the boolean
This commit is contained in:
@@ -20,7 +20,7 @@ namespace OpenRA.Mods.RA.Scripting
|
||||
public DateGlobal(ScriptContext context) : base(context) { }
|
||||
|
||||
[Desc("True on the 31st of October.")]
|
||||
public bool Halloween
|
||||
public bool IsHalloween
|
||||
{
|
||||
get { return DateTime.Today.Month == 10 && DateTime.Today.Day == 31; }
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
if Date.Halloween then
|
||||
if Date.IsHalloween then
|
||||
UnitTypes = { "ant", "ant", "ant" }
|
||||
BeachUnitTypes = { "ant", "ant" }
|
||||
ParadropUnitTypes = { "ant", "ant", "ant", "ant", "ant" }
|
||||
|
||||
Reference in New Issue
Block a user