- bobber recipe w/ 10 driftwood and 1 iron bar at anvil - all alcohols yield//bottle cost from 6/12 to 10/20 - everclear uses souls of night over starblight soot
46 lines
1.4 KiB
C#
46 lines
1.4 KiB
C#
using CalamityMod.Buffs.Alcohol;
|
|
using CalamityMod.Items.Materials;
|
|
using Microsoft.Xna.Framework;
|
|
using Terraria;
|
|
using Terraria.ID;
|
|
using Terraria.Localization;
|
|
using Terraria.ModLoader;
|
|
|
|
namespace CalamityMod.Items.Potions.Alcohol
|
|
{
|
|
public class Rum : ModItem, ILocalizedModType
|
|
{
|
|
public new string LocalizationCategory => "Items.Potions";
|
|
|
|
public static float NonMinionBoost = 1.15f;
|
|
public static float MinionBoost = 0.85f;
|
|
public override LocalizedText Tooltip => base.Tooltip.WithFormatArgs((NonMinionBoost-1).ToPercent(), (1- MinionBoost).ToPercent());
|
|
|
|
public override void SetStaticDefaults()
|
|
{
|
|
Item.ResearchUnlockCount = 20;
|
|
ItemID.Sets.DrinkParticleColors[Type] = new Color[3] {
|
|
new Color(237, 165, 9),
|
|
new Color(247, 219, 54),
|
|
new Color(255, 195, 31)
|
|
};
|
|
}
|
|
|
|
public override void SetDefaults()
|
|
{
|
|
Item.DefaultToFood(24, 26, ModContent.BuffType<RumBuff>(), CalamityUtils.MinutesToFrames(6), true);
|
|
|
|
Item.value = Item.sellPrice(silver: 30);
|
|
Item.rare = ItemRarityID.LightRed;
|
|
}
|
|
public override void AddRecipes()
|
|
{
|
|
CreateRecipe(10).
|
|
AddIngredient(ItemID.Bottle, 10).
|
|
AddIngredient(ItemID.SpiderFang,3).
|
|
AddTile(TileID.Kegs).
|
|
Register();
|
|
}
|
|
}
|
|
}
|