Implement riddle rooms

This commit is contained in:
SilicaAndPina 2021-02-08 19:59:30 +13:00
parent 64671ef186
commit 10c1c32518
11 changed files with 1276 additions and 91 deletions

View file

@ -48,8 +48,10 @@ namespace HISP.Player
public HorseInstance LastViewedHorse;
public HorseInstance CurrentlyRidingHorse;
public Tracking TrackedItems;
public Ranch OwnedRanch = null;
public PlayerQuests Quests;
public Highscore Highscores;
public Riddler LastRiddle;
public Award Awards;
public int CapturingHorseId;
public DateTime LoginTime;
@ -443,6 +445,19 @@ namespace HISP.Player
thirst = Database.GetPlayerThirst(UserId);
tired = Database.GetPlayerTiredness(UserId);
if(Ranch.IsRanchOwned(this.Id))
{
if (this.Subscribed)
{
OwnedRanch = Ranch.GetRanchOwnedBy(this.Id);
}
else // idk what it does here ...
{
OwnedRanch = null;
Ranch.GetRanchOwnedBy(this.Id).OwnerId = -1;
}
}
Gender = Database.GetGender(UserId);
MailBox = new Mailbox(this);
Highscores = new Highscore(this);