Commit of decompiled and "updated" code.
@@ -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 |