Add ability to view horse list of other players if that player is not online- (Ranch)

This commit is contained in:
SilicaAndPina 2021-02-11 21:36:18 +13:00
parent 9e7743e24d
commit e9cee36b24
7 changed files with 421 additions and 169 deletions

View file

@ -83,7 +83,6 @@ namespace HISP.Game.Horse
category = loadCategory;
spoiled = loadSpoiled;
magicUsed = loadMagicUsed;
TrainTimer = 0;
RanchId = 0;
Leaser = 0;
}
@ -117,7 +116,21 @@ namespace HISP.Game.Horse
}
public string Sex;
public string Color;
public int TrainTimer;
public int TrainTimer
{
get
{
int timeout = Database.GetHorseTrainTimeout(this.RandomId);
if (timeout < 0)
return 0;
else
return timeout;
}
set
{
Database.SetHorseTrainTimeout(this.RandomId, value);
}
}
public HorseInfo.Breed Breed;
public HorseInfo.BasicStats BasicStats;
public HorseInfo.AdvancedStats AdvancedStats;