mirror of
https://github.com/islehorse/HISP.git
synced 2025-04-23 21:25:52 +12:00
fix quest unlocking
This commit is contained in:
parent
c9c81d721e
commit
6795f3143a
3 changed files with 22 additions and 17 deletions
|
@ -64,23 +64,28 @@ namespace HISP.Server
|
|||
if(totalMinutesElapsed % 24 == 0)
|
||||
Database.DoIntrestPayments(ConfigReader.IntrestRate);
|
||||
|
||||
foreach (World.Town town in World.Towns)
|
||||
|
||||
if (totalMinutesElapsed % 25 == 0)
|
||||
{
|
||||
if (RandomNumberGenerator.Next(0, 100) < 25)
|
||||
|
||||
Logger.DebugPrint("Randomizing Weather...");
|
||||
foreach (World.Town town in World.Towns)
|
||||
{
|
||||
town.Weather = town.SelectRandomWeather();
|
||||
Logger.DebugPrint("Changing the weather in " + town.Name + " to " + town.Weather);
|
||||
if (RandomNumberGenerator.Next(0, 100) < 25)
|
||||
{
|
||||
town.Weather = town.SelectRandomWeather();
|
||||
}
|
||||
}
|
||||
|
||||
foreach (World.Isle isle in World.Isles)
|
||||
{
|
||||
if (RandomNumberGenerator.Next(0, 100) < 25)
|
||||
{
|
||||
isle.Weather = isle.SelectRandomWeather();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
foreach (World.Isle isle in World.Isles)
|
||||
{
|
||||
if(RandomNumberGenerator.Next(0,100) < 25)
|
||||
{
|
||||
isle.Weather = isle.SelectRandomWeather();
|
||||
Logger.DebugPrint("Changing the weather in " + isle.Name + " to " + isle.Weather);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Database.IncPlayerTirednessForOfflineUsers();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue