mirror of
https://github.com/islehorse/HISP.git
synced 2025-04-23 05:05:53 +12:00
Add basic sell functionlaity on serverside.
This commit is contained in:
parent
d0393f84c2
commit
68975171bb
7 changed files with 69 additions and 8 deletions
|
@ -105,6 +105,8 @@ namespace HISP.Game
|
|||
public static string Brought1ButInventoryFull;
|
||||
public static string Brought5;
|
||||
public static string Brought25;
|
||||
public static string Sold1Format;
|
||||
public static string SoldAllFormat;
|
||||
|
||||
// Npc
|
||||
public static string NpcStartChatFormat;
|
||||
|
@ -147,6 +149,10 @@ namespace HISP.Game
|
|||
public static string BallonCutscene;
|
||||
|
||||
|
||||
public static string FormatSellMessage(string itemName, int price)
|
||||
{
|
||||
return Sold1Format.Replace("%ITEM%", itemName).Replace("%PRICE%", price.ToString());
|
||||
}
|
||||
public static string FormatBuyMessage(string itemName, int price)
|
||||
{
|
||||
return Brought1Format.Replace("%ITEM%", itemName).Replace("%PRICE%", price.ToString());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue