mirror of
https://github.com/islehorse/HISP.git
synced 2025-04-06 21:25:42 +12:00
Update release conditions.
This commit is contained in:
parent
3a7b6331d5
commit
0d95534125
1 changed files with 13 additions and 2 deletions
|
@ -1175,11 +1175,22 @@ namespace HISP.Game
|
|||
message += Messages.FormatHorseHeight(Convert.ToInt32(Math.Floor(HorseInfo.CalculateHands(horse.Breed.BaseStats.MinHeight))), Convert.ToInt32(Math.Floor(HorseInfo.CalculateHands(horse.Breed.BaseStats.MaxHeight))));
|
||||
|
||||
message += Messages.FormatPossibleColors(horse.Breed.Colors);
|
||||
|
||||
bool canRelease = true;
|
||||
if(World.InTown(user.X, user.Y))
|
||||
canRelease = false;
|
||||
|
||||
if(!World.InTown(user.X, user.Y))
|
||||
|
||||
if (World.InSpecialTile(user.X, user.Y))
|
||||
{
|
||||
message += Messages.HorseReleaseButton;
|
||||
World.SpecialTile tile = World.GetSpecialTile(user.Y, user.Y);
|
||||
if (tile.Code != null)
|
||||
canRelease = false;
|
||||
}
|
||||
|
||||
if(canRelease)
|
||||
message += Messages.HorseReleaseButton;
|
||||
|
||||
message += Messages.HorseOthers;
|
||||
message += buildHorseList(user);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue