Add BBCODE to Horse Descriptions, Player Descriptions and Ranch Descriptions.

This commit is contained in:
SilicaAndPina 2021-02-13 17:47:28 +13:00
parent bdebe4d84a
commit 72bc81d900
14 changed files with 142 additions and 40 deletions

View file

@ -32,7 +32,9 @@ namespace HISP.Game
{
int pos = ((x * Height) + y);
if (pos >= oMapData.Length && overlay)
if ((pos <= 0 || pos >= oMapData.Length) && overlay)
return 1;
else if ((pos <= 0 || pos >= MapData.Length) && !overlay)
return 1;
else if (overlay && Treasure.IsTileBuiredTreasure(x, y))
return 193; // Burried Treasure tile.