Commit of decompiled and "updated" code.

This commit is contained in:
Big Duckie
2022-07-03 14:13:26 -06:00
parent 3d34e53842
commit e1441e74a5
731 changed files with 18423 additions and 0 deletions
@@ -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();
}
}
Binary file not shown.

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();
}
}
Binary file not shown.

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();
}
}
Binary file not shown.

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();
}
}
Binary file not shown.

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();
}
}
Binary file not shown.

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();
}
}
Binary file not shown.

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();
}
}
Binary file not shown.

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();
}
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

+93
View File
@@ -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();
}
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 840 B

+95
View File
@@ -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();
}
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

+59
View File
@@ -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();
}
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 934 B

+60
View File
@@ -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();
}
}
Binary file not shown.

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();
}
}
Binary file not shown.

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();
}
}
Binary file not shown.

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();
}
}
Binary file not shown.

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();
}
}
Binary file not shown.

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();
}
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 643 B

+59
View File
@@ -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();
}
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 881 B

@@ -0,0 +1,81 @@
using FabusMod.Projectiles.Shortsword;
using Microsoft.Xna.Framework;
using Terraria;
using Terraria.DataStructures;
using Terraria.ID;
using Terraria.ModLoader;
namespace FabusMod.Items.Weapons.Melee.Shortswords;
public class CarbonDagger : ModItem
{
public override void SetStaticDefaults()
{
DisplayName.SetDefault("Carbon Dagger");
Tooltip.SetDefault("[c/B6FF00:Autoswings, dyeable]\nThrows a medium-ranged Carbon Knife that deals more damage the closer you are to the target \nShortsword hits inflict [c/007700:Poison] debuff for 8 seconds\n[c/FF0000:Shortsword hits steal a small amount of life] \nShortsword hits grant the [c/FC3A3A:Rage] buff for 8 seconds");
}
public override void SetDefaults()
{
Item.damage = 62;
Item.width = 30;
Item.height = 30;
Item.useTime = 11;
Item.useAnimation = 11;
Item.useStyle = ItemUseStyleID.Thrust;
Item.knockBack = 6f;
Item.value = Item.sellPrice(0, 5, 22, 0);
Item.rare = ItemRarityID.LightRed;
Item.UseSound = SoundID.Item1;
Item.autoReuse = true;
Item.shoot = ModContent.ProjectileType<CarbonKnife>();
Item.shootSpeed = 10f;
}
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.RyuuDust2>());
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 OnHitNPC(Player player, NPC target, int damage, float knockback, bool crit)
{
int healingAmount = damage / 18;
player.statLife += healingAmount;
player.HealEffect(healingAmount, true);
target.AddBuff(20, 480, false);
player.AddBuff(115, 480, true);
}
public override bool Shoot(Player player, EntitySource_ItemUse_WithAmmo source, Vector2 position, Vector2 velocity, int type, int damage, float knockback)
{
Vector2 muzzleOffset = Vector2.Normalize(new Vector2(velocity.X, velocity.Y)) * 45f;
if (Collision.CanHit(position, 0, 0, position + muzzleOffset, 0, 0))
{
position += muzzleOffset;
}
return true;
}
public override void AddRecipes()
{
Recipe val = CreateRecipe();
val.AddIngredient(ModContent.ItemType<Wakizashi>());
val.AddRecipeGroup("FabusMod:OrichalcumBar", 6);
val.AddIngredient(ItemID.Sapphire, 2);
val.AddTile(TileID.MythrilAnvil);
val.Register();
Recipe val2 = CreateRecipe();
val2.AddIngredient(ModContent.ItemType<CarbonDaggerNihon>());
val2.AddIngredient(ItemID.BlueDye, 1);
val2.AddTile(TileID.DyeVat);
val2.Register();
}
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 374 B

@@ -0,0 +1,73 @@
using FabusMod.Projectiles.Shortsword;
using Microsoft.Xna.Framework;
using Terraria;
using Terraria.DataStructures;
using Terraria.ID;
using Terraria.ModLoader;
namespace FabusMod.Items.Weapons.Melee.Shortswords;
public class CarbonDaggerNihon : ModItem
{
public override void SetStaticDefaults()
{
DisplayName.SetDefault("Carbon Dagger - Nihon");
Tooltip.SetDefault("[c/B6FF00:Autoswings]\nThrows a medium-ranged Carbon Knife that deals more damage the closer you are to the target \nShortsword hits inflict [c/007700:Poison] debuff for 8 seconds\n[c/FF0000:Shortsword hits steal a small amount of life] \nShortsword hits grant the [c/FC3A3A:Rage] buff for 8 seconds");
}
public override void SetDefaults()
{
Item.damage = 62;
Item.width = 30;
Item.height = 30;
Item.useTime = 11;
Item.useAnimation = 11;
Item.useStyle = ItemUseStyleID.Thrust;
Item.knockBack = 6f;
Item.value = Item.sellPrice(0, 5, 22, 0);
Item.rare = ItemRarityID.LightRed;
Item.UseSound = SoundID.Item1;
Item.autoReuse = true;
Item.shoot = ModContent.ProjectileType<CarbonKnifeNihon>();
Item.shootSpeed = 10f;
}
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.OniDust>());
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 OnHitNPC(Player player, NPC target, int damage, float knockback, bool crit)
{
int healingAmount = damage / 16;
player.statLife += healingAmount;
player.HealEffect(healingAmount, true);
target.AddBuff(20, 480, false);
player.AddBuff(115, 480, true);
}
public override bool Shoot(Player player, EntitySource_ItemUse_WithAmmo source, Vector2 position, Vector2 velocity, int type, int damage, float knockback)
{
Vector2 muzzleOffset = Vector2.Normalize(new Vector2(velocity.X, velocity.Y)) * 45f;
if (Collision.CanHit(position, 0, 0, position + muzzleOffset, 0, 0)) {
position += muzzleOffset;
}
return true;
}
public override void AddRecipes()
{
Recipe recipe = Recipe.Create(Type);
recipe.AddIngredient(ModContent.ItemType<CarbonDagger>());
recipe.AddIngredient(ItemID.BlueDye, 1);
recipe.AddTile(TileID.DyeVat);
recipe.Register();
}
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 365 B

@@ -0,0 +1,84 @@
using FabusMod.Projectiles.Shortsword;
using Microsoft.Xna.Framework;
using Terraria;
using Terraria.DataStructures;
using Terraria.ID;
using Terraria.ModLoader;
namespace FabusMod.Items.Weapons.Melee.Shortswords;
public class GoldenDagger : ModItem
{
public override void SetStaticDefaults()
{
DisplayName.SetDefault("Golden Dagger");
Tooltip.SetDefault("[c/B6FF00:Autoswings]\nThrows two short-ranged golden knives in any direction, as well as one very fast dagger \nShortsword hits steal a small amount of life, and inflict the [c/007700:Poison] debuff for 10 seconds \nGolden knives do not steal life \nGrants the [c/FC3A3A:Rage] buff for 8 seconds upon hitting an enemy with the Shortsword \nGrants the [c/FC8719:Inferno] buff for 6 seconds upon hitting an enemy with the Shortsword");
}
public override void SetDefaults()
{
Item.damage = 95;
Item.width = 40;
Item.height = 40;
Item.useTime = 12;
Item.useAnimation = 12;
Item.useStyle = ItemUseStyleID.Thrust;
Item.knockBack = 6f;
Item.value = Item.sellPrice(0, 54, 96, 0);
Item.rare = ItemRarityID.Yellow;
Item.shoot = ModContent.ProjectileType<GoldenKnife>();
Item.shootSpeed = 50f;
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>(), 0f, 0f, 0, default, 1f);
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 bool Shoot(Player player, EntitySource_ItemUse_WithAmmo source, Vector2 position, Vector2 velocity, int type, int damage, float knockback)
{
float numberProjectiles = 2f;
float rotation = MathHelper.ToRadians(4f);
position += Vector2.Normalize(new Vector2(velocity.X, velocity.Y)) * 6f;
for (int i = 0; i < numberProjectiles; i++)
{
Vector2 perturbedSpeed = Utils.RotatedBy(new Vector2(velocity.X, velocity.Y), (double)MathHelper.Lerp(0f - rotation, rotation, i / (numberProjectiles - 1f)), default) * 0.2f;
Projectile.NewProjectile(source, position.X, position.Y, perturbedSpeed.X, perturbedSpeed.Y, type, damage, knockback, player.whoAmI, 0f, 0f);
Vector2 muzzleOffset = Vector2.Normalize(new Vector2(velocity.X, velocity.Y)) * 55f;
if (Collision.CanHit(position, 0, 0, position + muzzleOffset, 0, 0))
{
position += muzzleOffset;
}
}
return true;
}
public override void OnHitNPC(Player player, NPC target, int damage, float knockback, bool crit)
{
int healingAmount = damage / 17;
player.statLife += healingAmount;
player.HealEffect(healingAmount, true);
target.AddBuff(20, 600, false);
player.AddBuff(115, 480, true);
player.AddBuff(116, 360, true);
}
public override void AddRecipes()
{
Recipe val = CreateRecipe();
val.AddIngredient(ModContent.ItemType<OniDagger>());
val.AddIngredient(ModContent.ItemType<Items.CraftingIngredients.GoddessGold>(), 6);
val.AddIngredient(ModContent.ItemType<Items.CraftingIngredients.SoulofWisdom>(), 4);
val.AddTile(TileID.AdamantiteForge);
val.Register();
}
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 514 B

@@ -0,0 +1,76 @@
using Microsoft.Xna.Framework;
using Terraria;
using Terraria.DataStructures;
using Terraria.ID;
using Terraria.ModLoader;
namespace FabusMod.Items.Weapons.Melee.Shortswords;
public class OniDagger : ModItem
{
public override void SetStaticDefaults()
{
DisplayName.SetDefault("Demon's Dagger");
Tooltip.SetDefault("[c/B6FF00:Autoswings]\nThrows a vampire knife that deals more damage the closer you are to the target \nInflicts the [c/007700:Poison] debuff for 10 seconds on hit \n[c/FF0000:Steals a small amount of life] \nGrants the [c/FC3A3A:Rage] buff for 8 seconds upon hitting an enemy \nGrants the [c/FC8719:Inferno] buff for 6 seconds upon hitting an enemy");
}
public override void SetDefaults()
{
Item.damage = 92;
Item.width = 40;
Item.height = 40;
Item.useTime = 11;
Item.useAnimation = 11;
Item.useStyle = ItemUseStyleID.Thrust;
Item.knockBack = 6f;
Item.value = Item.sellPrice(0, 18, 54, 0);
Item.rare = ItemRarityID.Pink;
Item.shoot = ProjectileID.VampireKnife;
Item.shootSpeed = 16f;
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.RyuuDust3>());
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 OnHitNPC(Player player, NPC target, int damage, float knockback, bool crit)
{
int healingAmount = damage / 18;
player.statLife += healingAmount;
player.HealEffect(healingAmount, true);
target.AddBuff(20, 600, false);
player.AddBuff(115, 480, true);
player.AddBuff(116, 360, true);
}
public override bool Shoot(Player player, EntitySource_ItemUse_WithAmmo source, Vector2 position, Vector2 velocity, int type, int damage, float knockback)
{
Vector2 muzzleOffset = Vector2.Normalize(new Vector2(velocity.X, velocity.Y)) * 55f;
if (Collision.CanHit(position, 0, 0, position + muzzleOffset, 0, 0))
{
position += muzzleOffset;
}
return true;
}
public override void AddRecipes()
{
Recipe val = CreateRecipe();
val.AddRecipeGroup("FabusMod:CarbonDagger", 1);
val.AddRecipeGroup("FabusMod:AdamantiteBar", 6);
val.AddIngredient(ItemID.SoulofNight, 4);
val.AddIngredient(ModContent.ItemType<Items.CraftingIngredients.SoulofWisdom>(), 2);
val.AddTile(TileID.MythrilAnvil);
val.Register();
}
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 497 B

@@ -0,0 +1,37 @@
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
namespace FabusMod.Items.Weapons.Melee.Shortswords;
public class StonePlatedShortsword : ModItem
{
public override void SetStaticDefaults()
{
DisplayName.SetDefault("Stone-Plated Shortsword");
}
public override void SetDefaults()
{
Item.damage = 9;
Item.width = 30;
Item.height = 30;
Item.useTime = 13;
Item.useAnimation = 13;
Item.useStyle = ItemUseStyleID.Thrust;
Item.knockBack = 5f;
Item.value = Item.sellPrice(0, 0, 0, 40);
Item.rare = ItemRarityID.White;
Item.UseSound = SoundID.Item1;
Item.autoReuse = false;
}
public override void AddRecipes()
{
Recipe val = CreateRecipe();
val.AddIngredient(ModContent.ItemType<Items.WeaponParts.UntreatedShortswordPart>());
val.AddIngredient(ItemID.StoneBlock, 6);
val.AddTile(ModContent.TileType<global::FabusMod.Tiles.ReinforcedWorkBench>());
val.Register();
}
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 386 B

@@ -0,0 +1,92 @@
using Microsoft.Xna.Framework;
using Terraria;
using Terraria.DataStructures;
using Terraria.ID;
using Terraria.ModLoader;
namespace FabusMod.Items.Weapons.Melee.Shortswords;
public class TheRainbowsCurse : ModItem
{
public override void SetStaticDefaults()
{
DisplayName.SetDefault("The Rainbow's Curse");
Tooltip.SetDefault("[c/B6FF00:Autoswings]\nThrows three medium-ranged rainbow knives in any direction, as well as one very fast dagger \nShortsword hits steal a small amount of life, and inflict the [c/007700:Poison] debuff for 12 seconds\nRainbow knives do not steal life \nGrants the [c/FC3A3A:Rage] buff for 10 seconds, and the [c/FC8719:Inferno] buff for 8 seconds upon hitting an enemy with the Shortsword");
}
public override void SetDefaults()
{
Item.damage = 154;
Item.width = 48;
Item.height = 48;
Item.useTime = 8;
Item.useAnimation = 8;
Item.useStyle = ItemUseStyleID.Thrust;
Item.knockBack = 6f;
Item.value = Item.sellPrice(2, 20, 0, 0);
Item.expert = true;
Item.shoot = ModContent.ProjectileType<Projectiles.Shortsword.RainbowKnife>();
Item.shootSpeed = 65f;
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.RainbowDust>());
int num2 = Dust.NewDust(new Vector2(hitbox.X, hitbox.Y), hitbox.Width, hitbox.Height, ModContent.DustType<Dusts.RainbowDust2>());
int num3 = Dust.NewDust(new Vector2(hitbox.X, hitbox.Y), hitbox.Width, hitbox.Height, ModContent.DustType<Dusts.RainbowDust3>());
Main.dust[num1].scale = 1f;
Main.dust[num1].velocity.Y = 0f;
Main.dust[num1].velocity.X = 0.5f;
Main.dust[num1].noGravity = true;
Main.dust[num2].scale = 1f;
Main.dust[num2].velocity.Y = 0f;
Main.dust[num2].velocity.X = 0.5f;
Main.dust[num2].noGravity = true;
Main.dust[num3].scale = 1f;
Main.dust[num3].velocity.Y = 0f;
Main.dust[num3].velocity.X = 0.5f;
Main.dust[num3].noGravity = true;
}
}
public override bool Shoot(Player player, EntitySource_ItemUse_WithAmmo source, Vector2 position, Vector2 velocity, int type, int damage, float knockback)
{
float numberProjectiles = 3f;
float rotation = MathHelper.ToRadians(6f);
position += Vector2.Normalize(new Vector2(velocity.X, velocity.Y)) * 6f;
for (int i = 0; i < numberProjectiles; i++)
{
Vector2 perturbedSpeed = Utils.RotatedBy(new Vector2(velocity.X, velocity.Y), (double)MathHelper.Lerp(0f - rotation, rotation, i / (numberProjectiles - 1f)), default) * 0.2f;
Projectile.NewProjectile(source, position.X, position.Y, perturbedSpeed.X, perturbedSpeed.Y, type, damage, knockback, player.whoAmI, 0f, 0f);
Vector2 muzzleOffset = Vector2.Normalize(new Vector2(velocity.X, velocity.Y)) * 60f;
if (Collision.CanHit(position, 0, 0, position + muzzleOffset, 0, 0))
{
position += muzzleOffset;
}
}
return true;
}
public override void OnHitNPC(Player player, NPC target, int damage, float knockback, bool crit)
{
int healingAmount = damage / 16;
player.statLife += healingAmount;
player.HealEffect(healingAmount, true);
target.AddBuff(20, 720, false);
player.AddBuff(115, 600, true);
player.AddBuff(116, 480, true);
}
public override void AddRecipes()
{
Recipe val = CreateRecipe();
val.AddIngredient(ModContent.ItemType<GoldenDagger>());
val.AddIngredient(ModContent.ItemType<Bars.RainbowChunk>(), 6);
val.AddTile(ModContent.TileType<global::FabusMod.Tiles.RainbowStation>());
val.Register();
}
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 729 B

@@ -0,0 +1,57 @@
using Microsoft.Xna.Framework;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
namespace FabusMod.Items.Weapons.Melee.Shortswords;
public class Wakizashi : ModItem
{
public override void SetStaticDefaults()
{
DisplayName.SetDefault("Wakizashi");
Tooltip.SetDefault("Inflicts [c/007700:Poison] debuff for 5 seconds on hit");
}
public override void SetDefaults()
{
Item.damage = 15;
Item.width = 30;
Item.height = 30;
Item.useTime = 13;
Item.useAnimation = 13;
Item.useStyle = ItemUseStyleID.Thrust;
Item.knockBack = 5f;
Item.value = Item.sellPrice(0, 0, 50, 0);
Item.rare = ItemRarityID.Blue;
Item.UseSound = SoundID.Item1;
Item.autoReuse = false;
}
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.RyuuDust>());
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 OnHitNPC(Player player, NPC target, int damage, float knockback, bool crit)
{
target.AddBuff(20, 300, false);
}
public override void AddRecipes()
{
Recipe val = CreateRecipe();
val.AddIngredient(ModContent.ItemType<StonePlatedShortsword>());
val.AddRecipeGroup("IronBar", 6);
val.AddIngredient(ItemID.Emerald, 2);
val.AddTile(TileID.Anvils);
val.Register();
}
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 356 B

@@ -0,0 +1,63 @@
using FabusMod.Projectiles;
using Microsoft.Xna.Framework;
using Terraria;
using Terraria.DataStructures;
using Terraria.ID;
using Terraria.ModLoader;
namespace FabusMod.Items.Weapons.Melee.Swords;
public class GoldenSlasher : ModItem
{
public override void SetStaticDefaults()
{
DisplayName.SetDefault("Golden Slasher");
Tooltip.SetDefault("[c/B6FF00:Autoswings] \nShoots two homing golden orbs in a medium-sized spread on swing");
}
public override void SetDefaults()
{
Item.damage = 110;
Item.width = 64;
Item.height = 72;
Item.useTime = 15;
Item.useAnimation = 15;
Item.useStyle = ItemUseStyleID.Swing;
Item.knockBack = 3f;
Item.value = Item.sellPrice(0, 40, 0, 0);
Item.rare = ItemRarityID.Yellow;
Item.UseSound = SoundID.Item1;
Item.autoReuse = true;
Item.shoot = ModContent.ProjectileType<GoldenOrb>();
Item.shootSpeed = 15f;
}
public override void MeleeEffects(Player player, Rectangle hitbox)
{
if (Main.rand.NextBool(4))
{
Dust.NewDust(new Vector2(hitbox.X, hitbox.Y), hitbox.Width, hitbox.Height, ModContent.DustType<Dusts.MeatDust>());
}
}
public override void AddRecipes()
{
Recipe val = CreateRecipe();
val.AddIngredient(ModContent.ItemType<Items.CraftingIngredients.GoddessGold>(), 14);
val.AddTile(TileID.AdamantiteForge);
val.Register();
}
public override bool Shoot(Player player, EntitySource_ItemUse_WithAmmo source, Vector2 position, Vector2 velocity, int type, int damage, float knockback)
{
float numberProjectiles = 2f;
float rotation = MathHelper.ToRadians(25f);
position += Vector2.Normalize(new Vector2(velocity.X, velocity.Y)) * 45f;
for (int i = 0; i < numberProjectiles; i++)
{
Vector2 perturbedSpeed = Utils.RotatedBy(new Vector2(velocity.X, velocity.Y), (double)MathHelper.Lerp(0f - rotation, rotation, i / (numberProjectiles - 1f)), default) * 0.2f;
Projectile.NewProjectile(source, position.X, position.Y, perturbedSpeed.X, perturbedSpeed.Y, type, damage, knockback, player.whoAmI);
}
return false;
}
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 865 B

@@ -0,0 +1,65 @@
using Microsoft.Xna.Framework;
using Terraria;
using Terraria.DataStructures;
using Terraria.ID;
using Terraria.ModLoader;
namespace FabusMod.Items.Weapons.Melee.Swords;
public class RainbowClaymore : ModItem
{
public override void SetStaticDefaults()
{
DisplayName.SetDefault("The Spectrum");
Tooltip.SetDefault("[c/B6FF00:Autoswings] \nShoots three homing rainbow orbs in a large spread on swing");
}
public override void SetDefaults()
{
Item.damage = 185;
Item.width = 60;
Item.height = 68;
Item.useTime = 12;
Item.useAnimation = 12;
Item.useStyle = ItemUseStyleID.Swing;
Item.knockBack = 3f;
Item.value = Item.sellPrice(3, 20, 0, 0);
Item.expert = true;
Item.UseSound = SoundID.Item1;
Item.autoReuse = true;
Item.shoot = ModContent.ProjectileType<Projectiles.RainbowOrb>();
Item.shootSpeed = 20f;
}
public override void MeleeEffects(Player player, Rectangle hitbox)
{
if (Main.rand.NextBool(3))
{
Dust.NewDust(new Vector2(hitbox.X, hitbox.Y), hitbox.Width, hitbox.Height, ModContent.DustType<Dusts.RainbowDust>());
Dust.NewDust(new Vector2(hitbox.X, hitbox.Y), hitbox.Width, hitbox.Height, ModContent.DustType<Dusts.RainbowDust2>());
Dust.NewDust(new Vector2(hitbox.X, hitbox.Y), hitbox.Width, hitbox.Height, ModContent.DustType<Dusts.RainbowDust3>());
}
}
public override void AddRecipes()
{
Recipe val = CreateRecipe();
val.AddIngredient(ModContent.ItemType<GoldenSlasher>());
val.AddIngredient(ModContent.ItemType<Bars.RainbowChunk>(), 14);
val.AddTile(ModContent.TileType<global::FabusMod.Tiles.RainbowStation>());
val.Register();
}
public override bool Shoot(Player player, EntitySource_ItemUse_WithAmmo source, Vector2 position, Vector2 velocity, int type, int damage, float knockback)
{
float numberProjectiles = 3f;
float rotation = MathHelper.ToRadians(45f);
position += Vector2.Normalize(new Vector2(velocity.X, velocity.Y)) * 45f;
for (int i = 0; i < numberProjectiles; i++)
{
Vector2 perturbedSpeed = Utils.RotatedBy(new Vector2(velocity.X, velocity.Y), (double)MathHelper.Lerp(0f - rotation, rotation, i / (numberProjectiles - 1f)), default) * 0.2f;
Projectile.NewProjectile(source, position.X, position.Y, perturbedSpeed.X, perturbedSpeed.Y, type, damage, knockback, player.whoAmI, 0f, 0f);
}
return false;
}
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 839 B

@@ -0,0 +1,78 @@
using FabusMod.Projectiles.Shimada;
using Microsoft.Xna.Framework;
using Terraria;
using Terraria.DataStructures;
using Terraria.ID;
using Terraria.ModLoader;
namespace FabusMod.Items.Weapons.Melee.Swords.ShimadaSwords;
public class CarbonSword : ModItem
{
public override void SetStaticDefaults()
{
DisplayName.SetDefault("Carbon Sword");
Tooltip.SetDefault("[c/B6FF00:Autoswings, dyeable]\nFires a stream of particles that deals damage three times\nInflicts [c/7B2D2F:Advanced Blood Loss] for 10 seconds when hit with the blade, dealing damage over time");
}
public override void SetDefaults()
{
Item.damage = 74;
Item.crit = 8;
Item.width = 54;
Item.height = 68;
Item.useTime = 22;
Item.useAnimation = 22;
Item.useStyle = ItemUseStyleID.Swing;
Item.knockBack = 2f;
Item.value = Item.sellPrice(0, 6, 0, 0);
Item.rare = ItemRarityID.LightRed;
Item.shoot = ModContent.ProjectileType<ShimadaWave>();
Item.shootSpeed = 10f;
Item.UseSound = SoundID.Item1;
Item.autoReuse = true;
}
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(0f));
Projectile.NewProjectile(source, position.X, position.Y, perturbedSpeed.X, perturbedSpeed.Y, type, damage, knockback, player.whoAmI, 0f, 0f);
}
return false;
}
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.RyuuDust2>());
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 OnHitNPC(Player player, NPC target, int damage, float knockback, bool crit)
{
target.AddBuff(ModContent.BuffType<Buffs.ShimadaSword.AdvancedBloodLoss>(), 600, false);
}
public override void AddRecipes()
{
Recipe val = CreateRecipe();
val.AddIngredient(ModContent.ItemType<ShimadaSword>());
val.AddRecipeGroup("FabusMod:OrichalcumBar", 10);
val.AddTile(TileID.DemonAltar);
val.Register();
Recipe val2 = CreateRecipe();
val2.AddIngredient(ModContent.ItemType<CarbonSwordNihon>());
val2.AddIngredient(ItemID.BlueDye, 1);
val2.AddTile(TileID.DyeVat);
val2.Register();
}
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 599 B

@@ -0,0 +1,72 @@
using FabusMod.Projectiles.Shimada;
using Microsoft.Xna.Framework;
using Terraria;
using Terraria.DataStructures;
using Terraria.ID;
using Terraria.ModLoader;
namespace FabusMod.Items.Weapons.Melee.Swords.ShimadaSwords;
public class CarbonSwordNihon : ModItem
{
public override void SetStaticDefaults()
{
DisplayName.SetDefault("Carbon Sword - Nihon");
Tooltip.SetDefault("[c/B6FF00:Autoswings, dyeable]\nFires a stream of particles that deals damage three times\nInflicts [c/7B2D2F:Advanced Blood Loss] for 10 seconds when hit with the blade, dealing damage over time");
}
public override void SetDefaults()
{
Item.damage = 74;
Item.crit = 8;
Item.width = 54;
Item.height = 68;
Item.useTime = 22;
Item.useAnimation = 22;
Item.useStyle = ItemUseStyleID.Swing;
Item.knockBack = 2f;
Item.value = Item.sellPrice(0, 6, 0, 0);
Item.rare = ItemRarityID.LightRed;
Item.shoot = ModContent.ProjectileType<ShimadaWaveNihon>();
Item.shootSpeed = 10f;
Item.UseSound = SoundID.Item1;
Item.autoReuse = true;
}
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(0f));
Projectile.NewProjectile(source, position.X, position.Y, perturbedSpeed.X, perturbedSpeed.Y, type, damage, knockback, player.whoAmI, 0f, 0f);
}
return false;
}
public override void OnHitNPC(Player player, NPC target, int damage, float knockback, bool crit)
{
target.AddBuff(ModContent.BuffType<Buffs.ShimadaSword.AdvancedBloodLoss>(), 600, false);
}
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.NightsAxeSparkle>());
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(ModContent.ItemType<CarbonSword>());
val.AddIngredient(ItemID.SilverDye, 1);
val.AddTile(TileID.DyeVat);
val.Register();
}
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 578 B

@@ -0,0 +1,99 @@
using FabusMod.Projectiles.Shimada;
using Microsoft.Xna.Framework;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
namespace FabusMod.Items.Weapons.Melee.Swords.ShimadaSwords;
public class DemonsFury : ModItem
{
public override void SetStaticDefaults()
{
DisplayName.SetDefault("Demon's Fury");
Tooltip.SetDefault("[c/B6FF00:Autoswings]\nFires a beam of particles that ignores immunity frames, pierces 5 times, and regenerates 1 Mana with every hit\nInflicts [c/7B2D2F:Advanced Blood Loss] for 14 seconds when hit with the blade, dealing damage over time\n<right> uses 40 Mana to bring up spikes from the ground, dealing damage with a 2% chance of granting a [c/EC566E:Souleater] stack\nHas an 8% chance to fire soul-absorbing shards, granting a stack of [c/EC566E:Souleater] when hit\nHaving 6 stacks of [c/EC566E:Souleater] restores 75 HP and Mana");
}
public override void SetDefaults()
{
Item.damage = 80;
Item.crit = 8;
Item.width = 63;
Item.height = 76;
Item.useTime = 22;
Item.useAnimation = 22;
Item.useStyle = ItemUseStyleID.Swing;
Item.knockBack = 2f;
Item.value = Item.sellPrice(0, 23, 25, 0);
Item.rare = ItemRarityID.Pink;
Item.mana = 0;
Item.shootSpeed = 10f;
Item.UseSound = SoundID.Item1;
Item.autoReuse = true;
}
public override void OnHitNPC(Player player, NPC target, int damage, float knockback, bool crit)
{
target.AddBuff(ModContent.BuffType<Buffs.ShimadaSword.AdvancedBloodLoss>(), 840, false);
}
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.RyuuDust3>());
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 bool AltFunctionUse(Player player)
{
return true;
}
public override bool CanUseItem(Player player)
{
if (player.altFunctionUse == 2 && player.velocity.Y == 0f && player.statMana >= 40)
{
Item.damage = 50;
Item.useTime = 60;
Item.useAnimation = 60;
Item.shootSpeed = 0f;
Item.mana = 40;
Item.shoot = ModContent.ProjectileType<DemonProjRMB>();
Item.UseSound = SoundID.Item88;
}
else
{
Item.damage = 80;
Item.useAnimation = 22;
Item.useTime = 22;
Item.shootSpeed = 10f;
Item.mana = 0;
if (Utils.NextFloat(Main.rand) < 0.08f)
{
Item.shoot = ModContent.ProjectileType<DemonProjTwo>();
}
else
{
Item.shoot = ModContent.ProjectileType<DemonWave>();
}
Item.UseSound = SoundID.Item1;
}
return CanUseItem(player);
}
public override void AddRecipes()
{
Recipe val = CreateRecipe();
val.AddRecipeGroup("FabusMod:CarbonSword", 1);
val.AddRecipeGroup("FabusMod:AdamantiteBar", 10);
val.AddIngredient(ItemID.SoulofNight, 8);
val.AddIngredient(ModContent.ItemType<Items.CraftingIngredients.SoulofWisdom>(), 4);
val.AddTile(TileID.DemonAltar);
val.Register();
}
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 678 B

@@ -0,0 +1,98 @@
using FabusMod.Projectiles.Shimada;
using Microsoft.Xna.Framework;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
namespace FabusMod.Items.Weapons.Melee.Swords.ShimadaSwords;
public class GoldenFury : ModItem
{
public override void SetStaticDefaults()
{
DisplayName.SetDefault("Golden Fury");
Tooltip.SetDefault("[c/B6FF00:Autoswings]\nFires a beam of particles that ignores immunity frames, pierces 6 times, and regenerates 1 Mana with every hit\nInflicts [c/7B2D2F:Advanced Blood Loss] for 14 seconds when hit with the blade, dealing damage over time\n<right> uses 40 Mana to bring up [c/C4AB37:Midas]-inducing spikes from the ground, dealing damage with a 2% chance of granting an [c/D2D25A:Enrichment] stack\nHas a 10% chance to fire soul-absorbing shards, granting a stack of [c/D2D25A:Enrichment] when hit\nHaving 6 stacks of [c/D2D25A:Enrichment] restores 75 HP and Mana");
}
public override void SetDefaults()
{
Item.damage = 100;
Item.crit = 8;
Item.width = 63;
Item.height = 76;
Item.useTime = 20;
Item.useAnimation = 20;
Item.useStyle = ItemUseStyleID.Swing;
Item.knockBack = 2f;
Item.value = Item.sellPrice(0, 23, 25, 0);
Item.rare = ItemRarityID.Pink;
Item.mana = 0;
Item.shootSpeed = 10f;
Item.UseSound = SoundID.Item1;
Item.autoReuse = true;
}
public override void OnHitNPC(Player player, NPC target, int damage, float knockback, bool crit)
{
target.AddBuff(ModContent.BuffType<Buffs.ShimadaSword.AdvancedBloodLoss>(), 840, false);
}
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>(), 0f, 0f, 0, default(Color), 1f);
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 bool AltFunctionUse(Player player)
{
return true;
}
public override bool CanUseItem(Player player)
{
if (player.altFunctionUse == 2 && player.velocity.Y == 0f && player.statMana >= 40)
{
Item.damage = 70;
Item.useTime = 60;
Item.useAnimation = 60;
Item.shootSpeed = 0f;
Item.mana = 40;
Item.shoot = ModContent.ProjectileType<GoldenFuryProjRMB>();
Item.UseSound = SoundID.Item88;
}
else
{
Item.damage = 100;
Item.useAnimation = 20;
Item.useTime = 20;
Item.shootSpeed = 10f;
Item.mana = 0;
if (Utils.NextFloat(Main.rand) < 0.1f)
{
Item.shoot = ModContent.ProjectileType<GoldenFuryProjTwo>();
}
else
{
Item.shoot = ModContent.ProjectileType<GoldenFuryWave>();
}
Item.UseSound = SoundID.Item1;
}
return this.CanUseItem(player);
}
public override void AddRecipes()
{
Recipe val = CreateRecipe();
val.AddIngredient(ModContent.ItemType<DemonsFury>());
val.AddIngredient(ModContent.ItemType<Items.CraftingIngredients.GoddessGold>(), 10);
val.AddIngredient(ModContent.ItemType<Items.CraftingIngredients.SoulofWisdom>(), 4);
val.AddTile(TileID.DemonAltar);
val.Register();
}
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 647 B

@@ -0,0 +1,58 @@
using Microsoft.Xna.Framework;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
namespace FabusMod.Items.Weapons.Melee.Swords.ShimadaSwords;
public class ShimadaSword : ModItem
{
public override void SetStaticDefaults()
{
DisplayName.SetDefault("Shimada Sword");
Tooltip.SetDefault("Inflicts [c/7B2D2F:Blood Loss] for 3 seconds on hit, dealing damage over time");
}
public override void SetDefaults()
{
Item.damage = 18;
Item.crit = 8;
Item.width = 54;
Item.height = 68;
Item.useTime = 22;
Item.useAnimation = 22;
Item.useStyle = ItemUseStyleID.Swing;
Item.knockBack = 2f;
Item.value = Item.sellPrice(0, 1, 80, 0);
Item.rare = ItemRarityID.Blue;
Item.UseSound = SoundID.Item1;
Item.autoReuse = false;
}
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.RyuuDust>());
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 OnHitNPC(Player player, NPC target, int damage, float knockback, bool crit)
{
target.AddBuff(ModContent.BuffType<Buffs.ShimadaSword.BloodLoss>(), 180, false);
}
public override void AddRecipes()
{
Recipe val = CreateRecipe();
val.AddIngredient(ModContent.ItemType<StonePlatedKatana>());
val.AddRecipeGroup("FabusMod:LightsBane");
val.AddIngredient(ItemID.Emerald, 10);
val.AddTile(TileID.Anvils);
val.Register();
}
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 596 B

@@ -0,0 +1,38 @@
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
namespace FabusMod.Items.Weapons.Melee.Swords.ShimadaSwords;
public class StonePlatedKatana : ModItem
{
public override void SetStaticDefaults()
{
DisplayName.SetDefault("Stone-Plated Katana");
}
public override void SetDefaults()
{
Item.damage = 8;
Item.crit = 8;
Item.width = 56;
Item.height = 66;
Item.useTime = 22;
Item.useAnimation = 22;
Item.useStyle = ItemUseStyleID.Swing;
Item.knockBack = 2f;
Item.value = Item.sellPrice(0, 0, 0, 40);
Item.rare = ItemRarityID.White;
Item.UseSound = SoundID.Item1;
Item.autoReuse = false;
}
public override void AddRecipes()
{
Recipe val = CreateRecipe();
val.AddIngredient(ModContent.ItemType<Items.WeaponParts.UntreatedSwordParts>());
val.AddIngredient(ItemID.StoneBlock, 12);
val.AddTile(ModContent.TileType<global::FabusMod.Tiles.ReinforcedWorkBench>());
val.Register();
}
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 518 B

@@ -0,0 +1,107 @@
using FabusMod.Projectiles.Shimada;
using Microsoft.Xna.Framework;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
namespace FabusMod.Items.Weapons.Melee.Swords.ShimadaSwords;
public class TheRainbowsHonor : ModItem
{
public override void SetStaticDefaults()
{
DisplayName.SetDefault("Dream Catcher");
Tooltip.SetDefault("[c/B6FF00:Autoswings]\nFires a beam of particles that ignores immunity frames, pierces 8 times, and regenerates 1 Mana with every hit\nInflicts [c/806580:Bad Dream] for 16 seconds when hit with the blade, dealing damage over time\n<right> uses 40 Mana to bring up [c/C4AB37:Midas]-inducing spikes from the ground, dealing damage with a 2% chance of granting a [c/FF52DC:Dream] stack\nHas a 10% chance to fire homing, soul-absorbing shards, healing for 20 HP and granting a stack of [c/FF52DC:Dream] when hit\nHaving 6 stacks of [c/FF52DC:Dream] restores 85 HP and Mana and puts you into an enraged state for 8 seconds, increasing melee damage dealt");
}
public override void SetDefaults()
{
Item.damage = 195;
Item.crit = 8;
Item.width = 56;
Item.height = 76;
Item.useTime = 10;
Item.useAnimation = 10;
Item.useStyle = ItemUseStyleID.Swing;
Item.knockBack = 2f;
Item.value = Item.sellPrice(2, 75, 0, 0);
Item.expert = true;
Item.shoot = ModContent.ProjectileType<DreamCatcherWave>();
Item.shootSpeed = 60f;
Item.UseSound = SoundID.Item1;
Item.autoReuse = true;
}
public override void OnHitNPC(Player player, NPC target, int damage, float knockback, bool crit)
{
target.AddBuff(ModContent.BuffType<Buffs.ShimadaSword.BadDream>(), 960, false);
}
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.RainbowDust>(), 0f, 0f, 0, default(Color), 1f);
Main.dust[num1].scale = 1f;
Main.dust[num1].velocity.Y = 0f;
Main.dust[num1].velocity.X = 0.5f;
Main.dust[num1].noGravity = true;
int num2 = Dust.NewDust(new Vector2(hitbox.X, hitbox.Y), hitbox.Width, hitbox.Height, ModContent.DustType<Dusts.RainbowDust2>(), 0f, 0f, 0, default(Color), 1f);
Main.dust[num2].scale = 1f;
Main.dust[num2].velocity.Y = 0f;
Main.dust[num2].velocity.X = 0.5f;
Main.dust[num2].noGravity = true;
int num3 = Dust.NewDust(new Vector2(hitbox.X, hitbox.Y), hitbox.Width, hitbox.Height, ModContent.DustType<Dusts.RainbowDust3>(), 0f, 0f, 0, default(Color), 1f);
Main.dust[num3].scale = 1f;
Main.dust[num3].velocity.Y = 0f;
Main.dust[num3].velocity.X = 0.5f;
Main.dust[num3].noGravity = true;
}
}
public override bool AltFunctionUse(Player player)
{
return true;
}
public override bool CanUseItem(Player player)
{
if (player.altFunctionUse == 2 && player.velocity.Y == 0f)
{
Item.damage = 135;
Item.useTime = 60;
Item.useAnimation = 60;
Item.shootSpeed = 0f;
Item.mana = 40;
Item.shoot = ModContent.ProjectileType<DreamCatcherProjRMB>();
Item.UseSound = SoundID.Item88;
}
else
{
Item.damage = 195;
Item.useAnimation = 18;
Item.useTime = 18;
Item.shootSpeed = 10f;
Item.mana = 0;
if (Utils.NextFloat(Main.rand) < 0.1f)
{
Item.shoot = ModContent.ProjectileType<DreamCatcherProjTwo>();
}
else
{
Item.shoot = ModContent.ProjectileType<DreamCatcherWave>();
}
Item.UseSound = SoundID.Item1;
}
return this.CanUseItem(player);
}
public override void AddRecipes()
{
Recipe val = CreateRecipe();
val.AddIngredient(ModContent.ItemType<GoldenFury>());
val.AddIngredient(ModContent.ItemType<Bars.RainbowChunk>(), 10);
val.AddTile(null, "RainbowStation");
val.Register();
}
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 1009 B

+100
View File
@@ -0,0 +1,100 @@
using FabusMod.Projectiles;
using Microsoft.Xna.Framework;
using Terraria;
using Terraria.DataStructures;
using Terraria.ID;
using Terraria.ModLoader;
namespace FabusMod.Items.Weapons.Melee.Waraxes;
public class RainbowAxe : ModItem
{
public override void SetStaticDefaults()
{
DisplayName.SetDefault("Spectral Shredder");
Tooltip.SetDefault("[c/B6FF00:Autoswings] \nPressing <right> fires a long-ranged Rainbow-Axe wall");
}
public override void SetDefaults()
{
Item.damage = 280;
Item.width = 54;
Item.height = 58;
Item.useTime = 20;
Item.useAnimation = 20;
Item.useStyle = ItemUseStyleID.Swing;
Item.axe = 40;
Item.tileBoost = 6;
Item.knockBack = 8f;
Item.value = Item.sellPrice(3, 20, 0, 0);
Item.expert = true;
Item.UseSound = SoundID.Item1;
Item.autoReuse = true;
Item.shootSpeed = 80f;
}
public override void MeleeEffects(Player player, Rectangle hitbox)
{
if (Main.rand.NextBool(3))
{
Dust.NewDust(new Vector2(hitbox.X, hitbox.Y), hitbox.Width, hitbox.Height, ModContent.DustType<Dusts.RainbowDust>());
Dust.NewDust(new Vector2(hitbox.X, hitbox.Y), hitbox.Width, hitbox.Height, ModContent.DustType<Dusts.RainbowDust2>());
Dust.NewDust(new Vector2(hitbox.X, hitbox.Y), hitbox.Width, hitbox.Height, ModContent.DustType<Dusts.RainbowDust3>());
}
}
public override bool AltFunctionUse(Player player)
{
return true;
}
public override bool CanUseItem(Player player)
{
if (player.altFunctionUse == 2)
{
Item.useStyle = ItemUseStyleID.Swing;
Item.useTime = 20;
Item.useAnimation = 20;
Item.damage = 280;
Item.axe = 38;
Item.tileBoost = 6;
Item.shoot = ModContent.ProjectileType<RainbowAxeBeam>();
}
else
{
Item.useStyle = ItemUseStyleID.Swing;
Item.useTime = 20;
Item.useAnimation = 20;
Item.damage = 280;
Item.axe = 38;
Item.tileBoost = 6;
Item.shoot = ProjectileID.None;
}
return this.CanUseItem(player);
}
public override bool Shoot(Player player, EntitySource_ItemUse_WithAmmo source, Vector2 position, Vector2 velocity, int type, int damage, float knockback)
{
float numberProjectiles = 16f;
float rotation = MathHelper.ToRadians(35f);
position += Vector2.Normalize(new Vector2(velocity.X, velocity.Y)) * 80f;
for (int i = 0; i < numberProjectiles; i++)
{
Vector2 perturbedSpeed = Utils.RotatedBy(new Vector2(velocity.X, velocity.Y), (double)MathHelper.Lerp(0f - rotation, rotation, i / (numberProjectiles - 1f)), default) * 0.2f;
Projectile.NewProjectile(source, position.X, position.Y, perturbedSpeed.X, perturbedSpeed.Y, type, damage, knockback, player.whoAmI);
}
return false;
}
public override void AddRecipes()
{
Recipe val = CreateRecipe();
val.AddIngredient(ItemID.LunarHamaxeSolar);
val.AddIngredient(ItemID.LunarHamaxeVortex);
val.AddIngredient(ItemID.LunarHamaxeNebula);
val.AddIngredient(ItemID.LunarHamaxeStardust);
val.AddIngredient(ModContent.ItemType<Bars.RainbowChunk>(), 14);
val.AddTile(ModContent.TileType<global::FabusMod.Tiles.RainbowStation>());
val.Register();
}
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 910 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.8 KiB

@@ -0,0 +1,65 @@
using Microsoft.Xna.Framework;
using Terraria;
using Terraria.DataStructures;
using Terraria.ID;
using Terraria.ModLoader;
namespace FabusMod.Items.Weapons.RainbowDemon;
public class TheRainbowDemon : ModItem
{
public override void SetStaticDefaults()
{
DisplayName.SetDefault("The Rainbow Demon");
Tooltip.SetDefault("[c/B6FF00:Autoshoots] \nUnleashes a barrage of rainbow waves \nDoes not require ammo \nClass and projectiles fired can be changed via crafting \n[c/FF2B6E:Currently Unobtainable]");
}
public override void SetDefaults()
{
Item.damage = 82;
Item.width = 82;
Item.height = 39;
Item.useTime = 4;
Item.useAnimation = 4;
Item.useStyle = ItemUseStyleID.Shoot;
Item.noMelee = true;
Item.knockBack = 0f;
Item.value = Item.sellPrice(40, 0, 0, 0);
Item.UseSound = SoundID.Item11;
Item.autoReuse = true;
Item.shoot = ProjectileID.PurificationPowder;
Item.shootSpeed = 25f;
Item.shoot = ModContent.ProjectileType<Projectiles.RainbowDemon.RainbowDemonMelee>();
Item.expert = true;
}
public override Vector2? HoldoutOffset()
{
return new Vector2(7f, -5f);
}
public override bool Shoot(Player player, EntitySource_ItemUse_WithAmmo source, Vector2 position, Vector2 velocity, int type, int damage, float knockback)
{
int numberProjectiles = 10;
for (int i = 0; i < numberProjectiles; i++)
{
Vector2 perturbedSpeed = Utils.RotatedByRandom(new Vector2(velocity.X, velocity.Y), (double)MathHelper.ToRadians(30f));
Projectile.NewProjectile(source, position.X, position.Y, perturbedSpeed.X, perturbedSpeed.Y, type, damage, knockback, player.whoAmI);
}
return false;
}
public override void AddRecipes()
{
Recipe val = CreateRecipe();
val.AddIngredient(ModContent.ItemType<Items.CraftingIngredients.RainbowHandle> ());
val.AddIngredient(ModContent.ItemType<Items.CraftingIngredients.RainbowMuzzle>());
val.AddTile(ModContent.TileType<global::FabusMod.Tiles.RainbowStation>());
val.Register();
Recipe val2 = CreateRecipe();
val2.AddRecipeGroup("FabusMod:TheRainbowDemon", 1);
val2.AddTile(ModContent.TileType<global::FabusMod.Tiles.RainbowStation>());
val2.Register();
}
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

@@ -0,0 +1,60 @@
using Microsoft.Xna.Framework;
using Terraria;
using Terraria.DataStructures;
using Terraria.ID;
using Terraria.ModLoader;
namespace FabusMod.Items.Weapons.RainbowDemon;
public class TheRainbowDemonClaymore : ModItem
{
public override void SetStaticDefaults()
{
DisplayName.SetDefault("The Rainbow Demon - Claymore");
Tooltip.SetDefault("[c/B6FF00:Autoshoots] \nUnleashes a slow-moving barrage of homing rainbow balls \nDoes not require ammo \nClass and projectiles fired can be changed via crafting \n[c/FF2B6E:Currently Unobtainable]");
}
public override void SetDefaults()
{
Item.damage = 82;
Item.width = 82;
Item.height = 39;
Item.useTime = 4;
Item.useAnimation = 4;
Item.useStyle = ItemUseStyleID.Shoot;
Item.noMelee = true;
Item.knockBack = 0f;
Item.value = Item.sellPrice(40, 0, 0, 0);
Item.UseSound = SoundID.Item11;
Item.autoReuse = true;
Item.shoot = ProjectileID.PurificationPowder;
Item.shootSpeed = 25f;
Item.shoot = ModContent.ProjectileType<Projectiles.RainbowDemon.RainbowDemonClaymoreProj>();
Item.expert = true;
}
public override Vector2? HoldoutOffset()
{
return new Vector2(7f, -5f);
}
public override bool Shoot(Player player, EntitySource_ItemUse_WithAmmo source, Vector2 position, Vector2 velocity, int type, int damage, float knockback)
{
int numberProjectiles = 5;
for (int i = 0; i < numberProjectiles; i++)
{
Vector2 perturbedSpeed = Utils.RotatedByRandom(new Vector2(velocity.X, velocity.Y), (double)MathHelper.ToRadians(30f));
Projectile.NewProjectile(source, position.X, position.Y, perturbedSpeed.X, perturbedSpeed.Y, type, damage, knockback, player.whoAmI);
}
return false;
}
public override void AddRecipes()
{
Recipe val = CreateRecipe();
val.AddRecipeGroup("FabusMod:TheRainbowDemon", 1);
val.AddIngredient(ModContent.ItemType<Items.CraftingIngredients.RainbowDust>(), 2);
val.AddTile(ModContent.TileType<global::FabusMod.Tiles.RainbowStation>());
val.Register();
}
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

@@ -0,0 +1,61 @@
using Microsoft.Xna.Framework;
using Terraria;
using Terraria.DataStructures;
using Terraria.ID;
using Terraria.ModLoader;
namespace FabusMod.Items.Weapons.RainbowDemon;
public class TheRainbowDemonMagic : ModItem
{
public override void SetStaticDefaults()
{
DisplayName.SetDefault("The Rainbow Demon - Magic");
Tooltip.SetDefault("[c/B6FF00:Autoshoots] \nUnleashes a barrage of oval-shaped rainbow projectiles \nDoes not require mana \nClass and projectiles fired can be changed via crafting \n[c/FF2B6E:Currently Unobtainable]");
}
public override void SetDefaults()
{
Item.damage = 82;
Item.noMelee = true;
Item.width = 82;
Item.height = 39;
Item.useTime = 4;
Item.useAnimation = 4;
Item.useStyle = ItemUseStyleID.Shoot;
Item.noMelee = true;
Item.knockBack = 0f;
Item.value = Item.sellPrice(40, 0, 0, 0);
Item.UseSound = SoundID.Item11;
Item.autoReuse = true;
Item.shoot = ProjectileID.PurificationPowder;
Item.shootSpeed = 25f;
Item.shoot = ModContent.ProjectileType<Projectiles.RainbowDemon.RainbowDemonMagicBall>();
Item.expert = true;
}
public override Vector2? HoldoutOffset()
{
return new Vector2(7f, -5f);
}
public override bool Shoot(Player player, EntitySource_ItemUse_WithAmmo source, Vector2 position, Vector2 velocity, int type, int damage, float knockback)
{
int numberProjectiles = 10;
for (int i = 0; i < numberProjectiles; i++)
{
Vector2 perturbedSpeed = Utils.RotatedByRandom(new Vector2(velocity.X, velocity.Y), (double)MathHelper.ToRadians(30f));
Projectile.NewProjectile(source, position.X, position.Y, perturbedSpeed.X, perturbedSpeed.Y, type, damage, knockback, player.whoAmI);
}
return false;
}
public override void AddRecipes()
{
Recipe val = CreateRecipe();
val.AddRecipeGroup("FabusMod:TheRainbowDemon", 1);
val.AddIngredient(ItemID.FragmentNebula, 2);
val.AddTile(ModContent.TileType<global::FabusMod.Tiles.RainbowStation>());
val.Register();
}
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

@@ -0,0 +1,61 @@
using Microsoft.Xna.Framework;
using Terraria;
using Terraria.DataStructures;
using Terraria.ID;
using Terraria.ModLoader;
namespace FabusMod.Items.Weapons.RainbowDemon;
public class TheRainbowDemonRanged : ModItem
{
public override void SetStaticDefaults()
{
DisplayName.SetDefault("The Rainbow Demon - Ranged");
Tooltip.SetDefault("[c/B6FF00:Autoshoots] \nUnleashes a barrage of rainbow arrows \nDoes not require ammo \nClass and projectiles fired can be changed via crafting \n[c/FF2B6E:Currently Unobtainable]");
}
public override void SetDefaults()
{
Item.damage = 82;
Item.noMelee = true;
Item.width = 82;
Item.height = 39;
Item.useTime = 4;
Item.useAnimation = 4;
Item.useStyle = ItemUseStyleID.Shoot;
Item.noMelee = true;
Item.knockBack = 0f;
Item.value = Item.sellPrice(40, 0, 0, 0);
Item.UseSound = SoundID.Item11;
Item.autoReuse = true;
Item.shoot = ProjectileID.PurificationPowder;
Item.shootSpeed = 25f;
Item.shoot = ModContent.ProjectileType<Projectiles.RainbowDemon.RainbowDemonArrow>();
Item.expert = true;
}
public override Vector2? HoldoutOffset()
{
return new Vector2(7f, -5f);
}
public override bool Shoot(Player player, EntitySource_ItemUse_WithAmmo source, Vector2 position, Vector2 velocity, int type, int damage, float knockback)
{
int numberProjectiles = 10;
for (int i = 0; i < numberProjectiles; i++)
{
Vector2 perturbedSpeed = Utils.RotatedByRandom(new Vector2(velocity.X, velocity.Y), (double)MathHelper.ToRadians(30f));
Projectile.NewProjectile(source, position.X, position.Y, perturbedSpeed.X, perturbedSpeed.Y, type, damage, knockback, player.whoAmI);
}
return false;
}
public override void AddRecipes()
{
Recipe val = CreateRecipe();
val.AddRecipeGroup("FabusMod:TheRainbowDemon", 1);
val.AddIngredient(ItemID.FragmentVortex, 2);
val.AddTile(ModContent.TileType<global::FabusMod.Tiles.RainbowStation>());
val.Register();
}
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 2.0 KiB

@@ -0,0 +1,60 @@
using Microsoft.Xna.Framework;
using Terraria;
using Terraria.DataStructures;
using Terraria.ID;
using Terraria.ModLoader;
namespace FabusMod.Items.Weapons.RainbowDemon;
public class TheRainbowDemonShredder : ModItem
{
public override void SetStaticDefaults()
{
DisplayName.SetDefault("The Rainbow Demon - Shredder");
Tooltip.SetDefault("[c/B6FF00:Autoshoots] \nUnleashes a barrage of rainbow axes \nClass and projectiles fired can be changed via crafting \n[c/FF2B6E:Currently Unobtainable]");
}
public override void SetDefaults()
{
Item.damage = 82;
Item.width = 82;
Item.height = 39;
Item.useTime = 4;
Item.useAnimation = 4;
Item.useStyle = ItemUseStyleID.Shoot;
Item.noMelee = true;
Item.knockBack = 0f;
Item.value = Item.sellPrice(40, 0, 0, 0);
Item.UseSound = SoundID.Item11;
Item.autoReuse = true;
Item.shoot = ProjectileID.PurificationPowder;
Item.shootSpeed = 25f;
Item.shoot = ModContent.ProjectileType<Projectiles.RainbowDemon.RainbowDemonShredderProj>();
Item.expert = true;
}
public override Vector2? HoldoutOffset()
{
return new Vector2(7f, -5f);
}
public override bool Shoot(Player player, EntitySource_ItemUse_WithAmmo source, Vector2 position, Vector2 velocity, int type, int damage, float knockback)
{
int numberProjectiles = 10;
for (int i = 0; i < numberProjectiles; i++)
{
Vector2 perturbedSpeed = Utils.RotatedByRandom(new Vector2(velocity.X, velocity.Y), (double)MathHelper.ToRadians(30f));
Projectile.NewProjectile(source, position.X, position.Y, perturbedSpeed.X, perturbedSpeed.Y, type, damage, knockback, player.whoAmI);
}
return false;
}
public override void AddRecipes()
{
Recipe val = CreateRecipe();
val.AddRecipeGroup("FabusMod:TheRainbowDemon", 1);
val.AddIngredient(ModContent.ItemType<Items.CraftingIngredients.RainbowDust>(), 2);
val.AddTile(ModContent.TileType<global::FabusMod.Tiles.RainbowStation>());
val.Register();
}
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

@@ -0,0 +1,62 @@
using Microsoft.Xna.Framework;
using Terraria;
using Terraria.DataStructures;
using Terraria.ID;
using Terraria.ModLoader;
namespace FabusMod.Items.Weapons.RainbowDemon;
public class TheRainbowDemonThrowing : ModItem
{
public override void SetStaticDefaults()
{
DisplayName.SetDefault("The Rainbow Demon - Throwing");
Tooltip.SetDefault("[c/B6FF00:Autoshoots] \nUnleashes a barrage of rainbow daggers \nDoes not require ammo \nClass and projectiles fired can be changed via crafting \n[c/FF2B6E:Currently Unobtainable]");
}
public override void SetDefaults()
{
Item.damage = 82;
Item.noMelee = true;
Item.width = 82;
Item.height = 39;
Item.useTime = 4;
Item.useAnimation = 4;
Item.useStyle = ItemUseStyleID.Shoot;
Item.noMelee = true;
Item.knockBack = 0f;
Item.value = Item.sellPrice(40, 0, 0, 0);
Item.UseSound = SoundID.Item11;
Item.autoReuse = true;
Item.shoot = ProjectileID.PurificationPowder;
Item.shootSpeed = 25f;
Item.shoot = ModContent.ProjectileType<Projectiles.RainbowDemon.RainbowDemonKnife>();
Item.expert = true;
}
public override Vector2? HoldoutOffset()
{
return new Vector2(7f, -5f);
}
public override bool Shoot(Player player, EntitySource_ItemUse_WithAmmo source, Vector2 position, Vector2 velocity, int type, int damage, float knockback)
{
int numberProjectiles = 10;
for (int i = 0; i < numberProjectiles; i++)
{
Vector2 perturbedSpeed = Utils.RotatedByRandom(new Vector2(velocity.X, velocity.Y), (double)MathHelper.ToRadians(30f));
Projectile.NewProjectile(source, position.X, position.Y, perturbedSpeed.X, perturbedSpeed.Y, type, damage, knockback, player.whoAmI);
}
return false;
}
public override void AddRecipes()
{
Recipe val = CreateRecipe();
val.AddRecipeGroup("FabusMod:TheRainbowDemon", 1);
val.AddIngredient(ItemID.FragmentSolar, 1);
val.AddIngredient(ItemID.FragmentVortex, 1);
val.AddTile(ModContent.TileType<global::FabusMod.Tiles.RainbowStation>());
val.Register();
}
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

+72
View File
@@ -0,0 +1,72 @@
using FabusMod.Projectiles;
using Microsoft.Xna.Framework;
using Terraria;
using Terraria.DataStructures;
using Terraria.ID;
using Terraria.ModLoader;
namespace FabusMod.Items.Weapons.Ranged.Bows;
public class LunarBow : ModItem
{
public override void SetStaticDefaults()
{
DisplayName.SetDefault("Lunar Bow");
Tooltip.SetDefault("[c/B6FF00:Autoshoots, doesn't require ammo]\nGrants the [c/13A2DA:Shattered Moon's Grace] buff when shooting, reducing fall speed\nUsing <right> while under max HP grants the [c/5EDF85:Shattered Moon's Blessing] buff, which has the following effects:\n - Heals the player rapidly for 2 seconds, but disables the use of items\n - Grants [c/9CE53B:Shattered Moon's Rejuvenation] after 2 seconds, healing 100 HP over 10 seconds\n[c/5EDF85:Shattered Moon's Blessing] has a cooldown of [c/CA4646:50 seconds] once the effect ends");
}
public override void SetDefaults()
{
Item.damage = 240;
Item.width = 27;
Item.height = 69;
Item.useTime = 9;
Item.useAnimation = 9;
Item.useStyle = ItemUseStyleID.Shoot;
Item.noMelee = true;
Item.knockBack = 0f;
Item.value = Item.sellPrice(0, 15, 60, 0);
Item.expert = true;
Item.UseSound = SoundID.Item5;
Item.autoReuse = true;
Item.shootSpeed = 50f;
Item.shoot = ModContent.ProjectileType<LunarBolt>();
}
public override bool Shoot(Player player, EntitySource_ItemUse_WithAmmo source, Vector2 position, Vector2 velocity, int type, int damage, float knockback)
{
if (player.altFunctionUse == 2)
{
if (!player.HasBuff(ModContent.BuffType<Buffs.LunarBow.ShatteredMoonsCurse>()) && player.statLife < player.statLifeMax2)
{
player.AddBuff(ModContent.BuffType<Buffs.LunarBow.ShatteredMoonsBlessing>(), 140, true);
}
player.AddBuff(ModContent.BuffType<Buffs.LunarBow.ShatteredMoonsGrace>(), 10, true);
}
else
{
player.AddBuff(ModContent.BuffType<Buffs.LunarBow.ShatteredMoonsGrace>(), 10, true);
}
return true;
}
public override bool AltFunctionUse(Player player)
{
return true;
}
public override Vector2? HoldoutOffset()
{
return new Vector2(4f, 0f);
}
public override void AddRecipes()
{
Recipe val = CreateRecipe();
val.AddIngredient(ItemID.LifeFruit, 5);
val.AddIngredient(ItemID.LifeCrystal, 5);
val.AddIngredient(ItemID.FragmentVortex, 14);
val.AddTile(TileID.LunarCraftingStation);
val.Register();
}
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

+71
View File
@@ -0,0 +1,71 @@
using FabusMod.Projectiles;
using Microsoft.Xna.Framework;
using Terraria;
using Terraria.DataStructures;
using Terraria.ID;
using Terraria.ModLoader;
namespace FabusMod.Items.Weapons.Ranged.Bows;
public class LunarRainBow : ModItem
{
public override void SetStaticDefaults()
{
DisplayName.SetDefault("Lunar Rain-Bow");
Tooltip.SetDefault("[c/B6FF00:Autoshoots, doesn't require ammo]\nGrants the [c/E6A6CF:Spectral Moon's Grace] buff when shooting, reducing fall speed and nullifying knockback \nUsing <right> while under max HP grants the [c/82E8E8:Spectral Moonlight] buff, which has the following effects:\n - Heals the player rapidly for 2 seconds and grants immunity, but disables the use of items\n - Grants [c/6DE5D8:Spectral Moon's Rejuvenation] after 2 seconds, healing 200 HP over 10 seconds and increasing ranged crit rate by 60\n[c/82E8E8:Spectral Moonlight] has a cooldown of [c/BF5E3B:50 seconds] once the effect ends");
}
public override void SetDefaults()
{
Item.damage = 320;
Item.width = 27;
Item.height = 69;
Item.useTime = 7;
Item.useAnimation = 7;
Item.useStyle = ItemUseStyleID.Shoot;
Item.noMelee = true;
Item.knockBack = 0f;
Item.value = Item.sellPrice(2, 70, 0, 0);
Item.expert = true;
Item.UseSound = SoundID.Item5;
Item.autoReuse = true;
Item.shootSpeed = 50f;
Item.shoot = ModContent.ProjectileType<SpectralMoonBolt>();
}
public override bool Shoot(Player player, EntitySource_ItemUse_WithAmmo source, Vector2 position, Vector2 velocity, int type, int damage, float knockback)
{
if (player.altFunctionUse == 2)
{
if (!player.HasBuff(ModContent.BuffType<Buffs.LunarBow.SpectralMoonsCurse>()) && player.statLife < player.statLifeMax2)
{
player.AddBuff(ModContent.BuffType<Buffs.LunarBow.SpectralMoonlight>(), 140, true);
}
player.AddBuff(ModContent.BuffType<Buffs.LunarBow.SpectralMoonsGrace>(), 10, true);
}
else
{
player.AddBuff(ModContent.BuffType<Buffs.LunarBow.SpectralMoonsGrace>(), 10, true);
}
return true;
}
public override bool AltFunctionUse(Player player)
{
return true;
}
public override Vector2? HoldoutOffset()
{
return new Vector2(4f, 0f);
}
public override void AddRecipes()
{
Recipe val = CreateRecipe();
val.AddIngredient(ModContent.ItemType<LunarBow>());
val.AddIngredient(ModContent.ItemType<Bars.RainbowChunk>(), 14);
val.AddTile(ModContent.TileType<global::FabusMod.Tiles.RainbowStation>());
val.Register();
}
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

+60
View File
@@ -0,0 +1,60 @@
using FabusMod.Projectiles.Arrows;
using Microsoft.Xna.Framework;
using Terraria;
using Terraria.DataStructures;
using Terraria.ID;
using Terraria.ModLoader;
namespace FabusMod.Items.Weapons.Ranged.Bows;
public class PiercingBow : ModItem
{
public override void SetStaticDefaults()
{
DisplayName.SetDefault("Piercing Bow");
Tooltip.SetDefault("Converts Wooden Arrows into Piercing Arrows");
}
public override void SetDefaults()
{
Item.damage = 10;
Item.width = 18;
Item.height = 32;
Item.useTime = 27;
Item.useAnimation = 27;
Item.useStyle = ItemUseStyleID.Shoot;
Item.noMelee = true;
Item.knockBack = 2f;
Item.value = Item.sellPrice(0, 0, 15, 0);
Item.rare = ItemRarityID.White;
Item.UseSound = SoundID.Item5;
Item.autoReuse = false;
Item.shoot = ProjectileID.PurificationPowder;
Item.shootSpeed = 7f;
Item.useAmmo = AmmoID.Arrow;
}
public override bool Shoot(Player player, EntitySource_ItemUse_WithAmmo source, Vector2 position, Vector2 velocity, int type, int damage, float knockback)
{
if (type == 1)
{
type = ModContent.ProjectileType<PiercingArrow>();
}
return true;
}
public override void AddRecipes()
{
Recipe val = CreateRecipe();
val.AddIngredient(ItemID.WoodenBow, 1);
val.AddIngredient(ItemID.IronBow, 1);
val.AddTile(TileID.Anvils);
val.Register();
Recipe val2 = CreateRecipe();
val2.AddIngredient(ItemID.WoodenBow, 1);
val2.AddIngredient(ItemID.LeadBow, 1);
val2.AddTile(TileID.Anvils);
val2.Register();
}
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 480 B

@@ -0,0 +1,70 @@
using FabusMod.Projectiles.Arrows;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
namespace FabusMod.Items.Weapons.Ranged.Bows.StormBows;
public class DemonsBow : ModItem
{
public override void SetStaticDefaults()
{
DisplayName.SetDefault("Demon's Bow");
Tooltip.SetDefault("[c/B6FF00:Autoshoots] \nDoesn't use ammo \nAlways shoots Hellfire Arrows (except with <right>) \nPressing <right> fires 6 demonic arrows in quick succession, but it has lower damage and a 2 second cooldown");
}
public override void SetDefaults()
{
Item.damage = 34;
Item.width = 18;
Item.height = 38;
Item.useTime = 16;
Item.useAnimation = 16;
Item.useStyle = ItemUseStyleID.Shoot;
Item.noMelee = true;
Item.knockBack = 3f;
Item.value = Item.sellPrice(0, 3, 0, 0);
Item.expert = true;
Item.UseSound = SoundID.Item5;
Item.autoReuse = true;
Item.shootSpeed = 16f;
}
public override bool AltFunctionUse(Player player)
{
return true;
}
public override bool CanUseItem(Player player)
{
if (player.altFunctionUse == 2)
{
Item.useStyle = ItemUseStyleID.Shoot;
Item.useTime = 4;
Item.useAnimation = 24;
Item.damage = 30;
Item.reuseDelay = 60;
Item.shoot = ModContent.ProjectileType<DemonArrow>();
}
else
{
Item.reuseDelay = 0;
Item.useStyle = ItemUseStyleID.Shoot;
Item.useTime = 16;
Item.useAnimation = 16;
Item.damage = 34;
Item.shoot = ProjectileID.HellfireArrow;
}
return CanUseItem(player);
}
public override void AddRecipes()
{
Recipe val = CreateRecipe();
val.AddIngredient(ModContent.ItemType<StormBow>());
val.AddIngredient(ModContent.ItemType<StonePlatedBow>());
val.AddIngredient(ItemID.HellstoneBar, 6);
val.AddTile(TileID.Anvils);
val.Register();
}
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 489 B

@@ -0,0 +1,69 @@
using FabusMod.Projectiles.Arrows;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
namespace FabusMod.Items.Weapons.Ranged.Bows.StormBows;
public class GoldenKabuki : ModItem
{
public override void SetStaticDefaults()
{
DisplayName.SetDefault("Golden Kabuki");
Tooltip.SetDefault("[c/B6FF00:Autoshoots] \nDoesn't use ammo \nAlways shoots Holy Arrows (except with <right>) \nPressing <right> fires 16 spiritual, golden arrows in quick succession, but it has lower damage and a 1 second cooldown");
}
public override void SetDefaults()
{
Item.damage = 58;
Item.width = 18;
Item.height = 38;
Item.useTime = 12;
Item.useAnimation = 12;
Item.useStyle = ItemUseStyleID.Shoot;
Item.noMelee = true;
Item.knockBack = 3f;
Item.value = Item.sellPrice(0, 22, 0, 0);
Item.expert = true;
Item.UseSound = SoundID.Item5;
Item.autoReuse = true;
Item.shootSpeed = 18f;
}
public override bool AltFunctionUse(Player player)
{
return true;
}
public override bool CanUseItem(Player player)
{
if (player.altFunctionUse == 2)
{
Item.useStyle = ItemUseStyleID.Shoot;
Item.useTime = 2;
Item.useAnimation = 32;
Item.damage = 54;
Item.reuseDelay = 30;
Item.shoot = ModContent.ProjectileType<GoldenSpiritArrow>();
}
else
{
Item.reuseDelay = 0;
Item.useStyle = ItemUseStyleID.Shoot;
Item.useTime = 12;
Item.useAnimation = 12;
Item.damage = 58;
Item.shoot = ProjectileID.HolyArrow;
}
return CanUseItem(player);
}
public override void AddRecipes()
{
Recipe val = CreateRecipe();
val.AddIngredient(ModContent.ItemType<Kabuki>());
val.AddIngredient(ModContent.ItemType<Items.CraftingIngredients.GoddessGold>(), 6);
val.AddTile(TileID.MythrilAnvil);
val.Register();
}
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 609 B

@@ -0,0 +1,69 @@
using FabusMod.Projectiles.Arrows;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
namespace FabusMod.Items.Weapons.Ranged.Bows.StormBows;
public class Kabuki : ModItem
{
public override void SetStaticDefaults()
{
DisplayName.SetDefault("Kabuki");
Tooltip.SetDefault("[c/B6FF00:Autoshoots] \nDoesn't use ammo \nAlways shoots Hellfire Arrows (except with <right>) \nPressing <right> fires 8 demonic arrows in quick succession, but it has lower damage and a 1.2 second cooldown");
}
public override void SetDefaults()
{
Item.damage = 42;
Item.width = 18;
Item.height = 38;
Item.useTime = 14;
Item.useAnimation = 14;
Item.useStyle = ItemUseStyleID.Shoot;
Item.noMelee = true;
Item.knockBack = 3f;
Item.value = Item.sellPrice(0, 5, 40, 0);
Item.expert = true;
Item.UseSound = SoundID.Item5;
Item.autoReuse = true;
Item.shootSpeed = 18f;
}
public override bool AltFunctionUse(Player player)
{
return true;
}
public override bool CanUseItem(Player player)
{
if (player.altFunctionUse == 2)
{
Item.useStyle = ItemUseStyleID.Shoot;
Item.useTime = 3;
Item.useAnimation = 24;
Item.damage = 38;
Item.reuseDelay = 36;
Item.shoot = ModContent.ProjectileType<DemonArrow>();
}
else
{
Item.reuseDelay = 0;
Item.useStyle = ItemUseStyleID.Shoot;
Item.useTime = 14;
Item.useAnimation = 14;
Item.damage = 42;
Item.shoot = ProjectileID.HellfireArrow;
}
return CanUseItem(player);
}
public override void AddRecipes()
{
Recipe val = CreateRecipe();
val.AddIngredient(ModContent.ItemType<DemonsBow>());
val.AddIngredient(ItemID.HallowedBar, 6);
val.AddTile(TileID.MythrilAnvil);
val.Register();
}
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 605 B

@@ -0,0 +1,69 @@
using FabusMod.Projectiles.Arrows;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
namespace FabusMod.Items.Weapons.Ranged.Bows.StormBows;
public class RainBow : ModItem
{
public override void SetStaticDefaults()
{
DisplayName.SetDefault("Rain-Bow");
Tooltip.SetDefault("[c/B6FF00:Autoshoots] \nDoesn't use ammo \nAlways shoots two Rainbow Arrows in quick succession (except with <right>) \nPressing <right> fires 18 Holy Arrows in quick succession, but it has lower damage and a 1 second cooldown");
}
public override void SetDefaults()
{
Item.damage = 90;
Item.width = 30;
Item.height = 50;
Item.useTime = 3;
Item.useAnimation = 6;
Item.useStyle = ItemUseStyleID.Shoot;
Item.noMelee = true;
Item.knockBack = 3f;
Item.value = Item.sellPrice(1, 50, 0, 0);
Item.expert = true;
Item.UseSound = SoundID.Item5;
Item.autoReuse = true;
Item.shootSpeed = 20f;
}
public override bool AltFunctionUse(Player player)
{
return true;
}
public override bool CanUseItem(Player player)
{
if (player.altFunctionUse == 2)
{
Item.useStyle = ItemUseStyleID.Shoot;
Item.useTime = 2;
Item.useAnimation = 40;
Item.damage = 84;
Item.reuseDelay = 30;
Item.shoot = ProjectileID.HolyArrow;
}
else
{
Item.reuseDelay = 0;
Item.useStyle = ItemUseStyleID.Shoot;
Item.useTime = 3;
Item.useAnimation = 6;
Item.damage = 90;
Item.shoot = ModContent.ProjectileType<RainbowArrow>();
}
return CanUseItem(player);
}
public override void AddRecipes()
{
Recipe val = CreateRecipe();
val.AddIngredient(ModContent.ItemType<GoldenKabuki>());
val.AddIngredient(ModContent.ItemType<Bars.RainbowChunk>(), 6);
val.AddTile(ModContent.TileType<global::FabusMod.Tiles.RainbowStation>());
val.Register();
}
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 614 B

@@ -0,0 +1,41 @@
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
namespace FabusMod.Items.Weapons.Ranged.Bows.StormBows;
public class StonePlatedBow : ModItem
{
public override void SetStaticDefaults()
{
DisplayName.SetDefault("Stone-Plated Bow");
Tooltip.SetDefault("Doesn't use ammo\nAlways shoots Wooden Arrows");
}
public override void SetDefaults()
{
Item.damage = 5;
Item.width = 18;
Item.height = 38;
Item.useTime = 32;
Item.useAnimation = 32;
Item.useStyle = ItemUseStyleID.Shoot;
Item.noMelee = true;
Item.knockBack = 0f;
Item.value = Item.sellPrice(0, 0, 5, 60);
Item.UseSound = SoundID.Item5;
Item.autoReuse = false;
Item.shootSpeed = 9f;
Item.shoot = ProjectileID.WoodenArrowFriendly;
}
public override void AddRecipes()
{
Recipe val = CreateRecipe();
val.AddIngredient(ModContent.ItemType<Items.WeaponParts.UntreatedBowPart>(), 2);
val.AddIngredient(ItemID.StoneBlock, 4);
val.AddIngredient(ItemID.FallenStar, 1);
val.AddTile(ModContent.TileType<global::FabusMod.Tiles.ReinforcedWorkBench>());
val.Register();
}
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 518 B

@@ -0,0 +1,60 @@
using FabusMod.Projectiles.Arrows;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
namespace FabusMod.Items.Weapons.Ranged.Bows.StormBows;
public class StormBow : ModItem
{
public override void SetStaticDefaults()
{
DisplayName.SetDefault("Storm Bow");
Tooltip.SetDefault("[c/B6FF00:Autoshoots] \nDoesn't use ammo \nAlways shoots Wooden Arrows (except with <right>) \nPressing <right> fires 6 Storm Arrows in quick succession, but it has lower damage and a 3 second cooldown");
}
public override void SetDefaults()
{
Item.damage = 24;
Item.width = 18;
Item.height = 38;
Item.useTime = 18;
Item.useAnimation = 18;
Item.useStyle = ItemUseStyleID.Shoot;
Item.noMelee = true;
Item.knockBack = 2f;
Item.value = Item.sellPrice(0, 0, 60, 0);
Item.expert = true;
Item.UseSound = SoundID.Item5;
Item.autoReuse = true;
Item.shootSpeed = 16f;
}
public override bool AltFunctionUse(Player player)
{
return true;
}
public override bool CanUseItem(Player player)
{
if (player.altFunctionUse == 2)
{
Item.useStyle = ItemUseStyleID.Shoot;
Item.useTime = 4;
Item.useAnimation = 24;
Item.damage = 24;
Item.reuseDelay = 90;
Item.shoot = ModContent.ProjectileType<StormArrow>();
}
else
{
Item.reuseDelay = 0;
Item.useStyle = ItemUseStyleID.Shoot;
Item.useTime = 18;
Item.useAnimation = 18;
Item.damage = 28;
Item.shoot = ProjectileID.WoodenArrowFriendly;
}
return CanUseItem(player);
}
}

Some files were not shown because too many files have changed in this diff Show More