Commit of decompiled and "updated" code.
@@ -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();
|
||||
}
|
||||
}
|
||||
|
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();
|
||||
}
|
||||
}
|
||||
|
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();
|
||||
}
|
||||
}
|
||||
|
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();
|
||||
}
|
||||
}
|
||||
|
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();
|
||||
}
|
||||
}
|
||||
|
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();
|
||||
}
|
||||
}
|
||||
|
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();
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 1009 B |