mirror of
https://github.com/islehorse/HISP.git
synced 2025-04-21 12:19:15 +12:00
Add throwable items
This commit is contained in:
parent
811bc70ea2
commit
b773e7c423
7 changed files with 122 additions and 18 deletions
|
@ -53,7 +53,9 @@ namespace HISP.Game.Items
|
|||
public struct ThrowableItem
|
||||
{
|
||||
public int Id;
|
||||
public string Message;
|
||||
public string HitMessage;
|
||||
public string ThrowMessage;
|
||||
public string HitYourselfMessage;
|
||||
}
|
||||
|
||||
public static List<ItemInformation> Items = new List<ItemInformation>();
|
||||
|
@ -66,6 +68,7 @@ namespace HISP.Game.Items
|
|||
public static int Telescope;
|
||||
public static int Pitchfork;
|
||||
public static int WishingCoin;
|
||||
public static int ModSplatterball;
|
||||
public static int FishingPole;
|
||||
public static int Earthworm;
|
||||
public static int BirthdayToken;
|
||||
|
|
|
@ -13,8 +13,10 @@ namespace HISP.Game
|
|||
// Message Queue
|
||||
public static string MessageQueueHeader;
|
||||
|
||||
// Mod isle
|
||||
// Mod
|
||||
public static string ModIsleMessage;
|
||||
public static string ModSplatterballEarnedYouFormat;
|
||||
public static string ModSplatterballEarnedOtherFormat;
|
||||
|
||||
// Add Buddy
|
||||
public static string AddBuddyPending;
|
||||
|
@ -1114,6 +1116,22 @@ namespace HISP.Game
|
|||
|
||||
// Event : Tack Shop Giveaway
|
||||
|
||||
|
||||
// Throwables
|
||||
public static string FormatModSplatterBallAwardedOther(string username)
|
||||
{
|
||||
return ModSplatterballEarnedOtherFormat.Replace("%USERNAME%", username);
|
||||
}
|
||||
public static string FormatModSplatterBallAwardedYou(string username)
|
||||
{
|
||||
return ModSplatterballEarnedYouFormat.Replace("%USERNAME%", username);
|
||||
}
|
||||
public static string FormatThrownItemMessage(string itemFormat, string username)
|
||||
{
|
||||
return itemFormat.Replace("%USERNAME%", username);
|
||||
}
|
||||
|
||||
// Tack Shop Giveaway
|
||||
public static string FormatEventTackShopGiveawayEnd(string shopName, string townName)
|
||||
{
|
||||
return EventEndTackShopGiveawayFormat.Replace("%SHOPNAME%", shopName).Replace("%TOWN%", townName);
|
||||
|
@ -2617,9 +2635,9 @@ namespace HISP.Game
|
|||
return InventoryItemFormat.Replace("%ICONID%", iconid.ToString()).Replace("%COUNT%", count.ToString()).Replace("%TITLE%", name);
|
||||
}
|
||||
|
||||
public static string FormatItemThrowButton(int randomid)
|
||||
public static string FormatItemThrowButton(int itemId)
|
||||
{
|
||||
return ItemThrowButton.Replace("%RANDOMID%", randomid.ToString());
|
||||
return ItemThrowButton.Replace("%ITEMID%", itemId.ToString());
|
||||
}
|
||||
public static string FormatItemConsumeButton(int randomid)
|
||||
{
|
||||
|
|
|
@ -2180,7 +2180,7 @@ namespace HISP.Game
|
|||
message += Messages.FormatItemConsumeButton(randomId);
|
||||
|
||||
if (Item.IsThrowable(itemInfo.Id))
|
||||
message += Messages.FormatItemThrowButton(randomId);
|
||||
message += Messages.FormatItemThrowButton(itemInfo.Id);
|
||||
|
||||
message += Messages.FormatItemInformationButton(randomId);
|
||||
message += Messages.R1;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue