Add Tack Shop Giveaways

This commit is contained in:
SilicaAndPina 2021-03-31 19:59:14 +13:00
parent 5cac72f67a
commit 2e4ba0b82d
5 changed files with 195 additions and 6 deletions

View file

@ -40,6 +40,7 @@ namespace HISP.Server
// Events
public static RealTimeRiddle RiddleEvent = RealTimeRiddle.GetRandomRiddle();
public static TackShopGiveaway TackShopGiveawayEvent;
/*
* Private stuff
@ -143,7 +144,11 @@ namespace HISP.Server
}
}
}
if(totalMinutesElapsed % (60 * 3) == 0)
{
TackShopGiveawayEvent = new TackShopGiveaway();
TackShopGiveawayEvent.StartEvent();
}
if(totalMinutesElapsed % 30 == 0)
{
RiddleEvent = RealTimeRiddle.GetRandomRiddle();
@ -195,10 +200,6 @@ namespace HISP.Server
}
}
if (RandomNumberGenerator.Next(0, 100) == 59) // Real Time Riddle
{
}
Database.IncPlayerTirednessForOfflineUsers();