plategate
Calamity alcohols can now be placed on plates and are held out like food items when selected.
No files matched your search
@@ -1,9 +1,8 @@
|
||||
using CalamityMod.Buffs.Alcohol;
|
||||
using CalamityMod.Items.Materials;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
using Terraria.DataStructures;
|
||||
using Terraria.ID;
|
||||
using Terraria.Localization;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Items.Potions.Alcohol
|
||||
@@ -15,21 +14,23 @@ namespace CalamityMod.Items.Potions.Alcohol
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
Item.ResearchUnlockCount = 20;
|
||||
Main.RegisterItemAnimation(Type, new DrawAnimationVertical(int.MaxValue, 3));
|
||||
ItemID.Sets.DrinkParticleColors[Type] = new Color[3] {
|
||||
new Color(204, 90, 73),
|
||||
new Color(168, 37, 37),
|
||||
new Color(120, 28, 28)
|
||||
};
|
||||
ItemID.Sets.IsFood[Type] = true;
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.DefaultToFood(20, 32, ModContent.BuffType<BloodyMaryBuff>(), CalamityUtils.MinutesToFrames(6), true);
|
||||
Item.DefaultToFood(34, 56, ModContent.BuffType<BloodyMaryBuff>(), CalamityUtils.MinutesToFrames(6), true);
|
||||
Item.value = Item.sellPrice(silver: 2);
|
||||
Item.rare = ItemRarityID.Blue;
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
public override void AddRecipes()
|
||||
{
|
||||
CreateRecipe(10).
|
||||
AddIngredient(ItemID.Bottle, 10).
|
||||
@@ -37,5 +38,11 @@ namespace CalamityMod.Items.Potions.Alcohol
|
||||
AddTile(TileID.Kegs).
|
||||
Register();
|
||||
}
|
||||
|
||||
public override void UseStyle(Player player, Rectangle heldItemFrame)
|
||||
{
|
||||
player.itemLocation.X += 9 * player.direction;
|
||||
player.itemLocation.Y -= 11;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Before Width: | Height: | Size: 1.0 KiB After Width: | Height: | Size: 1.4 KiB |
@@ -1,7 +1,7 @@
|
||||
using CalamityMod.Buffs.Alcohol;
|
||||
using CalamityMod.Items.Materials;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
using Terraria.DataStructures;
|
||||
using Terraria.ID;
|
||||
using Terraria.Localization;
|
||||
using Terraria.ModLoader;
|
||||
@@ -19,17 +19,18 @@ namespace CalamityMod.Items.Potions.Alcohol
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
Item.ResearchUnlockCount = 20;
|
||||
// Based on the drink itself
|
||||
Main.RegisterItemAnimation(Type, new DrawAnimationVertical(int.MaxValue, 3));
|
||||
ItemID.Sets.DrinkParticleColors[Type] = new Color[3] {
|
||||
new Color(105, 29, 14),
|
||||
new Color(128, 39, 22),
|
||||
new Color(138, 28, 7)
|
||||
};
|
||||
ItemID.Sets.IsFood[Type] = true;
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.DefaultToFood(14, 32, ModContent.BuffType<CaribbeanRumBuff>(), CalamityUtils.MinutesToFrames(6), true);
|
||||
Item.DefaultToFood(28, 52, ModContent.BuffType<CaribbeanRumBuff>(), CalamityUtils.MinutesToFrames(6), true);
|
||||
|
||||
Item.value = Item.sellPrice(silver: 2);
|
||||
Item.rare = ItemRarityID.Pink;
|
||||
@@ -43,5 +44,11 @@ namespace CalamityMod.Items.Potions.Alcohol
|
||||
AddTile(TileID.Kegs).
|
||||
Register();
|
||||
}
|
||||
|
||||
public override void UseStyle(Player player, Rectangle heldItemFrame)
|
||||
{
|
||||
player.itemLocation.X += 5 * player.direction;
|
||||
player.itemLocation.Y -= 9;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.3 KiB |
@@ -1,8 +1,8 @@
|
||||
using CalamityMod.Buffs.Alcohol;
|
||||
using CalamityMod.Items.Materials;
|
||||
using CalamityMod.Items.Placeables.Ores;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
using Terraria.DataStructures;
|
||||
using Terraria.ID;
|
||||
using Terraria.Localization;
|
||||
using Terraria.ModLoader;
|
||||
@@ -16,16 +16,18 @@ namespace CalamityMod.Items.Potions.Alcohol
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
Item.ResearchUnlockCount = 20;
|
||||
Main.RegisterItemAnimation(Type, new DrawAnimationVertical(int.MaxValue, 3));
|
||||
ItemID.Sets.DrinkParticleColors[Type] = new Color[3] {
|
||||
new Color(245, 223, 181),
|
||||
new Color(222, 186, 147),
|
||||
new Color(176, 129, 106)
|
||||
};
|
||||
ItemID.Sets.IsFood[Type] = true;
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.DefaultToFood(18, 32, ModContent.BuffType<CinnamonRollBuff>(), CalamityUtils.MinutesToFrames(6), true);
|
||||
Item.DefaultToFood(28, 48, ModContent.BuffType<CinnamonRollBuff>(), CalamityUtils.MinutesToFrames(6), true);
|
||||
|
||||
Item.value = Item.sellPrice(silver: 2);
|
||||
Item.rare = ItemRarityID.Lime;
|
||||
@@ -38,5 +40,10 @@ namespace CalamityMod.Items.Potions.Alcohol
|
||||
AddTile(TileID.Kegs).
|
||||
Register();
|
||||
}
|
||||
public override void UseStyle(Player player, Rectangle heldItemFrame)
|
||||
{
|
||||
player.itemLocation.X += 5 * player.direction;
|
||||
player.itemLocation.Y -= 9;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Before Width: | Height: | Size: 868 B After Width: | Height: | Size: 1.2 KiB |
@@ -2,6 +2,7 @@
|
||||
using CalamityMod.Items.Materials;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
using Terraria.DataStructures;
|
||||
using Terraria.ID;
|
||||
using Terraria.Localization;
|
||||
using Terraria.ModLoader;
|
||||
@@ -20,16 +21,17 @@ namespace CalamityMod.Items.Potions.Alcohol
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
Item.ResearchUnlockCount = 20;
|
||||
// Everclear is clear so uhm... yeah?
|
||||
Main.RegisterItemAnimation(Type, new DrawAnimationVertical(int.MaxValue, 3));
|
||||
ItemID.Sets.DrinkParticleColors[Type] = new Color[2] {
|
||||
new Color(153, 168, 162, 180),
|
||||
new Color(198, 205, 207, 180)
|
||||
};
|
||||
ItemID.Sets.IsFood[Type] = true;
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.DefaultToFood(14, 42, ModContent.BuffType<EverclearBuff>(), CalamityUtils.MinutesToFrames(6), true);
|
||||
Item.DefaultToFood(16, 52, ModContent.BuffType<EverclearBuff>(), CalamityUtils.MinutesToFrames(6), true);
|
||||
|
||||
Item.value = Item.sellPrice(silver: 2);
|
||||
Item.rare = ItemRarityID.LightRed;
|
||||
@@ -44,5 +46,10 @@ namespace CalamityMod.Items.Potions.Alcohol
|
||||
AddTile(TileID.Kegs).
|
||||
Register();
|
||||
}
|
||||
public override void UseStyle(Player player, Rectangle heldItemFrame)
|
||||
{
|
||||
player.itemLocation.X += 3 * player.direction;
|
||||
player.itemLocation.Y -= 7;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Before Width: | Height: | Size: 643 B After Width: | Height: | Size: 997 B |
@@ -2,6 +2,7 @@
|
||||
using CalamityMod.Items.Materials;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
using Terraria.DataStructures;
|
||||
using Terraria.ID;
|
||||
using Terraria.Localization;
|
||||
using Terraria.ModLoader;
|
||||
@@ -19,17 +20,18 @@ namespace CalamityMod.Items.Potions.Alcohol
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
Item.ResearchUnlockCount = 20;
|
||||
// Pale green-blue
|
||||
Main.RegisterItemAnimation(Type, new DrawAnimationVertical(int.MaxValue, 3));
|
||||
ItemID.Sets.DrinkParticleColors[Type] = new Color[3] {
|
||||
new Color(201, 248, 248),
|
||||
new Color(201, 248, 221),
|
||||
new Color(177, 240, 184)
|
||||
};
|
||||
ItemID.Sets.IsFood[Type] = true;
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.DefaultToFood(18, 32, ModContent.BuffType<EvergreenGinBuff>(), CalamityUtils.MinutesToFrames(6), true);
|
||||
Item.DefaultToFood(34, 56, ModContent.BuffType<EvergreenGinBuff>(), CalamityUtils.MinutesToFrames(6), true);
|
||||
|
||||
Item.value = Item.sellPrice(silver: 2);
|
||||
Item.rare = ItemRarityID.LightRed;
|
||||
@@ -44,5 +46,10 @@ namespace CalamityMod.Items.Potions.Alcohol
|
||||
AddTile(TileID.Kegs).
|
||||
Register();
|
||||
}
|
||||
public override void UseStyle(Player player, Rectangle heldItemFrame)
|
||||
{
|
||||
player.itemLocation.X += 5 * player.direction;
|
||||
player.itemLocation.Y -= 9;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Before Width: | Height: | Size: 995 B After Width: | Height: | Size: 1.4 KiB |
@@ -2,6 +2,7 @@
|
||||
using CalamityMod.Items.Materials;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
using Terraria.DataStructures;
|
||||
using Terraria.ID;
|
||||
using Terraria.Localization;
|
||||
using Terraria.ModLoader;
|
||||
@@ -19,16 +20,18 @@ namespace CalamityMod.Items.Potions.Alcohol
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
Item.ResearchUnlockCount = 20;
|
||||
Main.RegisterItemAnimation(Type, new DrawAnimationVertical(int.MaxValue, 3));
|
||||
ItemID.Sets.DrinkParticleColors[Type] = new Color[3] {
|
||||
new Color(245, 171, 22),
|
||||
new Color(227, 128, 41),
|
||||
new Color(237, 82, 31)
|
||||
};
|
||||
ItemID.Sets.IsFood[Type] = true;
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.DefaultToFood(16, 38, ModContent.BuffType<FireballBuff>(), CalamityUtils.MinutesToFrames(6), true);
|
||||
Item.DefaultToFood(20, 52, ModContent.BuffType<FireballBuff>(), CalamityUtils.MinutesToFrames(6), true);
|
||||
|
||||
Item.value = Item.sellPrice(silver: 2);
|
||||
Item.rare = ItemRarityID.LightRed;
|
||||
@@ -36,7 +39,6 @@ namespace CalamityMod.Items.Potions.Alcohol
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
|
||||
CreateRecipe(10).
|
||||
AddIngredient(ItemID.Bottle, 10).
|
||||
AddIngredient(ItemID.LivingFireBlock, 50).
|
||||
@@ -44,5 +46,9 @@ namespace CalamityMod.Items.Potions.Alcohol
|
||||
AddTile(TileID.Kegs).
|
||||
Register();
|
||||
}
|
||||
public override void UseStyle(Player player, Rectangle heldItemFrame)
|
||||
{
|
||||
player.itemLocation.Y -= 8;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Before Width: | Height: | Size: 759 B After Width: | Height: | Size: 990 B |
@@ -1,7 +1,7 @@
|
||||
using CalamityMod.Buffs.Alcohol;
|
||||
using CalamityMod.Items.Materials;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
using Terraria.DataStructures;
|
||||
using Terraria.ID;
|
||||
using Terraria.Localization;
|
||||
using Terraria.ModLoader;
|
||||
@@ -18,17 +18,18 @@ namespace CalamityMod.Items.Potions.Alcohol
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
Item.ResearchUnlockCount = 20;
|
||||
Main.RegisterItemAnimation(Type, new DrawAnimationVertical(int.MaxValue, 3));
|
||||
ItemID.Sets.DrinkParticleColors[Type] = new Color[3] {
|
||||
new Color(36, 2, 41),
|
||||
new Color(56, 0, 64),
|
||||
new Color(82, 10, 92)
|
||||
};
|
||||
ItemID.Sets.IsFood[Type] = true;
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.DefaultToFood(12, 28, ModContent.BuffType<GrapeBeerBuff>(), CalamityUtils.MinutesToFrames(6), true);
|
||||
|
||||
Item.DefaultToFood(20, 48, ModContent.BuffType<GrapeBeerBuff>(), CalamityUtils.MinutesToFrames(6), true);
|
||||
Item.value = Item.sellPrice(silver: 2);
|
||||
Item.rare = ItemRarityID.LightRed;
|
||||
}
|
||||
@@ -41,5 +42,10 @@ namespace CalamityMod.Items.Potions.Alcohol
|
||||
AddTile(TileID.Kegs).
|
||||
Register();
|
||||
}
|
||||
public override void UseStyle(Player player, Rectangle heldItemFrame)
|
||||
{
|
||||
player.itemLocation.X += 4 * player.direction;
|
||||
player.itemLocation.Y -= 8;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Before Width: | Height: | Size: 688 B After Width: | Height: | Size: 988 B |
@@ -1,8 +1,8 @@
|
||||
using CalamityMod.Buffs.Alcohol;
|
||||
using CalamityMod.Items.Materials;
|
||||
using CalamityMod.Items.Placeables.Ores;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
using Terraria.DataStructures;
|
||||
using Terraria.ID;
|
||||
using Terraria.Localization;
|
||||
using Terraria.ModLoader;
|
||||
@@ -20,16 +20,18 @@ namespace CalamityMod.Items.Potions.Alcohol
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
Item.ResearchUnlockCount = 20;
|
||||
Main.RegisterItemAnimation(Type, new DrawAnimationVertical(int.MaxValue, 3));
|
||||
ItemID.Sets.DrinkParticleColors[Type] = new Color[3] {
|
||||
new Color(225, 84, 33),
|
||||
new Color(244, 176, 77),
|
||||
new Color(255, 218, 102)
|
||||
};
|
||||
ItemID.Sets.IsFood[Type] = true;
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.DefaultToFood(14, 28, ModContent.BuffType<ManhattanBuff>(), CalamityUtils.MinutesToFrames(6), true);
|
||||
Item.DefaultToFood(19, 58, ModContent.BuffType<ManhattanBuff>(), CalamityUtils.MinutesToFrames(6), true);
|
||||
|
||||
Item.value = Item.sellPrice(silver: 2);
|
||||
Item.rare = ItemRarityID.Pink;
|
||||
@@ -43,5 +45,10 @@ namespace CalamityMod.Items.Potions.Alcohol
|
||||
AddTile(TileID.Kegs).
|
||||
Register();
|
||||
}
|
||||
public override void UseStyle(Player player, Rectangle heldItemFrame)
|
||||
{
|
||||
player.itemLocation.X += 8 * player.direction;
|
||||
player.itemLocation.Y -= 14;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Before Width: | Height: | Size: 826 B After Width: | Height: | Size: 1.2 KiB |
@@ -2,6 +2,7 @@
|
||||
using CalamityMod.Items.Materials;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
using Terraria.DataStructures;
|
||||
using Terraria.ID;
|
||||
using Terraria.Localization;
|
||||
using Terraria.ModLoader;
|
||||
@@ -20,17 +21,18 @@ namespace CalamityMod.Items.Potions.Alcohol
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
Item.ResearchUnlockCount = 20;
|
||||
Main.RegisterItemAnimation(Type, new DrawAnimationVertical(int.MaxValue, 3));
|
||||
ItemID.Sets.DrinkParticleColors[Type] = new Color[3] {
|
||||
new Color(219, 227, 191),
|
||||
new Color(186, 189, 147),
|
||||
new Color(142, 161, 125)
|
||||
};
|
||||
ItemID.Sets.IsFood[Type] = true;
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.DefaultToFood(28, 40, ModContent.BuffType<MargaritaBuff>(), CalamityUtils.MinutesToFrames(6), true);
|
||||
|
||||
Item.DefaultToFood(42, 52, ModContent.BuffType<MargaritaBuff>(), CalamityUtils.MinutesToFrames(6), true);
|
||||
Item.value = Item.sellPrice(silver: 2);
|
||||
Item.rare = ItemRarityID.LightRed;
|
||||
}
|
||||
@@ -43,5 +45,10 @@ namespace CalamityMod.Items.Potions.Alcohol
|
||||
AddTile(TileID.Kegs).
|
||||
Register();
|
||||
}
|
||||
public override void UseStyle(Player player, Rectangle heldItemFrame)
|
||||
{
|
||||
player.itemLocation.X += 9 * player.direction;
|
||||
player.itemLocation.Y -= 14;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Before Width: | Height: | Size: 948 B After Width: | Height: | Size: 1.4 KiB |
@@ -2,6 +2,7 @@
|
||||
using CalamityMod.Items.Materials;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
using Terraria.DataStructures;
|
||||
using Terraria.ID;
|
||||
using Terraria.Localization;
|
||||
using Terraria.ModLoader;
|
||||
@@ -18,17 +19,18 @@ namespace CalamityMod.Items.Potions.Alcohol
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
Item.ResearchUnlockCount = 20;
|
||||
// Another clear drink
|
||||
Main.RegisterItemAnimation(Type, new DrawAnimationVertical(int.MaxValue, 3));
|
||||
ItemID.Sets.DrinkParticleColors[Type] = new Color[3] {
|
||||
new Color(237, 237, 218, 128),
|
||||
new Color(227, 219, 191, 128),
|
||||
new Color(209, 204, 194, 128)
|
||||
};
|
||||
ItemID.Sets.IsFood[Type] = true;
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.DefaultToFood(24, 28, ModContent.BuffType<MoonshineBuff>(), CalamityUtils.MinutesToFrames(6), true);
|
||||
Item.DefaultToFood(30, 48, ModContent.BuffType<MoonshineBuff>(), CalamityUtils.MinutesToFrames(6), true);
|
||||
|
||||
Item.value = Item.sellPrice(silver: 2);
|
||||
Item.rare = ItemRarityID.Lime;
|
||||
@@ -43,5 +45,10 @@ namespace CalamityMod.Items.Potions.Alcohol
|
||||
AddTile(TileID.Kegs).
|
||||
Register();
|
||||
}
|
||||
public override void UseStyle(Player player, Rectangle heldItemFrame)
|
||||
{
|
||||
player.itemLocation.X += 4 * player.direction;
|
||||
player.itemLocation.Y -= 8;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Before Width: | Height: | Size: 879 B After Width: | Height: | Size: 1.4 KiB |
@@ -1,8 +1,8 @@
|
||||
using CalamityMod.Buffs.Alcohol;
|
||||
using CalamityMod.Items.Materials;
|
||||
using CalamityMod.Items.Placeables.Ores;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
using Terraria.DataStructures;
|
||||
using Terraria.ID;
|
||||
using Terraria.Localization;
|
||||
using Terraria.ModLoader;
|
||||
@@ -19,17 +19,18 @@ namespace CalamityMod.Items.Potions.Alcohol
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
Item.ResearchUnlockCount = 20;
|
||||
// Pale green with a hint of red
|
||||
Main.RegisterItemAnimation(Type, new DrawAnimationVertical(int.MaxValue, 3));
|
||||
ItemID.Sets.DrinkParticleColors[Type] = new Color[3] {
|
||||
new Color(194, 252, 192),
|
||||
new Color(226, 252, 192),
|
||||
new Color(250, 225, 222)
|
||||
};
|
||||
ItemID.Sets.IsFood[Type] = true;
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.DefaultToFood(32, 32, ModContent.BuffType<MoscowMuleBuff>(), CalamityUtils.MinutesToFrames(6), true);
|
||||
Item.DefaultToFood(46, 46, ModContent.BuffType<MoscowMuleBuff>(), CalamityUtils.MinutesToFrames(6), true);
|
||||
|
||||
Item.value = Item.sellPrice(silver: 2);
|
||||
Item.rare = ItemRarityID.LightRed;
|
||||
@@ -42,5 +43,10 @@ namespace CalamityMod.Items.Potions.Alcohol
|
||||
AddTile(TileID.Kegs).
|
||||
Register();
|
||||
}
|
||||
public override void UseStyle(Player player, Rectangle heldItemFrame)
|
||||
{
|
||||
player.itemLocation.X += 8 * player.direction;
|
||||
player.itemLocation.Y -= 12;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 1.8 KiB |
@@ -1,7 +1,7 @@
|
||||
using CalamityMod.Buffs.Alcohol;
|
||||
using CalamityMod.Items.Materials;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
using Terraria.DataStructures;
|
||||
using Terraria.ID;
|
||||
using Terraria.Localization;
|
||||
using Terraria.ModLoader;
|
||||
@@ -19,16 +19,18 @@ namespace CalamityMod.Items.Potions.Alcohol
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
Item.ResearchUnlockCount = 20;
|
||||
Main.RegisterItemAnimation(Type, new DrawAnimationVertical(int.MaxValue, 3));
|
||||
ItemID.Sets.DrinkParticleColors[Type] = new Color[3] {
|
||||
new Color(255, 118, 3),
|
||||
new Color(255, 200, 82),
|
||||
new Color(255, 228, 122)
|
||||
};
|
||||
ItemID.Sets.IsFood[Type] = true;
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.DefaultToFood(30, 38, ModContent.BuffType<OldFashionedBuff>(), CalamityUtils.MinutesToFrames(6), true);
|
||||
Item.DefaultToFood(38, 44, ModContent.BuffType<OldFashionedBuff>(), CalamityUtils.MinutesToFrames(6), true);
|
||||
|
||||
Item.value = Item.sellPrice(silver: 2);
|
||||
Item.rare = ItemRarityID.Blue;
|
||||
@@ -41,5 +43,10 @@ namespace CalamityMod.Items.Potions.Alcohol
|
||||
AddTile(TileID.Kegs).
|
||||
Register();
|
||||
}
|
||||
public override void UseStyle(Player player, Rectangle heldItemFrame)
|
||||
{
|
||||
player.itemLocation.X += 3 * player.direction;
|
||||
player.itemLocation.Y -= 12;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Before Width: | Height: | Size: 1.0 KiB After Width: | Height: | Size: 1.4 KiB |
@@ -1,7 +1,7 @@
|
||||
using CalamityMod.Buffs.Alcohol;
|
||||
using CalamityMod.Items.Materials;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
using Terraria.DataStructures;
|
||||
using Terraria.ID;
|
||||
using Terraria.Localization;
|
||||
using Terraria.ModLoader;
|
||||
@@ -21,16 +21,18 @@ namespace CalamityMod.Items.Potions.Alcohol
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
Item.ResearchUnlockCount = 20;
|
||||
Main.RegisterItemAnimation(Type, new DrawAnimationVertical(int.MaxValue, 3));
|
||||
ItemID.Sets.DrinkParticleColors[Type] = new Color[3] {
|
||||
new Color(239, 123, 202),
|
||||
new Color(187, 56, 158),
|
||||
new Color(165, 47, 255)
|
||||
};
|
||||
ItemID.Sets.IsFood[Type] = true;
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.DefaultToFood(30, 42, ModContent.BuffType<PurpleHazeBuff>(), CalamityUtils.MinutesToFrames(6), true);
|
||||
Item.DefaultToFood(24, 48, ModContent.BuffType<PurpleHazeBuff>(), CalamityUtils.MinutesToFrames(6), true);
|
||||
|
||||
Item.value = Item.sellPrice(silver: 2);
|
||||
Item.rare = ItemRarityID.Blue;
|
||||
@@ -44,5 +46,10 @@ namespace CalamityMod.Items.Potions.Alcohol
|
||||
AddTile(TileID.Kegs).
|
||||
Register();
|
||||
}
|
||||
public override void UseStyle(Player player, Rectangle heldItemFrame)
|
||||
{
|
||||
player.itemLocation.X += 4 * player.direction;
|
||||
player.itemLocation.Y -= 8;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Before Width: | Height: | Size: 1.0 KiB After Width: | Height: | Size: 1.2 KiB |
@@ -1,8 +1,7 @@
|
||||
using CalamityMod.Buffs.Alcohol;
|
||||
using CalamityMod.Items.Materials;
|
||||
using CalamityMod.Items.Potions.Food;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
using Terraria.DataStructures;
|
||||
using Terraria.ID;
|
||||
using Terraria.Localization;
|
||||
using Terraria.ModLoader;
|
||||
@@ -20,17 +19,18 @@ namespace CalamityMod.Items.Potions.Alcohol
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
Item.ResearchUnlockCount = 20;
|
||||
Main.RegisterItemAnimation(Type, new DrawAnimationVertical(int.MaxValue, 3));
|
||||
ItemID.Sets.DrinkParticleColors[Type] = new Color[3] {
|
||||
new Color(54, 5, 21),
|
||||
new Color(82, 9, 36),
|
||||
new Color(105, 4, 29)
|
||||
};
|
||||
ItemID.Sets.IsFood[Type] = true;
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.DefaultToFood(14, 48, ModContent.BuffType<RedWineBuff>(), CalamityUtils.MinutesToFrames(6));
|
||||
|
||||
Item.DefaultToFood(20, 61, ModContent.BuffType<RedWineBuff>(), CalamityUtils.MinutesToFrames(6), true);
|
||||
Item.value = Item.sellPrice(silver: 2);
|
||||
Item.rare = ItemRarityID.Pink;
|
||||
}
|
||||
@@ -42,5 +42,10 @@ namespace CalamityMod.Items.Potions.Alcohol
|
||||
AddTile(TileID.Kegs).
|
||||
Register();
|
||||
}
|
||||
public override void UseStyle(Player player, Rectangle heldItemFrame)
|
||||
{
|
||||
player.itemLocation.X += 1 * player.direction;
|
||||
player.itemLocation.Y -= 5;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Before Width: | Height: | Size: 794 B After Width: | Height: | Size: 1.1 KiB |
@@ -1,7 +1,7 @@
|
||||
using CalamityMod.Buffs.Alcohol;
|
||||
using CalamityMod.Items.Materials;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
using Terraria.DataStructures;
|
||||
using Terraria.ID;
|
||||
using Terraria.Localization;
|
||||
using Terraria.ModLoader;
|
||||
@@ -19,16 +19,18 @@ namespace CalamityMod.Items.Potions.Alcohol
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
Item.ResearchUnlockCount = 20;
|
||||
Main.RegisterItemAnimation(Type, new DrawAnimationVertical(int.MaxValue, 3));
|
||||
ItemID.Sets.DrinkParticleColors[Type] = new Color[3] {
|
||||
new Color(237, 165, 9),
|
||||
new Color(247, 219, 54),
|
||||
new Color(255, 195, 31)
|
||||
};
|
||||
ItemID.Sets.IsFood[Type] = true;
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.DefaultToFood(24, 26, ModContent.BuffType<RumBuff>(), CalamityUtils.MinutesToFrames(6), true);
|
||||
Item.DefaultToFood(30, 44, ModContent.BuffType<RumBuff>(), CalamityUtils.MinutesToFrames(6), true);
|
||||
|
||||
Item.value = Item.sellPrice(silver: 2);
|
||||
Item.rare = ItemRarityID.LightRed;
|
||||
@@ -41,5 +43,10 @@ namespace CalamityMod.Items.Potions.Alcohol
|
||||
AddTile(TileID.Kegs).
|
||||
Register();
|
||||
}
|
||||
public override void UseStyle(Player player, Rectangle heldItemFrame)
|
||||
{
|
||||
player.itemLocation.X += 3 * player.direction;
|
||||
player.itemLocation.Y -= 9;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Before Width: | Height: | Size: 928 B After Width: | Height: | Size: 1.1 KiB |
@@ -1,8 +1,7 @@
|
||||
using CalamityMod.Buffs.Alcohol;
|
||||
using CalamityMod.Items.Materials;
|
||||
using CalamityMod.Items.Placeables.Ores;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
using Terraria.DataStructures;
|
||||
using Terraria.ID;
|
||||
using Terraria.Localization;
|
||||
using Terraria.ModLoader;
|
||||
@@ -20,17 +19,18 @@ namespace CalamityMod.Items.Potions.Alcohol
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
Item.ResearchUnlockCount = 20;
|
||||
Main.RegisterItemAnimation(Type, new DrawAnimationVertical(int.MaxValue, 3));
|
||||
ItemID.Sets.DrinkParticleColors[Type] = new Color[3] {
|
||||
new Color(225, 84, 33),
|
||||
new Color(244, 176, 77),
|
||||
new Color(255, 218, 102)
|
||||
};
|
||||
ItemID.Sets.IsFood[Type] = true;
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.DefaultToFood(14, 28, ModContent.BuffType<ScrewdriverBuff>(), CalamityUtils.MinutesToFrames(6), true);
|
||||
|
||||
Item.DefaultToFood(32, 46, ModContent.BuffType<ScrewdriverBuff>(), CalamityUtils.MinutesToFrames(6), true);
|
||||
Item.value = Item.sellPrice(silver: 2);
|
||||
Item.rare = ItemRarityID.Blue;
|
||||
}
|
||||
@@ -42,5 +42,10 @@ namespace CalamityMod.Items.Potions.Alcohol
|
||||
AddTile(TileID.Kegs).
|
||||
Register();
|
||||
}
|
||||
public override void UseStyle(Player player, Rectangle heldItemFrame)
|
||||
{
|
||||
player.itemLocation.X += 5 * player.direction;
|
||||
player.itemLocation.Y -= 10;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Before Width: | Height: | Size: 766 B After Width: | Height: | Size: 1.3 KiB |
@@ -1,7 +1,7 @@
|
||||
using CalamityMod.Buffs.Alcohol;
|
||||
using CalamityMod.Items.Materials;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
using Terraria.DataStructures;
|
||||
using Terraria.ID;
|
||||
using Terraria.Localization;
|
||||
using Terraria.ModLoader;
|
||||
@@ -19,17 +19,18 @@ namespace CalamityMod.Items.Potions.Alcohol
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
Item.ResearchUnlockCount = 20;
|
||||
// Dark red-orange
|
||||
Main.RegisterItemAnimation(Type, new DrawAnimationVertical(int.MaxValue, 3));
|
||||
ItemID.Sets.DrinkParticleColors[Type] = new Color[3] {
|
||||
new Color(89, 18, 10),
|
||||
new Color(102, 39, 14),
|
||||
new Color(128, 31, 9)
|
||||
};
|
||||
ItemID.Sets.IsFood[Type] = true;
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.DefaultToFood(20, 34, ModContent.BuffType<StarBeamRyeBuff>(), CalamityUtils.MinutesToFrames(6), true);
|
||||
Item.DefaultToFood(20, 54, ModContent.BuffType<StarBeamRyeBuff>(), CalamityUtils.MinutesToFrames(6), true);
|
||||
|
||||
Item.value = Item.sellPrice(silver: 2);
|
||||
Item.rare = ItemRarityID.LightRed;
|
||||
@@ -42,5 +43,10 @@ namespace CalamityMod.Items.Potions.Alcohol
|
||||
AddTile(TileID.Kegs).
|
||||
Register();
|
||||
}
|
||||
public override void UseStyle(Player player, Rectangle heldItemFrame)
|
||||
{
|
||||
player.itemLocation.X += 4 * player.direction;
|
||||
player.itemLocation.Y -= 7;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Before Width: | Height: | Size: 812 B After Width: | Height: | Size: 1.1 KiB |
@@ -5,6 +5,7 @@ using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.Localization;
|
||||
using Terraria.ModLoader;
|
||||
using Terraria.DataStructures;
|
||||
|
||||
namespace CalamityMod.Items.Potions.Alcohol
|
||||
{
|
||||
@@ -20,17 +21,18 @@ namespace CalamityMod.Items.Potions.Alcohol
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
Item.ResearchUnlockCount = 20;
|
||||
Main.RegisterItemAnimation(Type, new DrawAnimationVertical(int.MaxValue, 3));
|
||||
ItemID.Sets.DrinkParticleColors[Type] = new Color[3] {
|
||||
new Color(163, 110, 10),
|
||||
new Color(176, 135, 0),
|
||||
new Color(194, 132, 25)
|
||||
};
|
||||
ItemID.Sets.IsFood[Type] = true;
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.DefaultToFood(16, 34, ModContent.BuffType<TequilaBuff>(), CalamityUtils.MinutesToFrames(6), true);
|
||||
|
||||
Item.DefaultToFood(32, 44, ModContent.BuffType<TequilaBuff>(), CalamityUtils.MinutesToFrames(6), true);
|
||||
Item.value = Item.sellPrice(silver: 2);
|
||||
Item.rare = ItemRarityID.LightRed;
|
||||
}
|
||||
@@ -44,5 +46,10 @@ namespace CalamityMod.Items.Potions.Alcohol
|
||||
AddTile(TileID.Kegs).
|
||||
Register();
|
||||
}
|
||||
public override void UseStyle(Player player, Rectangle heldItemFrame)
|
||||
{
|
||||
player.itemLocation.X += 4 * player.direction;
|
||||
player.itemLocation.Y -= 9;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Before Width: | Height: | Size: 1002 B After Width: | Height: | Size: 1.2 KiB |
@@ -3,6 +3,7 @@ using CalamityMod.Items.Materials;
|
||||
using CalamityMod.Items.Placeables.Ores;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
using Terraria.DataStructures;
|
||||
using Terraria.ID;
|
||||
using Terraria.Localization;
|
||||
using Terraria.ModLoader;
|
||||
@@ -19,17 +20,18 @@ namespace CalamityMod.Items.Potions.Alcohol
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
Item.ResearchUnlockCount = 20;
|
||||
Main.RegisterItemAnimation(Type, new DrawAnimationVertical(int.MaxValue, 3));
|
||||
ItemID.Sets.DrinkParticleColors[Type] = new Color[3] {
|
||||
new Color(220, 75, 59),
|
||||
new Color(229, 147, 47),
|
||||
new Color(255, 190, 76)
|
||||
};
|
||||
ItemID.Sets.IsFood[Type] = true;
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.DefaultToFood(22, 28, ModContent.BuffType<TequilaSunriseBuff>(), CalamityUtils.MinutesToFrames(6), true);
|
||||
|
||||
Item.value = Item.sellPrice(silver: 2);
|
||||
Item.rare = ItemRarityID.LightRed;
|
||||
}
|
||||
@@ -43,5 +45,10 @@ namespace CalamityMod.Items.Potions.Alcohol
|
||||
AddTile(TileID.Kegs).
|
||||
Register();
|
||||
}
|
||||
public override void UseStyle(Player player, Rectangle heldItemFrame)
|
||||
{
|
||||
player.itemLocation.X += 9 * player.direction;
|
||||
player.itemLocation.Y -= 10;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 1.9 KiB |
@@ -1,8 +1,8 @@
|
||||
using CalamityMod.Buffs.Alcohol;
|
||||
using CalamityMod.Items.Materials;
|
||||
using CalamityMod.Items.Placeables.Ores;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
using Terraria.DataStructures;
|
||||
using Terraria.ID;
|
||||
using Terraria.Localization;
|
||||
using Terraria.ModLoader;
|
||||
@@ -20,11 +20,12 @@ namespace CalamityMod.Items.Potions.Alcohol
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
Item.ResearchUnlockCount = 20;
|
||||
// Another clear drink
|
||||
Main.RegisterItemAnimation(Type, new DrawAnimationVertical(int.MaxValue, 3));
|
||||
ItemID.Sets.DrinkParticleColors[Type] = new Color[2] {
|
||||
new Color(219, 219, 208, 180),
|
||||
new Color(181, 181, 176, 180)
|
||||
};
|
||||
ItemID.Sets.IsFood[Type] = true;
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
@@ -43,5 +44,10 @@ namespace CalamityMod.Items.Potions.Alcohol
|
||||
AddTile(TileID.Kegs).
|
||||
Register();
|
||||
}
|
||||
public override void UseStyle(Player player, Rectangle heldItemFrame)
|
||||
{
|
||||
player.itemLocation.X += 2 * player.direction;
|
||||
player.itemLocation.Y -= 8;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Before Width: | Height: | Size: 666 B After Width: | Height: | Size: 1.0 KiB |
@@ -1,7 +1,7 @@
|
||||
using CalamityMod.Buffs.Alcohol;
|
||||
using CalamityMod.Items.Materials;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
using Terraria.DataStructures;
|
||||
using Terraria.ID;
|
||||
using Terraria.Localization;
|
||||
using Terraria.ModLoader;
|
||||
@@ -21,17 +21,18 @@ namespace CalamityMod.Items.Potions.Alcohol
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
Item.ResearchUnlockCount = 20;
|
||||
Main.RegisterItemAnimation(Type, new DrawAnimationVertical(int.MaxValue, 3));
|
||||
ItemID.Sets.DrinkParticleColors[Type] = new Color[3] {
|
||||
new Color(227, 148, 11),
|
||||
new Color(235, 177, 5),
|
||||
new Color(250, 190, 12)
|
||||
};
|
||||
ItemID.Sets.IsFood[Type] = true;
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.DefaultToFood(18, 32, ModContent.BuffType<WhiskeyBuff>(), CalamityUtils.MinutesToFrames(6), true);
|
||||
|
||||
Item.value = Item.sellPrice(silver: 2);
|
||||
Item.rare = ItemRarityID.Blue;
|
||||
}
|
||||
@@ -43,5 +44,10 @@ namespace CalamityMod.Items.Potions.Alcohol
|
||||
AddTile(TileID.Kegs).
|
||||
Register();
|
||||
}
|
||||
public override void UseStyle(Player player, Rectangle heldItemFrame)
|
||||
{
|
||||
player.itemLocation.X += 2 * player.direction;
|
||||
player.itemLocation.Y -= 7;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Before Width: | Height: | Size: 835 B After Width: | Height: | Size: 1.1 KiB |
@@ -1,9 +1,7 @@
|
||||
using CalamityMod.Buffs.Alcohol;
|
||||
using CalamityMod.Items.Materials;
|
||||
using CalamityMod.Items.Placeables.Ores;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
using Terraria.GameInput;
|
||||
using Terraria.DataStructures;
|
||||
using Terraria.ID;
|
||||
using Terraria.Localization;
|
||||
using Terraria.ModLoader;
|
||||
@@ -21,12 +19,13 @@ namespace CalamityMod.Items.Potions.Alcohol
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
Item.ResearchUnlockCount = 20;
|
||||
// Clear, yellow-green
|
||||
Main.RegisterItemAnimation(Type, new DrawAnimationVertical(int.MaxValue, 3));
|
||||
ItemID.Sets.DrinkParticleColors[Type] = new Color[3] {
|
||||
new Color(242, 252, 177, 180),
|
||||
new Color(250, 252, 215, 180),
|
||||
new Color(228, 245, 181, 180)
|
||||
};
|
||||
ItemID.Sets.IsFood[Type] = true;
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
@@ -48,5 +47,10 @@ namespace CalamityMod.Items.Potions.Alcohol
|
||||
AddTile(TileID.Kegs).
|
||||
Register();
|
||||
}
|
||||
public override void UseStyle(Player player, Rectangle heldItemFrame)
|
||||
{
|
||||
player.itemLocation.X += 4 * player.direction;
|
||||
player.itemLocation.Y -= 5;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Before Width: | Height: | Size: 836 B After Width: | Height: | Size: 1.3 KiB |