Commit of decompiled and "updated" code.
@@ -0,0 +1,40 @@
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
using Terraria.ID;
|
||||
|
||||
namespace FabusMod.Items.Accessories;
|
||||
|
||||
[AutoloadEquip(EquipType.Front)]
|
||||
public class HallowedBand : ModItem
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
Tooltip.SetDefault("8% increased all damage \nGrants immunity to the [c/FF4E00:On Fire!] debuff");
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.width = 30;
|
||||
Item.height = 30;
|
||||
Item.value = Item.sellPrice(0, 2, 0, 0);
|
||||
Item.rare = ItemRarityID.Pink;
|
||||
Item.accessory = true;
|
||||
Item.defense = 6;
|
||||
}
|
||||
|
||||
public override void UpdateAccessory(Player player, bool hideVisual)
|
||||
{
|
||||
player.GetDamage(DamageClass.Generic) += 0.08f;
|
||||
player.buffImmune[24] = true;
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
Recipe recipe = CreateRecipe();
|
||||
recipe.AddIngredient(ModContent.ItemType<HellfireBand>());
|
||||
recipe.AddIngredient(ItemID.HallowedBar, 3);
|
||||
recipe.AddIngredient(ItemID.Ruby, 2);
|
||||
recipe.AddTile(TileID.Anvils);
|
||||
recipe.Register();
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 552 B |
|
After Width: | Height: | Size: 124 B |
@@ -0,0 +1,53 @@
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
using Terraria.ID;
|
||||
|
||||
namespace FabusMod.Items.Accessories;
|
||||
|
||||
[AutoloadEquip(EquipType.Front)]
|
||||
public class HarmonyScarf : ModItem
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Harmony Scarf");
|
||||
Tooltip.SetDefault("Increases Max HP and Mana by 60\n20% increased all damage \nGrants immunity to the [c/FF4E00:On Fire!], [c/A84DFD:Distorted], and [c/9362B3:Obstructed] debuffs \n'This would be a nice gift for a partner!'");
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.width = 42;
|
||||
Item.height = 38;
|
||||
Item.value = Item.sellPrice(5, 0, 0, 0);
|
||||
Item.expert = true;
|
||||
Item.accessory = true;
|
||||
Item.defense = 16;
|
||||
}
|
||||
|
||||
public override void UpdateAccessory(Player player, bool hideVisual)
|
||||
{
|
||||
player.statManaMax2 += 60;
|
||||
player.statLifeMax2 += 60;
|
||||
player.GetDamage(DamageClass.Generic) += 0.2f;
|
||||
player.buffImmune[24] = true;
|
||||
player.buffImmune[164] = true;
|
||||
player.buffImmune[163] = true;
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
Recipe recipe = CreateRecipe();
|
||||
recipe.AddIngredient(ModContent.ItemType<LunaticBand>());
|
||||
recipe.AddIngredient(ModContent.ItemType<Items.CraftingIngredients.NatureToken>());
|
||||
recipe.AddIngredient(ItemID.LeafWand, 1);
|
||||
recipe.AddIngredient(ItemID.Emerald, 8);
|
||||
recipe.AddIngredient(ItemID.SoulofLight, 15);
|
||||
recipe.AddIngredient(ItemID.SoulofNight, 15);
|
||||
recipe.AddIngredient(ItemID.SoulofSight, 15);
|
||||
recipe.AddIngredient(ItemID.SoulofFright, 15);
|
||||
recipe.AddIngredient(ItemID.SoulofMight, 15);
|
||||
recipe.AddIngredient(ItemID.LunarBar, 8);
|
||||
recipe.AddIngredient(ModContent.ItemType<Bars.RainbowChunk>(), 8);
|
||||
recipe.AddTile(ModContent.TileType<global::FabusMod.Tiles.RainbowStation>());
|
||||
recipe.Register();
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 569 B |
@@ -0,0 +1,54 @@
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
using Terraria.ID;
|
||||
|
||||
namespace FabusMod.Items.Accessories;
|
||||
|
||||
[AutoloadEquip(EquipType.Front)]
|
||||
public class HarmonyScarfUpgraded : ModItem
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Ultimate Scarf of Hope");
|
||||
Tooltip.SetDefault("Increases Max HP and Mana by 120\n30% increased all damage \nGrants immunity to the [c/FF4E00:On Fire!], [c/A84DFD:Distorted], and [c/9362B3:Obstructed] debuffs \n'What else is left...?'");
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.width = 42;
|
||||
Item.height = 36;
|
||||
Item.value = Item.sellPrice(20, 0, 0, 0);
|
||||
Item.expert = true;
|
||||
Item.accessory = true;
|
||||
Item.defense = 26;
|
||||
}
|
||||
|
||||
public override void UpdateAccessory(Player player, bool hideVisual)
|
||||
{
|
||||
player.statManaMax2 += 120;
|
||||
player.statLifeMax2 += 120;
|
||||
player.GetDamage(DamageClass.Generic) += 0.3f;
|
||||
player.buffImmune[24] = true;
|
||||
player.buffImmune[164] = true;
|
||||
player.buffImmune[163] = true;
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
Recipe val = CreateRecipe();
|
||||
val.AddIngredient(ModContent.ItemType<HarmonyScarf>());
|
||||
val.AddIngredient(ModContent.ItemType<Items.CraftingIngredients.RainbowToken>());
|
||||
val.AddIngredient(ItemID.Sapphire, 15);
|
||||
val.AddIngredient(ItemID.Ruby, 15);
|
||||
val.AddIngredient(ItemID.Amethyst, 15);
|
||||
val.AddIngredient(ItemID.SoulofLight, 30);
|
||||
val.AddIngredient(ItemID.SoulofNight, 30);
|
||||
val.AddIngredient(ItemID.SoulofSight, 30);
|
||||
val.AddIngredient(ItemID.SoulofFright, 30);
|
||||
val.AddIngredient(ItemID.SoulofMight, 30);
|
||||
val.AddIngredient(ItemID.LunarBar, 20);
|
||||
val.AddIngredient(ModContent.ItemType<Bars.RainbowChunk>(), 20);
|
||||
val.AddTile(ModContent.TileType<global::FabusMod.Tiles.RainbowStation>());
|
||||
val.Register();
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 621 B |
|
After Width: | Height: | Size: 124 B |
|
After Width: | Height: | Size: 124 B |
@@ -0,0 +1,40 @@
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
using Terraria.ID;
|
||||
|
||||
namespace FabusMod.Items.Accessories;
|
||||
|
||||
[AutoloadEquip(EquipType.Front)]
|
||||
public class HellfireBand : ModItem
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Hellfire Band");
|
||||
Tooltip.SetDefault("4% increased all damage \nGrants immunity to the [c/FF4E00:On Fire!] debuff");
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.width = 30;
|
||||
Item.height = 36;
|
||||
Item.value = Item.sellPrice(0, 1, 0, 0);
|
||||
Item.rare = ItemRarityID.Orange;
|
||||
Item.accessory = true;
|
||||
Item.defense = 4;
|
||||
}
|
||||
|
||||
public override void UpdateAccessory(Player player, bool hideVisual)
|
||||
{
|
||||
player.GetDamage(DamageClass.Generic) += 0.04f;
|
||||
player.buffImmune[24] = true;
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
Recipe val = CreateRecipe();
|
||||
val.AddIngredient(ModContent.ItemType<IronBand>());
|
||||
val.AddIngredient(ItemID.HellstoneBar, 3);
|
||||
val.AddTile(TileID.Anvils);
|
||||
val.Register();
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 498 B |
|
After Width: | Height: | Size: 124 B |
@@ -0,0 +1,33 @@
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
using Terraria.ID;
|
||||
|
||||
namespace FabusMod.Items.Accessories;
|
||||
|
||||
[AutoloadEquip(EquipType.Front)]
|
||||
public class IronBand : ModItem
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Iron Band");
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.width = 30;
|
||||
Item.height = 30;
|
||||
Item.value = Item.sellPrice(0, 0, 6, 0);
|
||||
Item.rare = ItemRarityID.Blue;
|
||||
Item.accessory = true;
|
||||
Item.defense = 2;
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
Recipe val = CreateRecipe();
|
||||
val.AddIngredient(ModContent.ItemType<Items.CraftingIngredients.BrokenBand>());
|
||||
val.AddRecipeGroup("IronBar", 3);
|
||||
val.AddTile(TileID.Anvils);
|
||||
val.Register();
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 403 B |
|
After Width: | Height: | Size: 124 B |
@@ -0,0 +1,60 @@
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
using Terraria.ID;
|
||||
|
||||
namespace FabusMod.Items.Accessories;
|
||||
|
||||
[AutoloadEquip(EquipType.Front)]
|
||||
public class LunaticBand : ModItem
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Lunatic Charm");
|
||||
Tooltip.SetDefault("14% increased all damage \nGrants immunity to the [c/FF4E00:On Fire!], [c/A84DFD:Distorted], and [c/9362B3:Obstructed] debuffs");
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.width = 40;
|
||||
Item.height = 42;
|
||||
Item.value = Item.sellPrice(0, 20, 0, 0);
|
||||
Item.rare = 12;
|
||||
Item.accessory = true;
|
||||
Item.defense = 12;
|
||||
}
|
||||
|
||||
public override void UpdateAccessory(Player player, bool hideVisual)
|
||||
{
|
||||
player.GetDamage(DamageClass.Generic) += 0.14f;
|
||||
player.buffImmune[24] = true;
|
||||
player.buffImmune[164] = true;
|
||||
player.buffImmune[163] = true;
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
Recipe val = CreateRecipe();
|
||||
val.AddIngredient(ModContent.ItemType<SolarBand>());
|
||||
val.AddIngredient(ItemID.LunarBar, 8);
|
||||
val.AddTile(TileID.LunarCraftingStation);
|
||||
val.Register();
|
||||
|
||||
Recipe val2 = CreateRecipe();
|
||||
val2.AddIngredient(ModContent.ItemType<VortexBand>());
|
||||
val2.AddIngredient(ItemID.LunarBar, 8);
|
||||
val2.AddTile(TileID.LunarCraftingStation);
|
||||
val2.Register();
|
||||
|
||||
Recipe val3 = CreateRecipe();
|
||||
val3.AddIngredient(ModContent.ItemType<StardustBand>());
|
||||
val3.AddIngredient(ItemID.LunarBar, 8);
|
||||
val3.AddTile(TileID.LunarCraftingStation);
|
||||
val3.Register();
|
||||
|
||||
Recipe val4 = CreateRecipe();
|
||||
val4.AddIngredient(ModContent.ItemType<NebulaBand>());
|
||||
val4.AddIngredient(ItemID.LunarBar, 8);
|
||||
val4.AddTile(TileID.LunarCraftingStation);
|
||||
val4.Register();
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 876 B |
|
After Width: | Height: | Size: 124 B |
@@ -0,0 +1,42 @@
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
using Terraria.ID;
|
||||
|
||||
namespace FabusMod.Items.Accessories;
|
||||
|
||||
[AutoloadEquip(EquipType.Front)]
|
||||
public class NebulaBand : ModItem
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Nebula Band");
|
||||
Tooltip.SetDefault("12% increased magic damage \nGrants immunity to the [c/FF4E00:On Fire!], [c/A84DFD:Distorted], and [c/9362B3:Obstructed] debuffs");
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.width = 30;
|
||||
Item.height = 36;
|
||||
Item.value = Item.sellPrice(0, 4, 0, 0);
|
||||
Item.rare = ItemRarityID.Red;
|
||||
Item.accessory = true;
|
||||
Item.defense = 8;
|
||||
}
|
||||
|
||||
public override void UpdateAccessory(Player player, bool hideVisual)
|
||||
{
|
||||
player.GetDamage(DamageClass.Magic) += 0.12f;
|
||||
player.buffImmune[24] = true;
|
||||
player.buffImmune[164] = true;
|
||||
player.buffImmune[163] = true;
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
Recipe val = CreateRecipe();
|
||||
val.AddIngredient(ModContent.ItemType<HallowedBand>());
|
||||
val.AddIngredient(ItemID.FragmentNebula, 6);
|
||||
val.AddTile(TileID.LunarCraftingStation);
|
||||
val.Register();
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 639 B |
|
After Width: | Height: | Size: 124 B |
@@ -0,0 +1,43 @@
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
using Terraria.ID;
|
||||
|
||||
namespace FabusMod.Items.Accessories;
|
||||
|
||||
[AutoloadEquip(EquipType.Front)]
|
||||
public class SolarBand : ModItem
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Solar Band");
|
||||
Tooltip.SetDefault("12% increased melee and throwing damage \nGrants immunity to the [c/FF4E00:On Fire!], [c/A84DFD:Distorted], and [c/9362B3:Obstructed] debuffs");
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.width = 30;
|
||||
Item.height = 36;
|
||||
Item.value = Item.sellPrice(0, 4, 0, 0);
|
||||
Item.rare = ItemRarityID.Red;
|
||||
Item.accessory = true;
|
||||
Item.defense = 8;
|
||||
}
|
||||
|
||||
public override void UpdateAccessory(Player player, bool hideVisual)
|
||||
{
|
||||
player.GetDamage(DamageClass.Melee) += 0.12f;
|
||||
player.GetDamage(DamageClass.Throwing) += 0.12f;
|
||||
player.buffImmune[24] = true;
|
||||
player.buffImmune[164] = true;
|
||||
player.buffImmune[163] = true;
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
Recipe val = CreateRecipe();
|
||||
val.AddIngredient(ModContent.ItemType<HallowedBand>());
|
||||
val.AddIngredient(ItemID.FragmentSolar, 6);
|
||||
val.AddTile(TileID.LunarCraftingStation);
|
||||
val.Register();
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 515 B |
|
After Width: | Height: | Size: 124 B |
@@ -0,0 +1,42 @@
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
using Terraria.ID;
|
||||
|
||||
namespace FabusMod.Items.Accessories;
|
||||
|
||||
[AutoloadEquip(EquipType.Front)]
|
||||
public class StardustBand : ModItem
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Stardust Band");
|
||||
Tooltip.SetDefault("12% increased minion damage \nGrants immunity to the [c/FF4E00:On Fire!], [c/A84DFD:Distorted], and [c/9362B3:Obstructed] debuffs");
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.width = 30;
|
||||
Item.height = 36;
|
||||
Item.value = Item.sellPrice(0, 4, 0, 0);
|
||||
Item.rare = ItemRarityID.Red;
|
||||
Item.accessory = true;
|
||||
Item.defense = 8;
|
||||
}
|
||||
|
||||
public override void UpdateAccessory(Player player, bool hideVisual)
|
||||
{
|
||||
player.GetDamage(DamageClass.Summon) += 0.12f;
|
||||
player.buffImmune[24] = true;
|
||||
player.buffImmune[164] = true;
|
||||
player.buffImmune[163] = true;
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
Recipe val = CreateRecipe();
|
||||
val.AddIngredient(ModContent.ItemType<HallowedBand>());
|
||||
val.AddIngredient(ItemID.FragmentStardust, 6);
|
||||
val.AddTile(TileID.LunarCraftingStation);
|
||||
val.Register();
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 569 B |
|
After Width: | Height: | Size: 124 B |
@@ -0,0 +1,52 @@
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
using Terraria.ID;
|
||||
|
||||
namespace FabusMod.Items.Accessories;
|
||||
|
||||
[AutoloadEquip(EquipType.Wings)]
|
||||
public class ValkyrieWings : ModItem
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
Tooltip.SetDefault("Heroes always fly!");
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.width = 30;
|
||||
Item.height = 38;
|
||||
Item.value = Item.sellPrice(0, 8, 0, 0);
|
||||
Item.rare = ItemRarityID.Pink;
|
||||
Item.accessory = true;
|
||||
}
|
||||
|
||||
public override void UpdateAccessory(Player player, bool hideVisual)
|
||||
{
|
||||
player.wingTimeMax = 180;
|
||||
}
|
||||
|
||||
public override void VerticalWingSpeeds(Player player, ref float ascentWhenFalling, ref float ascentWhenRising, ref float maxCanAscendMultiplier, ref float maxAscentMultiplier, ref float constantAscend)
|
||||
{
|
||||
ascentWhenFalling = 0.75f;
|
||||
ascentWhenRising = 0.2f;
|
||||
maxCanAscendMultiplier = 1f;
|
||||
maxAscentMultiplier = 2f;
|
||||
constantAscend = 0.11f;
|
||||
}
|
||||
|
||||
public override void HorizontalWingSpeeds(Player player, ref float speed, ref float acceleration)
|
||||
{
|
||||
speed = 6f;
|
||||
acceleration *= 1f;
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
Recipe val = CreateRecipe();
|
||||
val.AddIngredient(ItemID.HallowedBar, 10);
|
||||
val.AddIngredient(ItemID.SoulofFlight, 20);
|
||||
val.AddTile(TileID.MythrilAnvil);
|
||||
val.Register();
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 572 B |
|
After Width: | Height: | Size: 2.0 KiB |
@@ -0,0 +1,42 @@
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
using Terraria.ID;
|
||||
|
||||
namespace FabusMod.Items.Accessories;
|
||||
|
||||
[AutoloadEquip(EquipType.Front)]
|
||||
public class VortexBand : ModItem
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Vortex Band");
|
||||
Tooltip.SetDefault("12% increased ranged damage \nGrants immunity to the [c/FF4E00:On Fire!], [c/A84DFD:Distorted], and [c/9362B3:Obstructed] debuffs");
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.width = 30;
|
||||
Item.height = 36;
|
||||
Item.value = Item.sellPrice(0, 4, 0, 0);
|
||||
Item.rare = ItemRarityID.Red;
|
||||
Item.accessory = true;
|
||||
Item.defense = 8;
|
||||
}
|
||||
|
||||
public override void UpdateAccessory(Player player, bool hideVisual)
|
||||
{
|
||||
player.GetDamage(DamageClass.Ranged) += 0.12f;
|
||||
player.buffImmune[24] = true;
|
||||
player.buffImmune[164] = true;
|
||||
player.buffImmune[163] = true;
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
Recipe val = CreateRecipe();
|
||||
val.AddIngredient(ModContent.ItemType<HallowedBand>());
|
||||
val.AddIngredient(ItemID.FragmentVortex, 6);
|
||||
val.AddTile(TileID.LunarCraftingStation);
|
||||
val.Register();
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 523 B |
|
After Width: | Height: | Size: 124 B |
@@ -0,0 +1,36 @@
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
using Terraria.ID;
|
||||
|
||||
namespace FabusMod.Items.Bars;
|
||||
|
||||
public class RainbowChunk : ModItem
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Rainbow Chunk");
|
||||
Tooltip.SetDefault("[c/C9FF4C:Crafting Ingredient]\nFull of colors!");
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.width = 30;
|
||||
Item.height = 24;
|
||||
Item.maxStack = 99;
|
||||
Item.value = Item.sellPrice(0, 21, 0, 0);
|
||||
Item.expert = true;
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
Recipe val = CreateRecipe();
|
||||
val.AddIngredient(ModContent.ItemType<Items.CraftingIngredients.RainbowDust>(), 4);
|
||||
val.AddIngredient(ItemID.LunarBar);
|
||||
val.AddIngredient(ItemID.FragmentNebula);
|
||||
val.AddIngredient(ItemID.FragmentSolar);
|
||||
val.AddIngredient(ItemID.FragmentVortex);
|
||||
val.AddIngredient(ItemID.FragmentStardust);
|
||||
val.AddTile(TileID.LunarCraftingStation);
|
||||
val.Register();
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 602 B |
@@ -0,0 +1,34 @@
|
||||
using Terraria;
|
||||
using Terraria.DataStructures;
|
||||
using Terraria.ModLoader;
|
||||
using Terraria.ID;
|
||||
|
||||
namespace FabusMod.Items;
|
||||
|
||||
public class BossBags : GlobalItem
|
||||
{
|
||||
public override void OpenVanillaBag(string context, Player player, int arg)
|
||||
{
|
||||
if (context == "bossBag" && arg == ItemID.KingSlimeBossBag && Utils.NextFloat(Main.rand) < 0.5f && Main.expertMode)
|
||||
{
|
||||
player.QuickSpawnItem(new EntitySource_Misc(""), ModContent.ItemType<Items.CraftingIngredients.OminousBook>());
|
||||
}
|
||||
|
||||
if (context == "bossBag" && arg == ItemID.QueenBeeBossBag && Utils.NextFloat(Main.rand) < 0.4f)
|
||||
{
|
||||
player.QuickSpawnItem(new EntitySource_Misc(""), ModContent.ItemType<Items.CraftingIngredients.NatureToken>());
|
||||
}
|
||||
|
||||
if (context == "bossBag" && arg == ItemID.SkeletronBossBag && Utils.NextFloat(Main.rand) < 0.4f)
|
||||
{
|
||||
player.QuickSpawnItem(new EntitySource_Misc(""), ModContent.ItemType<Weapons.Ranged.Bows.StormBows.StormBow>());
|
||||
}
|
||||
|
||||
if (context == "bossBag" && arg == ItemID.QueenBeeBossBag && Utils.NextFloat(Main.rand) < 0.2f)
|
||||
{
|
||||
player.QuickSpawnItem(new EntitySource_Misc(""), ModContent.ItemType<Vanity.Leafy.LeafyHat>());
|
||||
player.QuickSpawnItem(new EntitySource_Misc(""), ModContent.ItemType<Vanity.Leafy.LeafyChest>());
|
||||
player.QuickSpawnItem(new EntitySource_Misc(""), ModContent.ItemType<Vanity.Leafy.LeafyLegs>());
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
using Terraria.ID;
|
||||
|
||||
namespace FabusMod.Items.Items.CraftingIngredients;
|
||||
|
||||
public class BrokenBand : ModItem
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Broken Band");
|
||||
Tooltip.SetDefault("[c/C9FF4C:Crafting Ingredient]\n'This broken band feels oddly important to you...' \nIt would be wise to keep it.");
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.width = 30;
|
||||
Item.height = 30;
|
||||
Item.maxStack = 99;
|
||||
Item.value = Item.sellPrice(0, 0, 0, 10);
|
||||
Item.rare = ItemRarityID.White;
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 364 B |
@@ -0,0 +1,40 @@
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
using Terraria.ID;
|
||||
|
||||
namespace FabusMod.Items.Items.CraftingIngredients;
|
||||
|
||||
public class GoddessGold : ModItem
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Goddess Gold");
|
||||
Tooltip.SetDefault("[c/C9FF4C:Crafting Ingredient]\nGold to fit a goddess!");
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.width = 28;
|
||||
Item.height = 26;
|
||||
Item.maxStack = 99;
|
||||
Item.value = Item.sellPrice(0, 2, 75, 25);
|
||||
Item.rare = ItemRarityID.Yellow;
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
Recipe val = CreateRecipe();
|
||||
val.AddIngredient(ItemID.Ectoplasm);
|
||||
val.AddIngredient(ItemID.GoldBar, 2);
|
||||
val.AddIngredient(ModContent.ItemType<SoulofWisdom>());
|
||||
val.AddTile(TileID.AdamantiteForge);
|
||||
val.Register();
|
||||
|
||||
Recipe val2 = CreateRecipe();
|
||||
val2.AddIngredient(ItemID.Ectoplasm);
|
||||
val2.AddIngredient(ItemID.PlatinumBar, 2);
|
||||
val2.AddIngredient(ModContent.ItemType<SoulofWisdom>());
|
||||
val2.AddTile(TileID.AdamantiteForge);
|
||||
val2.Register();
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 469 B |
@@ -0,0 +1,22 @@
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace FabusMod.Items.Items.CraftingIngredients;
|
||||
|
||||
public class NatureToken : ModItem
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Nature Token");
|
||||
Tooltip.SetDefault("[c/C9FF4C:Crafting Ingredient]\nUsed to convert the raw power of nature into weapons");
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.width = 30;
|
||||
Item.height = 30;
|
||||
Item.maxStack = 99;
|
||||
Item.value = Item.sellPrice(0, 2, 0, 0);
|
||||
Item.expert = true;
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 504 B |
@@ -0,0 +1,22 @@
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace FabusMod.Items.Items.CraftingIngredients;
|
||||
|
||||
public class OminousBook : ModItem
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Ominous Book");
|
||||
Tooltip.SetDefault("[c/C9FF4C:Crafting Ingredient]\nAn ominous presence emits from this book. Maybe pack some gems and bring it to an altar?");
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.width = 28;
|
||||
Item.height = 30;
|
||||
Item.maxStack = 99;
|
||||
Item.value = Item.sellPrice(0, 2, 0, 0);
|
||||
Item.expert = true;
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 384 B |
@@ -0,0 +1,22 @@
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace FabusMod.Items.Items.CraftingIngredients;
|
||||
|
||||
public class RainbowDust : ModItem
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Rainbow Dust");
|
||||
Tooltip.SetDefault("[c/C9FF4C:Crafting Ingredient]\nDon't inhale it!");
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.width = 24;
|
||||
Item.height = 24;
|
||||
Item.maxStack = 999;
|
||||
Item.expert = true;
|
||||
Item.value = Item.sellPrice(0, 0, 4, 50);
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 500 B |
@@ -0,0 +1,22 @@
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace FabusMod.Items.Items.CraftingIngredients;
|
||||
|
||||
public class RainbowHandle : ModItem
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Rainbow Handle");
|
||||
Tooltip.SetDefault("[c/C9FF4C:Crafting Ingredient]\nUsed to craft The Rainbow Demon \n[c/FF2B6E:Currently Unobtainable]");
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.width = 35;
|
||||
Item.height = 37;
|
||||
Item.maxStack = 99;
|
||||
Item.value = Item.sellPrice(18, 0, 0, 0);
|
||||
Item.expert = true;
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 1.0 KiB |
@@ -0,0 +1,22 @@
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace FabusMod.Items.Items.CraftingIngredients;
|
||||
|
||||
public class RainbowMuzzle : ModItem
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Rainbow Muzzle");
|
||||
Tooltip.SetDefault("[c/C9FF4C:Crafting Ingredient]\nUsed to craft The Rainbow Demon \n[c/FF2B6E:Currently Unobtainable]");
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.width = 48;
|
||||
Item.height = 33;
|
||||
Item.maxStack = 99;
|
||||
Item.value = Item.sellPrice(21, 0, 0, 0);
|
||||
Item.expert = true;
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 1.3 KiB |
@@ -0,0 +1,31 @@
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace FabusMod.Items.Items.CraftingIngredients;
|
||||
|
||||
public class RainbowToken : ModItem
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Rainbow Token");
|
||||
Tooltip.SetDefault("[c/C9FF4C:Crafting Ingredient]\nUsed to convert the raw power of rainbows into weapons");
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.width = 30;
|
||||
Item.height = 30;
|
||||
Item.maxStack = 99;
|
||||
Item.value = Item.sellPrice(0, 9, 80, 0);
|
||||
Item.expert = true;
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
Recipe val = CreateRecipe();
|
||||
val.AddIngredient(ModContent.ItemType<NatureToken>(), 4);
|
||||
val.AddIngredient(ModContent.ItemType<RainbowDust>(), 40);
|
||||
val.AddTile(ModContent.TileType<global::FabusMod.Tiles.RainbowStation>());
|
||||
val.Register();
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 751 B |
@@ -0,0 +1,36 @@
|
||||
using Terraria;
|
||||
using Terraria.DataStructures;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace FabusMod.Items.Items.CraftingIngredients;
|
||||
|
||||
public class SoulofWisdom : ModItem
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
Main.RegisterItemAnimation(Type, new DrawAnimationVertical(5, 4));
|
||||
DisplayName.SetDefault("Soul of Wisdom");
|
||||
Tooltip.SetDefault("[c/C9FF4C:Crafting Ingredient]\n'The essence of everlasting knowledge'");
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.width = 22;
|
||||
Item.height = 28;
|
||||
Item.maxStack = 99;
|
||||
Item.value = Item.sellPrice(0, 2, 40, 0);
|
||||
Item.rare = ItemRarityID.Pink;
|
||||
//Sets.ItemNoGravity[Item.type] = true;
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
Recipe val = CreateRecipe();
|
||||
val.AddIngredient(ItemID.SoulofFright, 1);
|
||||
val.AddIngredient(ItemID.SoulofMight, 1);
|
||||
val.AddIngredient(ItemID.SoulofSight, 1);
|
||||
val.AddTile(TileID.AdamantiteForge);
|
||||
val.Register();
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 1.2 KiB |
@@ -0,0 +1,47 @@
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
using Terraria.ID;
|
||||
|
||||
namespace FabusMod.Items.Items;
|
||||
|
||||
public class DamageDebugItem : ModItem
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Damage Debug Item");
|
||||
Tooltip.SetDefault("Use to damage yourself by 100 HP\nUse <right> to heal by 100 HP\n[c/FF2B6E:Currently Unobtainable]");
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.width = 22;
|
||||
Item.height = 32;
|
||||
Item.useTime = 1;
|
||||
Item.useAnimation = 1;
|
||||
Item.maxStack = 1;
|
||||
Item.useStyle = ItemUseStyleID.Shoot;
|
||||
Item.value = Item.sellPrice(0, 0, 0, 0);
|
||||
Item.expert = false;
|
||||
}
|
||||
|
||||
public override bool AltFunctionUse(Player player)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
public override void UseStyle(Player player, Rectangle heldItemFrame)
|
||||
{
|
||||
if (player.altFunctionUse == 2)
|
||||
{
|
||||
if (player.whoAmI == Main.myPlayer && player.itemTime == 0)
|
||||
{
|
||||
player.statLife += 100;
|
||||
}
|
||||
}
|
||||
else if (player.whoAmI == Main.myPlayer && player.itemTime == 0)
|
||||
{
|
||||
player.statLife -= 100;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 484 B |
@@ -0,0 +1,43 @@
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
using Terraria.ID;
|
||||
|
||||
namespace FabusMod.Items.Items.PetSummons;
|
||||
|
||||
public class Apple : ModItem
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.CloneDefaults(ItemID.Carrot);
|
||||
Item.useTime = 25;
|
||||
Item.useAnimation = 25;
|
||||
Item.value = Item.buyPrice(0, 10, 0, 0);
|
||||
Item.value = Item.sellPrice(0, 5, 0, 0);
|
||||
Item.shoot = ModContent.ProjectileType<Projectiles.Pets.FoxPet>();
|
||||
Item.buffType = ModContent.BuffType<Buffs.FoxPetBuff>();
|
||||
}
|
||||
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Apple");
|
||||
Tooltip.SetDefault("[c/B6FF00:Dyeable]\n[c/FFAF4F:Pet Summoning Item]\nSummons a fox to follow you around \n[c/FF2B6E:Currently Unobtainable]");
|
||||
}
|
||||
|
||||
public override void UseStyle(Player player, Rectangle heldItemFrame)
|
||||
{
|
||||
if (player.whoAmI == Main.myPlayer && player.itemTime == 0)
|
||||
{
|
||||
player.AddBuff(Item.buffType, 3600, true);
|
||||
}
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
Recipe recipe = CreateRecipe();
|
||||
recipe.AddIngredient(ModContent.ItemType<PinkApple>());
|
||||
recipe.AddIngredient(ItemID.RedDye);
|
||||
recipe.AddTile(TileID.DyeVat);
|
||||
recipe.Register();
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 571 B |
@@ -0,0 +1,42 @@
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
using Terraria.ID;
|
||||
|
||||
namespace FabusMod.Items.Items.PetSummons;
|
||||
|
||||
public class PinkApple : ModItem
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.CloneDefaults(ItemID.Carrot);
|
||||
Item.useTime = 25;
|
||||
Item.useAnimation = 25;
|
||||
Item.value = Item.sellPrice(0, 5, 20, 0);
|
||||
Item.shoot = ModContent.ProjectileType<Projectiles.Pets.PinkFoxPet>();
|
||||
Item.buffType = ModContent.BuffType<Buffs.PinkFoxPetBuff>();
|
||||
}
|
||||
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Pink Apple");
|
||||
Tooltip.SetDefault("[c/B6FF00:Dyeable]\n[c/FFAF4F:Pet Summoning Item]\nSummons a pink fox to follow you around \n[c/FF2B6E:Currently Unobtainable]");
|
||||
}
|
||||
|
||||
public override void UseStyle(Player player, Rectangle heldItemFrame)
|
||||
{
|
||||
if (player.whoAmI == Main.myPlayer && player.itemTime == 0)
|
||||
{
|
||||
player.AddBuff(Item.buffType, 3600, true);
|
||||
}
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
Recipe val = CreateRecipe();
|
||||
val.AddIngredient(ModContent.ItemType<Apple>());
|
||||
val.AddIngredient(ItemID.PinkDye);
|
||||
val.AddTile(TileID.DyeVat);
|
||||
val.Register();
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 570 B |
@@ -0,0 +1,32 @@
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace FabusMod.Items.Items.PetSummons;
|
||||
|
||||
public class SuspiciousFlower : ModItem
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Suspicious Flower");
|
||||
Tooltip.SetDefault("[c/FFAF4F:Pet Summoning Item]\nI wonder who this flower belongs to? \n[c/46FFFF:~~ Developer Pet ~~]");
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.value = Item.buyPrice(0, 20, 0, 0);
|
||||
Item.rare = ItemRarityID.Red;
|
||||
Item.UseSound = SoundID.Item44;
|
||||
Item.shoot = ModContent.ProjectileType<Projectiles.Pets.WindUpFabu>();
|
||||
Item.buffType = ModContent.BuffType<Buffs.WindUpFabu>();
|
||||
}
|
||||
|
||||
public override void UseStyle(Player player, Rectangle heldItemFrame)
|
||||
{
|
||||
if (player.whoAmI == Main.myPlayer && player.itemTime == 0)
|
||||
{
|
||||
player.AddBuff(Item.buffType, 3600, true);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 581 B |
@@ -0,0 +1,30 @@
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
using Terraria.ID;
|
||||
|
||||
namespace FabusMod.Items.Items.PetSummons;
|
||||
|
||||
public class SuspiciousLookingScrew : ModItem
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Suspicious Looking Screw");
|
||||
Tooltip.SetDefault("[c/FFAF4F:Pet Summoning Item]\nSummons Mechanical Teeth to follow you around \n[c/46FFFF:~~ Developer Pet ~~]");
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.CloneDefaults(ItemID.ZephyrFish);
|
||||
Item.shoot = ModContent.ProjectileType<Projectiles.Pets.MechanicalTooth>();
|
||||
Item.buffType = ModContent.BuffType<Buffs.MechanicalTooth>();
|
||||
}
|
||||
|
||||
public override void UseStyle(Player player, Rectangle heldItemFrame)
|
||||
{
|
||||
if (player.whoAmI == Main.myPlayer && player.itemTime == 0)
|
||||
{
|
||||
player.AddBuff(Item.buffType, 3600, true);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 354 B |
@@ -0,0 +1,31 @@
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
using Terraria.ID;
|
||||
|
||||
namespace FabusMod.Items.Items.WeaponParts;
|
||||
|
||||
public class UntreatedBowPart : ModItem
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Untreated Bow Part");
|
||||
Tooltip.SetDefault("[c/C9FF4C:Crafting Ingredient]");
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.width = 14;
|
||||
Item.height = 20;
|
||||
Item.maxStack = 99;
|
||||
Item.value = Item.sellPrice(0, 0, 0, 20);
|
||||
Item.rare = ItemRarityID.White;
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
Recipe val = CreateRecipe();
|
||||
val.AddRecipeGroup("Wood", 2);
|
||||
val.AddTile(TileID.WorkBenches);
|
||||
val.Register();
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 229 B |
@@ -0,0 +1,31 @@
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
using Terraria.ID;
|
||||
|
||||
namespace FabusMod.Items.Items.WeaponParts;
|
||||
|
||||
public class UntreatedShortswordPart : ModItem
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Untreated Shortsword Part");
|
||||
Tooltip.SetDefault("[c/C9FF4C:Crafting Ingredient]");
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.width = 28;
|
||||
Item.height = 26;
|
||||
Item.maxStack = 99;
|
||||
Item.value = Item.sellPrice(0, 0, 0, 20);
|
||||
Item.rare = ItemRarityID.White;
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
Recipe val = CreateRecipe();
|
||||
val.AddRecipeGroup("Wood", 6);
|
||||
val.AddTile(TileID.WorkBenches);
|
||||
val.Register();
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 290 B |
@@ -0,0 +1,31 @@
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
using Terraria.ID;
|
||||
|
||||
namespace FabusMod.Items.Items.WeaponParts;
|
||||
|
||||
public class UntreatedShurikenPart : ModItem
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Untreated Shuriken Part");
|
||||
Tooltip.SetDefault("[c/C9FF4C:Crafting Ingredient]");
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.width = 26;
|
||||
Item.height = 26;
|
||||
Item.maxStack = 99;
|
||||
Item.value = Item.sellPrice(0, 0, 0, 20);
|
||||
Item.rare = ItemRarityID.White;
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
Recipe val = CreateRecipe();
|
||||
val.AddRecipeGroup("Wood", 3);
|
||||
val.AddTile(TileID.WorkBenches);
|
||||
val.Register();
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 325 B |
@@ -0,0 +1,31 @@
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
using Terraria.ID;
|
||||
|
||||
namespace FabusMod.Items.Items.WeaponParts;
|
||||
|
||||
public class UntreatedSwordParts : ModItem
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Untreated Sword Parts");
|
||||
Tooltip.SetDefault("[c/C9FF4C:Crafting Ingredient]");
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.width = 42;
|
||||
Item.height = 26;
|
||||
Item.maxStack = 99;
|
||||
Item.value = Item.sellPrice(0, 0, 0, 20);
|
||||
Item.rare = ItemRarityID.White;
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
Recipe val = CreateRecipe();
|
||||
val.AddRecipeGroup("Wood", 12);
|
||||
val.AddTile(TileID.WorkBenches);
|
||||
val.Register();
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 356 B |
@@ -0,0 +1,38 @@
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
using Terraria.ID;
|
||||
|
||||
namespace FabusMod.Items.Tiles;
|
||||
|
||||
public class RainbowStation : ModItem
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Rainbow Station");
|
||||
Tooltip.SetDefault("Used to craft rainbow weapons");
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.width = 40;
|
||||
Item.height = 24;
|
||||
Item.maxStack = 99;
|
||||
Item.useTurn = true;
|
||||
Item.autoReuse = true;
|
||||
Item.useAnimation = 15;
|
||||
Item.useTime = 10;
|
||||
Item.useStyle = ItemUseStyleID.Swing;
|
||||
Item.consumable = true;
|
||||
Item.expert = true;
|
||||
Item.createTile = ModContent.TileType<global::FabusMod.Tiles.RainbowStation>();
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
Recipe val = CreateRecipe();
|
||||
val.AddIngredient(ItemID.LunarCraftingStation, 1);
|
||||
val.AddIngredient(ModContent.ItemType<Bars.RainbowChunk>(), 12);
|
||||
val.AddTile(TileID.LunarCraftingStation);
|
||||
val.Register();
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 908 B |
@@ -0,0 +1,36 @@
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
using Terraria.ID;
|
||||
|
||||
namespace FabusMod.Items.Tiles;
|
||||
|
||||
public class ReinforcedWorkBench : ModItem
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Reinforced Work Bench");
|
||||
Tooltip.SetDefault("Used to craft stone-plated weapons");
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.width = 36;
|
||||
Item.height = 20;
|
||||
Item.maxStack = 99;
|
||||
Item.useTurn = true;
|
||||
Item.autoReuse = true;
|
||||
Item.useAnimation = 15;
|
||||
Item.useTime = 15;
|
||||
Item.useStyle = ItemUseStyleID.Swing;
|
||||
Item.consumable = true;
|
||||
Item.createTile = ModContent.TileType<global::FabusMod.Tiles.ReinforcedWorkBench>();
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
Recipe val = CreateRecipe();
|
||||
val.AddIngredient(ItemID.WorkBench, 1);
|
||||
val.AddIngredient(ItemID.StoneBlock, 12);
|
||||
val.Register();
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 470 B |
@@ -0,0 +1,52 @@
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace FabusMod.Items.Tools;
|
||||
|
||||
public class GoddessPick : ModItem
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Goddess' Pick");
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.damage = 22;
|
||||
Item.width = 50;
|
||||
Item.height = 50;
|
||||
Item.useTime = 10;
|
||||
Item.useAnimation = 10;
|
||||
Item.pick = 210;
|
||||
Item.tileBoost = 3;
|
||||
Item.useStyle = ItemUseStyleID.Swing;
|
||||
Item.knockBack = 6f;
|
||||
Item.value = Item.sellPrice(0, 6, 0, 0);
|
||||
Item.rare = ItemRarityID.Yellow;
|
||||
Item.UseSound = SoundID.Item1;
|
||||
Item.autoReuse = true;
|
||||
}
|
||||
|
||||
public override void MeleeEffects(Player player, Rectangle hitbox)
|
||||
{
|
||||
if (Main.rand.NextBool(3))
|
||||
{
|
||||
int num1 = Dust.NewDust(new Vector2(hitbox.X, hitbox.Y), hitbox.Width, hitbox.Height, ModContent.DustType<Dusts.MeatDust>());
|
||||
Main.dust[num1].scale = 1f;
|
||||
Main.dust[num1].velocity.Y = 0f;
|
||||
Main.dust[num1].velocity.X = 0.5f;
|
||||
Main.dust[num1].noGravity = true;
|
||||
}
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
Recipe val = CreateRecipe();
|
||||
val.AddIngredient(ItemID.Picksaw, 1);
|
||||
val.AddIngredient(ModContent.ItemType<Items.CraftingIngredients.GoddessGold>(), 12);
|
||||
val.AddTile(TileID.AdamantiteForge);
|
||||
val.Register();
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 698 B |
@@ -0,0 +1,59 @@
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace FabusMod.Items.Tools;
|
||||
|
||||
public class GoldenDiggingClaw : ModItem
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Golden Digging Claw");
|
||||
Tooltip.SetDefault("[c/FF3C2B:Mining speed too high may result in no funcionality]");
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.damage = 60;
|
||||
Item.width = 38;
|
||||
Item.height = 38;
|
||||
Item.useTime = 3;
|
||||
Item.useAnimation = 9;
|
||||
Item.pick = 210;
|
||||
Item.axe = 28;
|
||||
Item.tileBoost = 6;
|
||||
Item.useStyle = ItemUseStyleID.Swing;
|
||||
Item.knockBack = 6f;
|
||||
Item.value = Item.sellPrice(0, 18, 0, 0);
|
||||
Item.rare = ItemRarityID.Red;
|
||||
Item.UseSound = SoundID.Item1;
|
||||
Item.autoReuse = true;
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
Recipe val = CreateRecipe();
|
||||
val.AddIngredient(ItemID.ShroomiteDiggingClaw);
|
||||
val.AddIngredient(ModContent.ItemType<Items.CraftingIngredients.GoddessGold>(), 18);
|
||||
val.AddIngredient(ItemID.LunarBar, 22);
|
||||
val.AddIngredient(ItemID.FragmentSolar, 8);
|
||||
val.AddIngredient(ItemID.FragmentNebula, 8);
|
||||
val.AddIngredient(ItemID.FragmentStardust, 8);
|
||||
val.AddIngredient(ItemID.FragmentVortex, 8);
|
||||
val.AddTile(TileID.LunarCraftingStation);
|
||||
val.Register();
|
||||
}
|
||||
|
||||
public override void MeleeEffects(Player player, Rectangle hitbox)
|
||||
{
|
||||
if (Main.rand.NextBool(3))
|
||||
{
|
||||
int num1 = Dust.NewDust(new Vector2(hitbox.X, hitbox.Y), hitbox.Width, hitbox.Height, ModContent.DustType<Dusts.MeatDust>());
|
||||
Main.dust[num1].scale = 1f;
|
||||
Main.dust[num1].velocity.Y = 0f;
|
||||
Main.dust[num1].velocity.X = 0.5f;
|
||||
Main.dust[num1].noGravity = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 582 B |
@@ -0,0 +1,53 @@
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace FabusMod.Items.Tools;
|
||||
|
||||
public class GoldenHamaxe : ModItem
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Golden Hamaxe");
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.damage = 68;
|
||||
Item.width = 70;
|
||||
Item.height = 60;
|
||||
Item.useTime = 10;
|
||||
Item.useAnimation = 10;
|
||||
Item.axe = 23;
|
||||
Item.hammer = 95;
|
||||
Item.tileBoost = 2;
|
||||
Item.useStyle = ItemUseStyleID.Swing;
|
||||
Item.knockBack = 6f;
|
||||
Item.value = Item.sellPrice(0, 6, 0, 0);
|
||||
Item.rare = ItemRarityID.Yellow;
|
||||
Item.UseSound = SoundID.Item1;
|
||||
Item.autoReuse = true;
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
Recipe val = CreateRecipe();
|
||||
val.AddIngredient(ItemID.Picksaw, 1);
|
||||
val.AddIngredient(ModContent.ItemType<Items.CraftingIngredients.GoddessGold>(), 12);
|
||||
val.AddTile(TileID.AdamantiteForge);
|
||||
val.Register();
|
||||
}
|
||||
|
||||
public override void MeleeEffects(Player player, Rectangle hitbox)
|
||||
{
|
||||
if (Main.rand.NextBool(3))
|
||||
{
|
||||
int num1 = Dust.NewDust(new Vector2(hitbox.X, hitbox.Y), hitbox.Width, hitbox.Height, ModContent.DustType<Dusts.MeatDust>());
|
||||
Main.dust[num1].scale = 1f;
|
||||
Main.dust[num1].velocity.Y = 0f;
|
||||
Main.dust[num1].velocity.X = 0.5f;
|
||||
Main.dust[num1].noGravity = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 862 B |
@@ -0,0 +1,26 @@
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
using Terraria.ID;
|
||||
|
||||
namespace FabusMod.Items.Vanity.FoxEars;
|
||||
|
||||
[AutoloadEquip(EquipType.Head)]
|
||||
public class BlueFoxEars : ModItem
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Blue Fox Ears");
|
||||
Tooltip.SetDefault("Now in blue!");
|
||||
|
||||
ArmorIDs.Head.Sets.DrawFullHair[Item.headSlot] = true;
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.width = 26;
|
||||
Item.height = 22;
|
||||
Item.rare = ItemRarityID.Blue;
|
||||
Item.vanity = true;
|
||||
Item.value = Item.sellPrice(0, 0, 12, 0);
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 416 B |
|
After Width: | Height: | Size: 1.3 KiB |
@@ -0,0 +1,34 @@
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
using Terraria.ID;
|
||||
|
||||
namespace FabusMod.Items.Vanity.FoxEars;
|
||||
|
||||
[AutoloadEquip(EquipType.Head)]
|
||||
public class FoxEars : ModItem
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Fox Ears");
|
||||
Tooltip.SetDefault("[c/B6FF00:Dyeable]");
|
||||
|
||||
ArmorIDs.Head.Sets.DrawFullHair[Item.headSlot] = true;
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.width = 26;
|
||||
Item.height = 22;
|
||||
Item.rare = ItemRarityID.Blue;
|
||||
Item.vanity = true;
|
||||
Item.value = Item.sellPrice(0, 0, 10, 0);
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
Recipe val = CreateRecipe();
|
||||
val.AddIngredient(ItemID.Leather, 2);
|
||||
val.AddTile(TileID.WorkBenches);
|
||||
val.Register();
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 416 B |
|
After Width: | Height: | Size: 1.3 KiB |
@@ -0,0 +1,26 @@
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
using Terraria.ID;
|
||||
|
||||
namespace FabusMod.Items.Vanity.FoxEars;
|
||||
|
||||
[AutoloadEquip(EquipType.Head)]
|
||||
public class PinkFoxEars : ModItem
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Pink Fox Ears");
|
||||
Tooltip.SetDefault("Now in pink!");
|
||||
|
||||
ArmorIDs.Head.Sets.DrawFullHair[Item.headSlot] = true;
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.width = 26;
|
||||
Item.height = 22;
|
||||
Item.rare = ItemRarityID.Blue;
|
||||
Item.vanity = true;
|
||||
Item.value = Item.sellPrice(0, 0, 12, 0);
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 426 B |
|
After Width: | Height: | Size: 1.3 KiB |
@@ -0,0 +1,24 @@
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
using Terraria.ID;
|
||||
|
||||
namespace FabusMod.Items.Vanity.Leafy;
|
||||
|
||||
[AutoloadEquip(EquipType.Body)]
|
||||
public class LeafyChest : ModItem
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Leafia Chest");
|
||||
Tooltip.SetDefault("~~ Donator Item ~~");
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.width = 30;
|
||||
Item.height = 22;
|
||||
Item.rare = ItemRarityID.Blue;
|
||||
Item.vanity = true;
|
||||
Item.value = Item.sellPrice(0, 0, 20, 0);
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 439 B |
|
After Width: | Height: | Size: 2.0 KiB |
|
After Width: | Height: | Size: 2.7 KiB |
|
After Width: | Height: | Size: 2.7 KiB |
|
After Width: | Height: | Size: 809 B |
@@ -0,0 +1,24 @@
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
using Terraria.ID;
|
||||
|
||||
namespace FabusMod.Items.Vanity.Leafy;
|
||||
|
||||
[AutoloadEquip(EquipType.Head)]
|
||||
public class LeafyHat : ModItem
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Leafia Hat");
|
||||
Tooltip.SetDefault("~~ Donator Item ~~");
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.width = 22;
|
||||
Item.height = 10;
|
||||
Item.rare = ItemRarityID.Blue;
|
||||
Item.vanity = true;
|
||||
Item.value = Item.sellPrice(0, 0, 20, 0);
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 456 B |
|
After Width: | Height: | Size: 2.2 KiB |