Deprecated DateTimeGlobal.IsHalloween
This commit is contained in:
committed by
Matthias Mailänder
parent
b394e15998
commit
806eebd269
@@ -32,6 +32,7 @@ namespace OpenRA.Mods.Common.Scripting
|
||||
}
|
||||
|
||||
[Desc("True on the 31st of October.")]
|
||||
[Obsolete("Use CurrentMonth and CurrentDay instead.")]
|
||||
public bool IsHalloween => DateTime.Today.Month == 10 && DateTime.Today.Day == 31;
|
||||
|
||||
[Desc("Get the current game time (in ticks).")]
|
||||
|
||||
@@ -6,7 +6,9 @@
|
||||
the License, or (at your option) any later version. For more
|
||||
information, see COPYING.
|
||||
]]
|
||||
if DateTime.IsHalloween then
|
||||
|
||||
-- Halloween easter egg
|
||||
if DateTime.CurrentMonth == 10 and DateTime.CurrentDay == 31 then
|
||||
UnitTypes = { "ant", "ant", "ant" }
|
||||
BeachUnitTypes = { "ant", "ant" }
|
||||
ProxyType = "powerproxy.parazombies"
|
||||
|
||||
Reference in New Issue
Block a user