mirror of
https://github.com/islehorse/HISP.git
synced 2025-04-23 05:05:53 +12:00
Implement full inventory, and buying items from stores.
This commit is contained in:
parent
15043069d6
commit
9e01526bfe
9 changed files with 143 additions and 12 deletions
|
@ -67,6 +67,7 @@ namespace HISP.Game
|
|||
public static string GrabAllItemsButton;
|
||||
public static string GrabAllItemsMessage;
|
||||
public static string GrabbedItemMessage;
|
||||
public static string GrabbedItemButInventoryFull;
|
||||
public static string GrabbedAllObjectsMessage;
|
||||
public static string DroppedAnItemMessage;
|
||||
public static string ItemInformationFormat;
|
||||
|
@ -97,6 +98,13 @@ namespace HISP.Game
|
|||
public static string ThingsIAmSelling;
|
||||
public static string ThingsYouSellMe;
|
||||
public static string InfinitySign;
|
||||
public static string CantAfford1;
|
||||
public static string CantAfford5;
|
||||
public static string CantAfford25;
|
||||
public static string Brought1Format;
|
||||
public static string Brought1ButInventoryFull;
|
||||
public static string Brought5;
|
||||
public static string Brought25;
|
||||
|
||||
// Npc
|
||||
public static string NpcStartChatFormat;
|
||||
|
@ -139,7 +147,10 @@ namespace HISP.Game
|
|||
public static string BallonCutscene;
|
||||
|
||||
|
||||
|
||||
public static string FormatBuyMessage(string itemName, int price)
|
||||
{
|
||||
return Brought1Format.Replace("%ITEM%", itemName).Replace("%PRICE%", price.ToString());
|
||||
}
|
||||
public static string FormatShopEntry(int iconid, string count, string name, int price)
|
||||
{
|
||||
return ShopEntryFormat.Replace("%ICONID%", iconid.ToString()).Replace("%COUNT%", count).Replace("%TITLE%", name).Replace("%PRICE%", price.ToString());
|
||||
|
|
|
@ -135,7 +135,7 @@ namespace HISP.Game
|
|||
for (int i = 0; i < itemInfo.Quantity; i++)
|
||||
{
|
||||
ItemInstance itm = new ItemInstance(itemInfo.ItemId);
|
||||
user.Inventory.Add(itm);
|
||||
user.Inventory.AddIgnoringFull(itm);
|
||||
}
|
||||
}
|
||||
if (quest.WarpX != 0 && quest.WarpY != 0)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue