Implement fountains.

This commit is contained in:
SilicaAndPina 2020-12-31 12:29:56 +13:00
parent 6bea119831
commit a0a328aa7d
7 changed files with 57 additions and 4 deletions

View file

@ -24,8 +24,8 @@ namespace HISP.Game
{
if (droppedItem.instance == null)
{
continue;
RemoveDroppedItem(droppedItem);
continue;
}
if(droppedItem.instance.ItemId == item.Id)

View file

@ -272,7 +272,7 @@ namespace HISP.Game
public static string East;
public static string South;
public static string West;
public static string TileFormat;
public static string Seperator;
@ -281,6 +281,11 @@ namespace HISP.Game
public static string LongFullLine;
public static string MetaTerminator;
// Fountain
public static string FountainMeta;
public static string FountainDrankYourFull;
public static string FountainDroppedMoneyFormat;
// Disconnect Messages
public static string KickReasonBanned;
public static string KickReasonDuplicateLogin;
@ -295,7 +300,10 @@ namespace HISP.Game
// Click
public static string NothingInterestingHere;
public static string FormatDroppedMoneyMessage(int amount)
{
return FountainDroppedMoneyFormat.Replace("%MONEY%", amount.ToString("N0"));
}
public static string FormatAbuseReportPlayerNotFound(string username)
{
return AbuseReportPlayerNotFoundFormat.Replace("%USERNAME%", username);

View file

@ -545,6 +545,10 @@ namespace HISP.Game
return message;
}
public static string buildFountain()
{
return Messages.FountainMeta;
}
public static string BuildSpecialTileInfo(User user, World.SpecialTile specialTile)
{
string message = "";
@ -602,6 +606,11 @@ namespace HISP.Game
message += buildShopInfo(shop,user.Inventory);
}
if(TileCode == "FOUNTAIN")
{
message += buildFountain();
}
}