Slop sprites
Renamed Delicious Slop to Quality Slop Still not ready to merge because Quality Slop needs held and plate frames
This commit is contained in:
1 parent
682952ddf1
commit
7e5229b573
5 files changed
+12
-12
No files matched your search
Binary file not shown.
|
After Width: | Height: | Size: 797 B |
@@ -18,10 +18,10 @@ namespace CalamityMod.Items.Placeables.Furniture
|
||||
}
|
||||
}
|
||||
|
||||
public class DeliciousSlop : ModItem, ILocalizedModType
|
||||
public class QualitySlop : ModItem, ILocalizedModType
|
||||
{
|
||||
public new string LocalizationCategory => "Items.Potions";
|
||||
public override string Texture => "CalamityMod/Items/Potions/Food/DeliciousMeat"; //Placeholder
|
||||
public override string Texture => "CalamityMod/Items/Potions/Food/QualitySlop";
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
@@ -33,7 +33,7 @@ namespace CalamityMod.Items.Placeables.Furniture
|
||||
public class DisgustingSlop : ModItem, ILocalizedModType
|
||||
{
|
||||
public new string LocalizationCategory => "Items.Misc";
|
||||
public override string Texture => "CalamityMod/Items/Tools/DisgustingMeat"; //Placeholder
|
||||
public override string Texture => "CalamityMod/Items/Materials/DisgustingSlop";
|
||||
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 760 B |
@@ -561,11 +561,6 @@ Cometfruit: {
|
||||
'''
|
||||
}
|
||||
|
||||
DeliciousSlop: {
|
||||
DisplayName: Delicious Slop
|
||||
Tooltip: "{$CommonItemTooltip.MajorStats}"
|
||||
}
|
||||
|
||||
Jackfruit: {
|
||||
DisplayName: Jackfruit
|
||||
Tooltip: "{$CommonItemTooltip.MinorStats}"
|
||||
@@ -585,6 +580,11 @@ Mangosteen: {
|
||||
'''
|
||||
}
|
||||
|
||||
QualitySlop: {
|
||||
DisplayName: Quality Slop
|
||||
Tooltip: "{$CommonItemTooltip.MajorStats}"
|
||||
}
|
||||
|
||||
Salak: {
|
||||
DisplayName: Salak
|
||||
Tooltip: "{$CommonItemTooltip.MinorStats}"
|
||||
|
||||
@@ -45,7 +45,7 @@ namespace CalamityMod.Tiles.Furniture
|
||||
{
|
||||
Player p = Main.LocalPlayer;
|
||||
// You shouldn't be able to put the slop back into the blender
|
||||
if (BuffID.Sets.IsWellFed[p.HeldItem.buffType] && p.HeldItem.type != ModContent.ItemType<DeliciousSlop>())
|
||||
if (BuffID.Sets.IsWellFed[p.HeldItem.buffType] && p.HeldItem.type != ModContent.ItemType<QualitySlop>())
|
||||
{
|
||||
p.noThrow = 2;
|
||||
p.cursorItemIconEnabled = true;
|
||||
@@ -134,12 +134,12 @@ namespace CalamityMod.Tiles.Furniture
|
||||
{
|
||||
// Exit early if anyone of the following are true:
|
||||
// * Running on client that is not the local player
|
||||
// * The item is not a food, is not consumable, or is Delicious Slop (you cannot feed the slop back into the blender)
|
||||
// * The item is not a food, is not consumable, or is Quality Slop (you cannot feed the slop back into the blender)
|
||||
// * The Gluttony Blender tile entity doesn't exist for some reason
|
||||
// * The player isn't within the tile's interaction range
|
||||
if (Main.LocalPlayer.whoAmI != player.whoAmI)
|
||||
return true;
|
||||
if (!BuffID.Sets.IsWellFed[item.buffType] || !item.consumable || item.type == ModContent.ItemType<DeliciousSlop>())
|
||||
if (!BuffID.Sets.IsWellFed[item.buffType] || !item.consumable || item.type == ModContent.ItemType<QualitySlop>())
|
||||
return true;
|
||||
|
||||
Point mouseTile = Main.MouseWorld.ToTileCoordinates();
|
||||
@@ -232,7 +232,7 @@ namespace CalamityMod.Tiles.Furniture
|
||||
|
||||
if (Projectile.timeLeft == 1)
|
||||
{
|
||||
int itemDrop = Main.rand.NextBool(GluttonyBlender.OneInXChanceForGoodSlop) ? ModContent.ItemType<DeliciousSlop>() : ModContent.ItemType<DisgustingSlop>();
|
||||
int itemDrop = Main.rand.NextBool(GluttonyBlender.OneInXChanceForGoodSlop) ? ModContent.ItemType<QualitySlop>() : ModContent.ItemType<DisgustingSlop>();
|
||||
int i = Item.NewItem(Projectile.GetItemSource_DropAsItem(), Projectile.Center, itemDrop);
|
||||
Main.item[i].GetGlobalItem<GluttonyBlenderGlobalItem>().FromGluttonyBlender = true;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user