mirror of
https://github.com/islehorse/HISP.git
synced 2025-04-23 05:05:53 +12:00
Implement fountains.
This commit is contained in:
parent
6bea119831
commit
a0a328aa7d
7 changed files with 57 additions and 4 deletions
|
@ -24,8 +24,8 @@ namespace HISP.Game
|
|||
{
|
||||
if (droppedItem.instance == null)
|
||||
{
|
||||
continue;
|
||||
RemoveDroppedItem(droppedItem);
|
||||
continue;
|
||||
}
|
||||
|
||||
if(droppedItem.instance.ItemId == item.Id)
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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();
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue