Commit of decompiled and "updated" code.
@@ -0,0 +1,47 @@
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace FabusMod.Items.Weapons.Magic.Coalescence;
|
||||
|
||||
public class Coalescence : ModItem
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Coalescence");
|
||||
Tooltip.SetDefault("Enemies are invulnerable for 8 frames after getting hit \nBeam your foes out of existence with a powerful laser beam!");
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.damage = 6;
|
||||
Item.noMelee = true;
|
||||
Item.channel = true;
|
||||
Item.mana = 5;
|
||||
Item.expert = true;
|
||||
Item.width = 28;
|
||||
Item.height = 30;
|
||||
Item.useTime = 20;
|
||||
Item.UseSound = SoundID.Item13;
|
||||
Item.useStyle = ItemUseStyleID.Shoot;
|
||||
Item.shootSpeed = 14f;
|
||||
Item.useAnimation = 20;
|
||||
Item.shoot = ModContent.ProjectileType<Projectiles.Lasers.CoalescenceBeam>();
|
||||
Item.value = Item.sellPrice(0, 8, 50, 0);
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
Recipe val = CreateRecipe();
|
||||
val.AddIngredient(ModContent.ItemType<Items.CraftingIngredients.OminousBook>());
|
||||
val.AddIngredient(ItemID.Diamond, 5);
|
||||
val.AddIngredient(ItemID.Emerald, 5);
|
||||
val.AddIngredient(ItemID.Sapphire, 5);
|
||||
val.AddIngredient(ItemID.Ruby, 5);
|
||||
val.AddIngredient(ItemID.Topaz, 5);
|
||||
val.AddIngredient(ItemID.Amethyst, 5);
|
||||
val.AddRecipeGroup("FabusMod:DemoniteBar", 10);
|
||||
val.AddTile(TileID.Books);
|
||||
val.Register();
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 461 B |
@@ -0,0 +1,41 @@
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace FabusMod.Items.Weapons.Magic.Coalescence;
|
||||
|
||||
public class DelightfulDevastation : ModItem
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Delightful Devastation");
|
||||
Tooltip.SetDefault("Enemies are invulnerable for 3 frames after getting hit \nVaporize your foes out of existence with the power of rainbows! \nInflicts the [c/AB2C2C:R][c/F3821B:a][c/E6AF31:i][c/63B465:n][c/82E8E8:b][c/9EF3EF:o][c/2BA0B5:w][c/734679:'s ][c/AB2C2C:W][c/F3821B:r][c/E6AF31:a][c/63B465:t][c/82E8E8:h] debuff for 2 seconds, and the [c/DAD45E:Midas] debuff for 3 seconds on hit\n[c/AB2C2C:R][c/F3821B:a][c/E6AF31:i][c/63B465:n][c/82E8E8:b][c/9EF3EF:o][c/2BA0B5:w][c/734679:'s ][c/AB2C2C:W][c/F3821B:r][c/E6AF31:a][c/63B465:t][c/82E8E8:h] causes enemies to lose life rapidly \n[c/DAD45E:Midas] causes enemies to drop more money on death ");
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.damage = 160;
|
||||
Item.noMelee = true;
|
||||
Item.channel = true;
|
||||
Item.mana = 15;
|
||||
Item.expert = true;
|
||||
Item.width = 30;
|
||||
Item.height = 32;
|
||||
Item.useTime = 20;
|
||||
Item.UseSound = SoundID.Item13;
|
||||
Item.useStyle = ItemUseStyleID.Shoot;
|
||||
Item.shootSpeed = 14f;
|
||||
Item.useAnimation = 10;
|
||||
Item.shoot = ModContent.ProjectileType<Projectiles.Lasers.RainbowBeam>();
|
||||
Item.value = Item.sellPrice(2, 40, 0, 0);
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
Recipe val = CreateRecipe();
|
||||
val.AddIngredient(ModContent.ItemType<GoldenVengeance>());
|
||||
val.AddIngredient(ModContent.ItemType<Bars.RainbowChunk>(), 10);
|
||||
val.AddTile(ModContent.TileType<global::FabusMod.Tiles.RainbowStation>());
|
||||
val.Register();
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 531 B |
@@ -0,0 +1,41 @@
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace FabusMod.Items.Weapons.Magic.Coalescence;
|
||||
|
||||
public class GoldenVengeance : ModItem
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Golden Vengeance");
|
||||
Tooltip.SetDefault("Enemies are invulnerable for 4 frames after getting hit \nPurify your foes out of existence with a powerful laser beam! \nInflicts the [c/FFFB62:Holy Smite] debuff for 4 seconds, and the [c/DAD45E:Midas] debuff for 3 seconds on hit\n[c/FFFB62:Holy Smite] causes enemies to lose life quickly \n[c/DAD45E:Midas] causes enemies to drop more money on death");
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.damage = 48;
|
||||
Item.noMelee = true;
|
||||
Item.channel = true;
|
||||
Item.mana = 10;
|
||||
Item.expert = true;
|
||||
Item.width = 28;
|
||||
Item.height = 30;
|
||||
Item.useTime = 20;
|
||||
Item.UseSound = SoundID.Item13;
|
||||
Item.useStyle = ItemUseStyleID.Shoot;
|
||||
Item.shootSpeed = 14f;
|
||||
Item.useAnimation = 20;
|
||||
Item.shoot = ModContent.ProjectileType<Projectiles.Lasers.GoldenBeam>();
|
||||
Item.value = Item.sellPrice(0, 27, 50, 0);
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
Recipe val = CreateRecipe();
|
||||
val.AddIngredient(ModContent.ItemType<HeavensVengeance>());
|
||||
val.AddIngredient(ModContent.ItemType<Items.CraftingIngredients.GoddessGold>(), 12);
|
||||
val.AddTile(TileID.MythrilAnvil);
|
||||
val.Register();
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 498 B |
@@ -0,0 +1,41 @@
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace FabusMod.Items.Weapons.Magic.Coalescence;
|
||||
|
||||
public class HeavensVengeance : ModItem
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Heaven's Vengeance");
|
||||
Tooltip.SetDefault("Enemies are invulnerable for 4 frames after getting hit \nPurify your foes out of existence with a powerful laser beam! \nInflicts the [c/FFFB62:Holy Smite] debuff for 3 seconds on hit \n[c/FFFB62:Holy Smite] causes enemies to lose life quickly");
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.damage = 28;
|
||||
Item.noMelee = true;
|
||||
Item.channel = true;
|
||||
Item.mana = 8;
|
||||
Item.expert = true;
|
||||
Item.width = 28;
|
||||
Item.height = 30;
|
||||
Item.useTime = 20;
|
||||
Item.UseSound = SoundID.Item13;
|
||||
Item.useStyle = ItemUseStyleID.Shoot;
|
||||
Item.shootSpeed = 14f;
|
||||
Item.useAnimation = 20;
|
||||
Item.shoot = ModContent.ProjectileType<Projectiles.Lasers.VengeanceBeam>();
|
||||
Item.value = Item.sellPrice(0, 16, 50, 0);
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
Recipe val = CreateRecipe();
|
||||
val.AddIngredient(ModContent.ItemType<HellfireBeam>(), 1);
|
||||
val.AddIngredient(ItemID.HallowedBar, 14);
|
||||
val.AddTile(TileID.MythrilAnvil);
|
||||
val.Register();
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 508 B |
@@ -0,0 +1,41 @@
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace FabusMod.Items.Weapons.Magic.Coalescence;
|
||||
|
||||
public class HellfireBeam : ModItem
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Hellfire Beam");
|
||||
Tooltip.SetDefault("Enemies are invulnerable for 5 frames after getting hit \nBurn your foes out of existence with a powerful laser beam! \nInflicts the [c/DA0205:On Fire!] debuff for 2 seconds on hit");
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.damage = 17;
|
||||
Item.noMelee = true;
|
||||
Item.channel = true;
|
||||
Item.mana = 7;
|
||||
Item.expert = true;
|
||||
Item.width = 28;
|
||||
Item.height = 30;
|
||||
Item.useTime = 20;
|
||||
Item.UseSound = SoundID.Item13;
|
||||
Item.useStyle = ItemUseStyleID.Shoot;
|
||||
Item.shootSpeed = 14f;
|
||||
Item.useAnimation = 20;
|
||||
Item.shoot = ModContent.ProjectileType<Projectiles.Lasers.HellfireBeamProj>();
|
||||
Item.value = Item.sellPrice(0, 12, 50, 0);
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
Recipe val = CreateRecipe();
|
||||
val.AddIngredient(ModContent.ItemType<Coalescence>());
|
||||
val.AddIngredient(ItemID.HellstoneBar, 16);
|
||||
val.AddTile(TileID.Hellforge);
|
||||
val.Register();
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 449 B |
@@ -0,0 +1,48 @@
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace FabusMod.Items.Weapons.Magic.FusionNeedlers;
|
||||
|
||||
public class FusedWish : ModItem
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Fused Wish");
|
||||
Tooltip.SetDefault("[c/B6FF00:Autoshoots] \nShoots homing rainbow needles\n[c/FF0000:Watch your mana!]");
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.damage = 160;
|
||||
Item.mana = 3;
|
||||
Item.width = 80;
|
||||
Item.height = 54;
|
||||
Item.useTime = 3;
|
||||
Item.useAnimation = 4;
|
||||
Item.useStyle = ItemUseStyleID.Shoot;
|
||||
Item.noMelee = true;
|
||||
Item.knockBack = 2f;
|
||||
Item.value = Item.sellPrice(2, 60, 0, 0);
|
||||
Item.UseSound = SoundID.Item39;
|
||||
Item.autoReuse = true;
|
||||
Item.shoot = ModContent.ProjectileType<Projectiles.WishNeedle>();
|
||||
Item.shootSpeed = 16f;
|
||||
Item.expert = true;
|
||||
}
|
||||
|
||||
public override Vector2? HoldoutOffset()
|
||||
{
|
||||
return new Vector2(-2f, 2f);
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
Recipe val = CreateRecipe();
|
||||
val.AddIngredient(ModContent.ItemType<FusedXmas>());
|
||||
val.AddIngredient(ModContent.ItemType<Bars.RainbowChunk>(), 12);
|
||||
val.AddTile(ModContent.TileType<global::FabusMod.Tiles.RainbowStation>());
|
||||
val.Register();
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 1.8 KiB |
@@ -0,0 +1,49 @@
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace FabusMod.Items.Weapons.Magic.FusionNeedlers;
|
||||
|
||||
public class FusedXmas : ModItem
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Fused Xmas");
|
||||
Tooltip.SetDefault("[c/B6FF00:Autoshoots]\n[c/FF0000:Watch your mana!]");
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.damage = 140;
|
||||
Item.mana = 3;
|
||||
Item.width = 80;
|
||||
Item.height = 52;
|
||||
Item.useTime = 4;
|
||||
Item.useAnimation = 4;
|
||||
Item.useStyle = ItemUseStyleID.Shoot;
|
||||
Item.noMelee = true;
|
||||
Item.knockBack = 2f;
|
||||
Item.value = Item.sellPrice(0, 8, 40, 0);
|
||||
Item.rare = ItemRarityID.Red;
|
||||
Item.UseSound = SoundID.Item39;
|
||||
Item.autoReuse = true;
|
||||
Item.shoot = ProjectileID.PineNeedleFriendly;
|
||||
Item.shootSpeed = 18f;
|
||||
}
|
||||
|
||||
public override Vector2? HoldoutOffset()
|
||||
{
|
||||
//IL_000a: Unknown result type (might be due to invalid IL or missing references)
|
||||
return new Vector2(-2f, 2f);
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
Recipe val = CreateRecipe();
|
||||
val.AddIngredient(ModContent.ItemType<FusionNeedler>());
|
||||
val.AddIngredient(ItemID.FragmentVortex, 12);
|
||||
val.AddTile(TileID.LunarCraftingStation);
|
||||
val.Register();
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 1.6 KiB |
@@ -0,0 +1,48 @@
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace FabusMod.Items.Weapons.Magic.FusionNeedlers;
|
||||
|
||||
public class FusionNeedler : ModItem
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Fusion Needler");
|
||||
Tooltip.SetDefault("[c/B6FF00:Autoshoots]\n[c/FF0000:Watch your mana!]");
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.damage = 120;
|
||||
Item.mana = 3;
|
||||
Item.width = 76;
|
||||
Item.height = 44;
|
||||
Item.useTime = 6;
|
||||
Item.useAnimation = 6;
|
||||
Item.useStyle = ItemUseStyleID.Shoot;
|
||||
Item.noMelee = true;
|
||||
Item.knockBack = 2f;
|
||||
Item.value = Item.sellPrice(0, 6, 0, 0);
|
||||
Item.rare = ItemRarityID.Yellow;
|
||||
Item.UseSound = SoundID.Item39;
|
||||
Item.autoReuse = true;
|
||||
Item.shoot = ProjectileID.PineNeedleFriendly;
|
||||
Item.shootSpeed = 26f;
|
||||
}
|
||||
|
||||
public override Vector2? HoldoutOffset()
|
||||
{
|
||||
return new Vector2(-2f, 2f);
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
Recipe val = CreateRecipe();
|
||||
val.AddIngredient(ModContent.ItemType<Ranged.FusionDrivers.FusionDriver>());
|
||||
val.AddIngredient(ItemID.Razorpine);
|
||||
val.AddTile(TileID.AdamantiteForge);
|
||||
val.Register();
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 1.3 KiB |
@@ -0,0 +1,93 @@
|
||||
using FabusMod.Projectiles.IllusoryMirror;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace FabusMod.Items.Weapons.Magic;
|
||||
|
||||
public class IllusoryMirror : ModItem
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Illusory Mirror");
|
||||
Tooltip.SetDefault("[c/B6FF00:Autoshoots]\nShoots 5 instant beams in quick succession\nUsing <right> uses 50 Mana to summon a [c/E6A6CF:Blossom] at the player's position for 20 seconds:\n - Being around the [c/E6A6CF:Blossom] buffs HP regeneration, increases attack speed, and increases magic damage by 15%\n - [c/E6A6CF:Blossom] has a cooldown of [c/CA4646:50 seconds] once it disappears\nBest used on 'High' video quality!");
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.CloneDefaults(ItemID.ShadowbeamStaff);
|
||||
Item.damage = 175;
|
||||
Item.noMelee = true;
|
||||
Item.mana = 7;
|
||||
Item.width = 29;
|
||||
Item.height = 21;
|
||||
Item.useTime = 5;
|
||||
Item.useAnimation = 25;
|
||||
Item.useStyle = ItemUseStyleID.Shoot;
|
||||
Item.noMelee = true;
|
||||
Item.value = Item.sellPrice(0, 11, 60, 0);
|
||||
Item.autoReuse = true;
|
||||
Item.shootSpeed = 7f;
|
||||
Item.expert = true;
|
||||
Item.reuseDelay = 20;
|
||||
Item.UseSound = SoundID.Item72;
|
||||
Item.shoot = ModContent.ProjectileType<IllusoryMirrorProj>();
|
||||
}
|
||||
|
||||
public override Vector2? HoldoutOffset()
|
||||
{
|
||||
return new Vector2(4f, 0f);
|
||||
}
|
||||
|
||||
public override bool AltFunctionUse(Player player)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
public override bool CanUseItem(Player player)
|
||||
{
|
||||
if (player.altFunctionUse == 2)
|
||||
{
|
||||
if (!player.HasBuff(ModContent.BuffType<Buffs.IllusoryMirror.BlossomInactive>()) && !player.HasBuff(ModContent.BuffType<Buffs.IllusoryMirror.BlossomActive>()))
|
||||
{
|
||||
Item.useTime = 25;
|
||||
Item.useAnimation = 25;
|
||||
Item.shootSpeed = 0f;
|
||||
Item.mana = 50;
|
||||
player.AddBuff(ModContent.BuffType<Buffs.IllusoryMirror.BlossomActive>(), 1200, true);
|
||||
Item.shoot = ModContent.ProjectileType<IllusoryMirrorRMB>();
|
||||
Item.UseSound = SoundID.Item76;
|
||||
}
|
||||
}
|
||||
else if (player.HasBuff(ModContent.BuffType<Buffs.IllusoryMirror.StrongerTogether>()))
|
||||
{
|
||||
Item.useTime = 4;
|
||||
Item.useAnimation = 20;
|
||||
Item.shootSpeed = 7f;
|
||||
Item.mana = 7;
|
||||
Item.shoot = ModContent.ProjectileType<IllusoryMirrorProj>();
|
||||
Item.UseSound = SoundID.Item72;
|
||||
}
|
||||
else
|
||||
{
|
||||
Item.useAnimation = 25;
|
||||
Item.useTime = 5;
|
||||
Item.shootSpeed = 7f;
|
||||
Item.mana = 7;
|
||||
Item.shoot = ModContent.ProjectileType<IllusoryMirrorProj>();
|
||||
Item.UseSound = SoundID.Item72;
|
||||
}
|
||||
return this.CanUseItem(player);
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
Recipe val = CreateRecipe();
|
||||
val.AddIngredient(ItemID.LifeFruit, 5);
|
||||
val.AddIngredient(ItemID.LifeCrystal, 5);
|
||||
val.AddIngredient(ItemID.FragmentNebula, 14);
|
||||
val.AddTile(TileID.LunarCraftingStation);
|
||||
val.Register();
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 840 B |
@@ -0,0 +1,95 @@
|
||||
using FabusMod.Projectiles.IllusoryMirror;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace FabusMod.Items.Weapons.Magic;
|
||||
|
||||
public class SpectralIllusion : ModItem
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Spectral Illusion");
|
||||
Tooltip.SetDefault("[c/B6FF00:Autoshoots]\nShoots 6 instant beams in quick succession\nUsing <right> uses 50 Mana to summon a [c/82E8E8:Spectral Blossom] at the player's position for 20 seconds:\n - Being around the [c/82E8E8:Spectral Blossom] buffs HP regeneration, increases attack speed, and increases magic damage by 18%\n - Being around the [c/82E8E8:Spectral Blossom] also increases invincibility time after being hit, and has a cooldown of [c/BF5E3B:50 seconds] once it disappears\nBest used on 'High' video quality!");
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.CloneDefaults(ItemID.ShadowbeamStaff);
|
||||
Item.damage = 325;
|
||||
Item.noMelee = true;
|
||||
Item.mana = 6;
|
||||
Item.width = 33;
|
||||
Item.height = 25;
|
||||
Item.useTime = 4;
|
||||
Item.useAnimation = 24;
|
||||
Item.useStyle = ItemUseStyleID.Shoot;
|
||||
Item.noMelee = true;
|
||||
Item.value = Item.sellPrice(2, 50, 0, 0);
|
||||
Item.autoReuse = true;
|
||||
Item.shootSpeed = 7f;
|
||||
Item.expert = true;
|
||||
Item.reuseDelay = 20;
|
||||
Item.UseSound = SoundID.Item72;
|
||||
Item.shoot = ModContent.ProjectileType<SpectralIllusionProj>();
|
||||
}
|
||||
|
||||
public override Vector2? HoldoutOffset()
|
||||
{
|
||||
return new Vector2(4f, 0f);
|
||||
}
|
||||
|
||||
public override bool AltFunctionUse(Player player)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
public override bool CanUseItem(Player player)
|
||||
{
|
||||
if (player.altFunctionUse == 2)
|
||||
{
|
||||
if (!player.HasBuff(ModContent.BuffType<Buffs.IllusoryMirror.SpectralBlossomInactive>()) && !player.HasBuff(ModContent.BuffType<Buffs.IllusoryMirror.SpectralBlossomActive>()))
|
||||
{
|
||||
Item.useTime = 25;
|
||||
Item.useAnimation = 25;
|
||||
Item.shootSpeed = 0f;
|
||||
Item.mana = 50;
|
||||
player.AddBuff(ModContent.BuffType<Buffs.IllusoryMirror.SpectralBlossomActive>(), 1200, true);
|
||||
Item.shoot = ModContent.ProjectileType<SpectralIllusionRMB>();
|
||||
Item.UseSound = SoundID.Item76;
|
||||
Item.reuseDelay = 20;
|
||||
}
|
||||
}
|
||||
else if (player.HasBuff(ModContent.BuffType<Buffs.IllusoryMirror.SpectralBloom>()))
|
||||
{
|
||||
Item.useTime = 3;
|
||||
Item.useAnimation = 16;
|
||||
Item.shootSpeed = 7f;
|
||||
Item.mana = 6;
|
||||
Item.shoot = ModContent.ProjectileType<SpectralIllusionProj>();
|
||||
Item.UseSound = SoundID.Item72;
|
||||
Item.reuseDelay = 18;
|
||||
}
|
||||
else
|
||||
{
|
||||
Item.useAnimation = 24;
|
||||
Item.useTime = 4;
|
||||
Item.shootSpeed = 7f;
|
||||
Item.mana = 6;
|
||||
Item.shoot = ModContent.ProjectileType<SpectralIllusionProj>();
|
||||
Item.UseSound = SoundID.Item72;
|
||||
Item.reuseDelay = 20;
|
||||
}
|
||||
return this.CanUseItem(player);
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
Recipe val = CreateRecipe();
|
||||
val.AddIngredient(ModContent.ItemType<IllusoryMirror>());
|
||||
val.AddIngredient(ModContent.ItemType<Bars.RainbowChunk>(), 14);
|
||||
val.AddTile(ModContent.TileType<global::FabusMod.Tiles.RainbowStation>());
|
||||
val.Register();
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 1.3 KiB |
@@ -0,0 +1,59 @@
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
using Terraria.DataStructures;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace FabusMod.Items.Weapons.Magic.Staffs;
|
||||
|
||||
public class GoldenStaff : ModItem
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Golden Staff");
|
||||
Tooltip.SetDefault("[c/B6FF00:Autoshoots] \nShoots four oval-shaped magic projectiles twice in quick succession \nHas a high critical hit chance");
|
||||
Item.staff[Item.type] = true;
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.damage = 46;
|
||||
Item.noMelee = true;
|
||||
Item.mana = 6;
|
||||
Item.crit = 52;
|
||||
Item.width = 58;
|
||||
Item.height = 58;
|
||||
Item.useTime = 8;
|
||||
Item.useAnimation = 16;
|
||||
Item.reuseDelay = 12;
|
||||
Item.useStyle = ItemUseStyleID.Shoot;
|
||||
Item.noMelee = true;
|
||||
Item.knockBack = 5f;
|
||||
Item.value = Item.sellPrice(0, 25, 30, 0);
|
||||
Item.expert = true;
|
||||
Item.UseSound = SoundID.Item20;
|
||||
Item.autoReuse = true;
|
||||
Item.shoot = ModContent.ProjectileType<Projectiles.SorcerousStaff.GoldenStaffProj>();
|
||||
Item.shootSpeed = 40f;
|
||||
}
|
||||
|
||||
public override bool Shoot(Player player, EntitySource_ItemUse_WithAmmo source, Vector2 position, Vector2 velocity, int type, int damage, float knockback)
|
||||
{
|
||||
int numberProjectiles = 4;
|
||||
for (int i = 0; i < numberProjectiles; i++)
|
||||
{
|
||||
Vector2 perturbedSpeed = Utils.RotatedByRandom(new Vector2(velocity.X, velocity.Y), (double)MathHelper.ToRadians(10f));
|
||||
Projectile.NewProjectile(source, position, perturbedSpeed, type, damage, knockback);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
Recipe val = CreateRecipe();
|
||||
val.AddIngredient(ModContent.ItemType<NatureStaff>());
|
||||
val.AddIngredient(ModContent.ItemType<Items.CraftingIngredients.GoddessGold>(), 6);
|
||||
val.AddTile(TileID.MythrilAnvil);
|
||||
val.Register();
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 934 B |
@@ -0,0 +1,60 @@
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
using Terraria.DataStructures;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace FabusMod.Items.Weapons.Magic.Staffs;
|
||||
|
||||
public class NatureStaff : ModItem
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Nature Staff");
|
||||
Tooltip.SetDefault("[c/B6FF00:Autoshoots] \nShoots three oval-shaped magic projectiles twice in quick succession \nHas a 25% chance of inflicting the [c/0E3517:Poisoned] debuff for 3 seconds \nHas a high critical hit chance");
|
||||
Item.staff[Item.type] = true;
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.damage = 36;
|
||||
Item.noMelee = true;
|
||||
Item.mana = 6;
|
||||
Item.crit = 42;
|
||||
Item.width = 58;
|
||||
Item.height = 58;
|
||||
Item.useTime = 9;
|
||||
Item.useAnimation = 18;
|
||||
Item.reuseDelay = 16;
|
||||
Item.useStyle = ItemUseStyleID.Shoot;
|
||||
Item.noMelee = true;
|
||||
Item.knockBack = 5f;
|
||||
Item.value = Item.sellPrice(0, 8, 80, 0);
|
||||
Item.expert = true;
|
||||
Item.UseSound = SoundID.Item20;
|
||||
Item.autoReuse = true;
|
||||
Item.shoot = ModContent.ProjectileType<Projectiles.SorcerousStaff.NatureStaffProj>();
|
||||
Item.shootSpeed = 40f;
|
||||
}
|
||||
|
||||
public override bool Shoot(Player player, EntitySource_ItemUse_WithAmmo source, Vector2 position, Vector2 velocity, int type, int damage, float knockback)
|
||||
{
|
||||
int numberProjectiles = 3;
|
||||
for (int i = 0; i < numberProjectiles; i++)
|
||||
{
|
||||
Vector2 perturbedSpeed = Utils.RotatedByRandom(new Vector2(velocity.X, velocity.Y), (double)MathHelper.ToRadians(10f));
|
||||
Projectile.NewProjectile(source, position.X, position.Y, perturbedSpeed.X, perturbedSpeed.Y, type, damage, knockback, player.whoAmI, 0f, 0f);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
Recipe val = CreateRecipe();
|
||||
val.AddRecipeGroup("FabusMod:SorcerousHellstaff");
|
||||
val.AddIngredient(ItemID.HallowedBar, 6);
|
||||
val.AddIngredient(ModContent.ItemType<Items.CraftingIngredients.NatureToken>());
|
||||
val.AddTile(TileID.MythrilAnvil);
|
||||
val.Register();
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 926 B |
@@ -0,0 +1,44 @@
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace FabusMod.Items.Weapons.Magic.Staffs;
|
||||
|
||||
public class PiercingStaff : ModItem
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Piercing Staff");
|
||||
Tooltip.SetDefault("Fires gravity-affected, piercing iron stingers");
|
||||
Item.staff[Item.type] = true;
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.damage = 16;
|
||||
Item.noMelee = true;
|
||||
Item.mana = 3;
|
||||
Item.width = 40;
|
||||
Item.height = 40;
|
||||
Item.useTime = 25;
|
||||
Item.useAnimation = 25;
|
||||
Item.useStyle = ItemUseStyleID.Shoot;
|
||||
Item.noMelee = true;
|
||||
Item.knockBack = 2f;
|
||||
Item.value = Item.sellPrice(0, 0, 16, 0);
|
||||
Item.rare = ItemRarityID.White;
|
||||
Item.UseSound = SoundID.Item20;
|
||||
Item.autoReuse = true;
|
||||
Item.shoot = ModContent.ProjectileType<Projectiles.IronStinger>();
|
||||
Item.shootSpeed = 10f;
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
Recipe val = CreateRecipe();
|
||||
val.AddIngredient(ItemID.WandofSparking, 1);
|
||||
val.AddRecipeGroup("IronBar", 3);
|
||||
val.AddTile(TileID.Anvils);
|
||||
val.Register();
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 562 B |
@@ -0,0 +1,54 @@
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace FabusMod.Items.Weapons.Magic.Staffs;
|
||||
|
||||
public class SorcerousHellstaff : ModItem
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Sorcerer's Hellstaff");
|
||||
Tooltip.SetDefault("[c/B6FF00:Autoshoots, dyeable] \nShoots two oval-shaped magic projectiles in quick succession \nHas a 16% chance of inflicting the [c/DA0205:On Fire!] debuff for 3 seconds \nHas a high critical hit chance");
|
||||
Item.staff[Item.type] = true;
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.damage = 26;
|
||||
Item.noMelee = true;
|
||||
Item.mana = 6;
|
||||
Item.crit = 32;
|
||||
Item.width = 54;
|
||||
Item.height = 54;
|
||||
Item.useTime = 12;
|
||||
Item.useAnimation = 24;
|
||||
Item.reuseDelay = 12;
|
||||
Item.useStyle = ItemUseStyleID.Shoot;
|
||||
Item.noMelee = true;
|
||||
Item.knockBack = 5f;
|
||||
Item.value = Item.sellPrice(0, 4, 40, 0);
|
||||
Item.rare = ItemRarityID.Orange;
|
||||
Item.UseSound = SoundID.Item20;
|
||||
Item.autoReuse = true;
|
||||
Item.shoot = ModContent.ProjectileType<Projectiles.SorcerousStaff.SorcerousHellstaffProj>();
|
||||
Item.shootSpeed = 26f;
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
Recipe val = CreateRecipe();
|
||||
val.AddIngredient(ModContent.ItemType<SorcerousStaff>());
|
||||
val.AddIngredient(ItemID.HellstoneBar, 6);
|
||||
val.AddIngredient(ItemID.Obsidian, 4);
|
||||
val.AddTile(TileID.Anvils);
|
||||
val.Register();
|
||||
|
||||
Recipe val2 = CreateRecipe();
|
||||
val2.AddIngredient(ModContent.ItemType<SorcerousHellstaffWhite>());
|
||||
val2.AddIngredient(ItemID.BlueDye);
|
||||
val2.AddIngredient(ItemID.RedDye);
|
||||
val2.AddTile(TileID.DyeVat);
|
||||
val2.Register();
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 748 B |
@@ -0,0 +1,46 @@
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace FabusMod.Items.Weapons.Magic.Staffs;
|
||||
|
||||
public class SorcerousHellstaffWhite : ModItem
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Sorcerer's Hellstaff - White");
|
||||
Tooltip.SetDefault("[c/B6FF00:Autoshoots] \nShoots two oval-shaped magic projectiles in quick succession \nHas a 16% chance of inflicting the [c/DA0205:On Fire!] debuff for 3 seconds \nHas a high critical hit chance");
|
||||
Item.staff[Item.type] = true;
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.damage = 26;
|
||||
Item.noMelee = true;
|
||||
Item.mana = 6;
|
||||
Item.crit = 32;
|
||||
Item.width = 54;
|
||||
Item.height = 54;
|
||||
Item.useTime = 12;
|
||||
Item.useAnimation = 24;
|
||||
Item.reuseDelay = 12;
|
||||
Item.useStyle = ItemUseStyleID.Shoot;
|
||||
Item.noMelee = true;
|
||||
Item.knockBack = 5f;
|
||||
Item.value = Item.sellPrice(0, 4, 40, 0);
|
||||
Item.rare = ItemRarityID.Orange;
|
||||
Item.UseSound = SoundID.Item20;
|
||||
Item.autoReuse = true;
|
||||
Item.shoot = ModContent.ProjectileType<Projectiles.SorcerousStaff.SorcerousHellstaffProjWhite>();
|
||||
Item.shootSpeed = 26f;
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
Recipe val = CreateRecipe();
|
||||
val.AddIngredient(ModContent.ItemType<SorcerousHellstaff>());
|
||||
val.AddIngredient(ItemID.PinkandSilverDye, 1);
|
||||
val.AddTile(TileID.DyeVat);
|
||||
val.Register();
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 741 B |
@@ -0,0 +1,47 @@
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace FabusMod.Items.Weapons.Magic.Staffs;
|
||||
|
||||
public class SorcerousStaff : ModItem
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Sorcerer's Staff");
|
||||
Tooltip.SetDefault("[c/B6FF00:Autoshoots] \nShoots two oval-shaped magic projectiles in quick succession \nHas a high critical hit chance");
|
||||
Item.staff[Item.type] = true;
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.damage = 13;
|
||||
Item.noMelee = true;
|
||||
Item.mana = 6;
|
||||
Item.crit = 26;
|
||||
Item.width = 54;
|
||||
Item.height = 54;
|
||||
Item.useTime = 13;
|
||||
Item.useAnimation = 26;
|
||||
Item.reuseDelay = 12;
|
||||
Item.useStyle = ItemUseStyleID.Shoot;
|
||||
Item.noMelee = true;
|
||||
Item.knockBack = 5f;
|
||||
Item.value = Item.sellPrice(0, 3, 0, 0);
|
||||
Item.rare = ItemRarityID.Green;
|
||||
Item.UseSound = SoundID.Item20;
|
||||
Item.autoReuse = true;
|
||||
Item.shoot = ModContent.ProjectileType<Projectiles.SorcerousStaff.SorcerousStaffProj>();
|
||||
Item.shootSpeed = 26f;
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
Recipe val = CreateRecipe();
|
||||
val.AddRecipeGroup("FabusMod:GoldBar", 8);
|
||||
val.AddIngredient(ItemID.Sapphire, 6);
|
||||
val.AddIngredient(ItemID.Emerald, 4);
|
||||
val.AddTile(TileID.Anvils);
|
||||
val.Register();
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 629 B |
@@ -0,0 +1,57 @@
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
using Terraria.DataStructures;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace FabusMod.Items.Weapons.Magic.Staffs;
|
||||
|
||||
public class TheWhisperingIceDonator : ModItem
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("The Whispering Ice");
|
||||
Tooltip.SetDefault("[c/B6FF00:Autoshoots] \nShoots three icicles that inflict Frostburn for 3 seconds \n'Guard your darkest thoughts well, for they are the cracks through which the Nightmare crawls.' \n~~ Donator Item ~~");
|
||||
Item.staff[Item.type] = true;
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.damage = 70;
|
||||
Item.noMelee = true;
|
||||
Item.mana = 8;
|
||||
Item.width = 54;
|
||||
Item.height = 56;
|
||||
Item.useTime = 13;
|
||||
Item.useAnimation = 13;
|
||||
Item.useStyle = ItemUseStyleID.Shoot;
|
||||
Item.noMelee = true;
|
||||
Item.knockBack = 5f;
|
||||
Item.value = Item.sellPrice(0, 6, 50, 0);
|
||||
Item.rare = ItemRarityID.Pink;
|
||||
Item.UseSound = SoundID.Item28;
|
||||
Item.autoReuse = true;
|
||||
Item.shoot = ModContent.ProjectileType<Projectiles.TheWhisperingIcicle>();
|
||||
Item.shootSpeed = 16f;
|
||||
}
|
||||
|
||||
public override bool Shoot(Player player, EntitySource_ItemUse_WithAmmo source, Vector2 position, Vector2 velocity, int type, int damage, float knockback)
|
||||
{
|
||||
int numberProjectiles = 3;
|
||||
for (int i = 0; i < numberProjectiles; i++)
|
||||
{
|
||||
Vector2 perturbedSpeed = Utils.RotatedByRandom(new Vector2(velocity.X, velocity.Y), (double)MathHelper.ToRadians(5f));
|
||||
Projectile.NewProjectile(source, position.X, position.Y, perturbedSpeed.X, perturbedSpeed.Y, type, damage, knockback, player.whoAmI, 0f, 0f);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
Recipe val = CreateRecipe();
|
||||
val.AddIngredient(ItemID.FrostCore, 2);
|
||||
val.AddRecipeGroup("FabusMod:AdamantiteBar", 6);
|
||||
val.AddTile(TileID.MythrilAnvil);
|
||||
val.Register();
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 643 B |
@@ -0,0 +1,59 @@
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
using Terraria.DataStructures;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace FabusMod.Items.Weapons.Magic.Staffs;
|
||||
|
||||
public class Tranquility : ModItem
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Tranquility");
|
||||
Tooltip.SetDefault("[c/B6FF00:Autoshoots] \nShoots six oval-shaped rainbow projectiles three times in quick succession \nHas a high critical hit chance");
|
||||
Item.staff[Item.type] = true;
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.damage = 58;
|
||||
Item.noMelee = true;
|
||||
Item.mana = 7;
|
||||
Item.crit = 52;
|
||||
Item.width = 62;
|
||||
Item.height = 62;
|
||||
Item.useTime = 4;
|
||||
Item.useAnimation = 12;
|
||||
Item.reuseDelay = 8;
|
||||
Item.useStyle = ItemUseStyleID.Shoot;
|
||||
Item.noMelee = true;
|
||||
Item.knockBack = 5f;
|
||||
Item.value = Item.sellPrice(1, 50, 0, 0);
|
||||
Item.expert = true;
|
||||
Item.UseSound = SoundID.Item20;
|
||||
Item.autoReuse = true;
|
||||
Item.shoot = ModContent.ProjectileType<Projectiles.SorcerousStaff.TranquilityProj>();
|
||||
Item.shootSpeed = 40f;
|
||||
}
|
||||
|
||||
public override bool Shoot(Player player, EntitySource_ItemUse_WithAmmo source, Vector2 position, Vector2 velocity, int type, int damage, float knockback)
|
||||
{
|
||||
int numberProjectiles = 6;
|
||||
for (int i = 0; i < numberProjectiles; i++)
|
||||
{
|
||||
Vector2 perturbedSpeed = Utils.RotatedByRandom(new Vector2(velocity.X, velocity.Y), (double)MathHelper.ToRadians(10f));
|
||||
Projectile.NewProjectile(source, position.X, position.Y, perturbedSpeed.X, perturbedSpeed.Y, type, damage, knockback, player.whoAmI, 0f, 0f);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
Recipe val = CreateRecipe();
|
||||
val.AddIngredient(ModContent.ItemType<GoldenStaff>());
|
||||
val.AddIngredient(ModContent.ItemType<Bars.RainbowChunk>(), 6);
|
||||
val.AddTile(ModContent.TileType<global::FabusMod.Tiles.RainbowStation>());
|
||||
val.Register();
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 881 B |