mirror of
https://github.com/islehorse/HISP.git
synced 2025-04-17 10:21:31 +12:00
Update release conditions.
This commit is contained in:
parent
3a7b6331d5
commit
0d95534125
1 changed files with 13 additions and 2 deletions
|
@ -1176,10 +1176,21 @@ namespace HISP.Game
|
||||||
|
|
||||||
message += Messages.FormatPossibleColors(horse.Breed.Colors);
|
message += Messages.FormatPossibleColors(horse.Breed.Colors);
|
||||||
|
|
||||||
if(!World.InTown(user.X, user.Y))
|
bool canRelease = true;
|
||||||
|
if(World.InTown(user.X, user.Y))
|
||||||
|
canRelease = false;
|
||||||
|
|
||||||
|
|
||||||
|
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 += Messages.HorseOthers;
|
||||||
message += buildHorseList(user);
|
message += buildHorseList(user);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue