Overwrite
Complete Overwrite of the Folder with the free shard. ServUO 57.3 has been added.
This commit is contained in:
60
Scripts/Services/HolidaySettings.cs
Normal file
60
Scripts/Services/HolidaySettings.cs
Normal file
@@ -0,0 +1,60 @@
|
||||
using System;
|
||||
using Server.Items;
|
||||
|
||||
namespace Server.Events.Halloween
|
||||
{
|
||||
class HolidaySettings
|
||||
{
|
||||
private static readonly Type[] m_GMBeggarTreats =
|
||||
{
|
||||
typeof(CreepyCake),
|
||||
typeof(PumpkinPizza),
|
||||
typeof(GrimWarning),
|
||||
typeof(HarvestWine),
|
||||
typeof(MurkyMilk),
|
||||
typeof(MrPlainsCookies),
|
||||
typeof(SkullsOnPike),
|
||||
typeof(ChairInAGhostCostume),
|
||||
typeof(ExcellentIronMaiden),
|
||||
typeof(HalloweenGuillotine),
|
||||
typeof(ColoredSmallWebs),
|
||||
typeof(FlamingScarecrow)
|
||||
};
|
||||
private static readonly Type[] m_Treats =
|
||||
{
|
||||
typeof(Lollipops),
|
||||
typeof(WrappedCandy),
|
||||
typeof(JellyBeans),
|
||||
typeof(Taffy),
|
||||
typeof(NougatSwirl)
|
||||
};
|
||||
public static DateTime StartHalloween
|
||||
{
|
||||
get
|
||||
{
|
||||
return new DateTime(2012, 10, 24);
|
||||
}
|
||||
}// YY MM DD
|
||||
public static DateTime FinishHalloween
|
||||
{
|
||||
get
|
||||
{
|
||||
return new DateTime(2012, 11, 15);
|
||||
}
|
||||
}
|
||||
public static Item RandomGMBeggerItem
|
||||
{
|
||||
get
|
||||
{
|
||||
return (Item)Activator.CreateInstance(m_GMBeggarTreats[Utility.Random(m_GMBeggarTreats.Length)]);
|
||||
}
|
||||
}
|
||||
public static Item RandomTreat
|
||||
{
|
||||
get
|
||||
{
|
||||
return (Item)Activator.CreateInstance(m_Treats[Utility.Random(m_Treats.Length)]) ;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user