mirror of
https://github.com/islehorse/HISP.git
synced 2025-04-23 13:15:53 +12:00
Implement riddle rooms
This commit is contained in:
parent
64671ef186
commit
10c1c32518
11 changed files with 1276 additions and 91 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue