Files
CalamityModPublic/Items/Weapons/Magic/Genisis.cs
T
Andrew Marheine e1cac76818 1 - Buffed Apoc Array, Asteroid Staff, Augur, Genisis, Nuclear Fury, Ultra Liquidator, Ark of the Elements, Avalanche, Devastation, Elemental Shiv, Gilded Proboscis, Greatsword of Judgement, Plague Keeper, Elemental Lance, Stellar Contempt, Clockwork Bow, Elemental Eruption, Golden Eagle, Disseminator, Onyx Chain Blaster, Planetary Annihilation, Pride Hunter's Plannar Ripper, Shredder, Starfleet, Hell's Sun, Lunar Kunai, Utensil Poker, Lunar Flare and Meowmere.
2 - Nerfed Star Wrath, Terrarian, Mad Alchemist Cocktail alt fire, Rouge Slash, Omega Biome Blade, Solstice Claymore, and Elemental Disk.
3 - Increased Golem despawn range in rev+.
4 - Fixed Nuclear Fury projectile drawing bug.
5 - Thorn Blossom only drains 3 HP instead of 5.
6 - Elemental Lance reworked to have projectiles split sooner.
2020-11-27 00:06:15 -06:00

70 lines
2.5 KiB
C#

using CalamityMod.Items.Materials;
using CalamityMod.Projectiles.Magic;
using Microsoft.Xna.Framework;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
namespace CalamityMod.Items.Weapons.Magic
{
public class Genisis : ModItem
{
public override void SetStaticDefaults()
{
DisplayName.SetDefault("Genisis");
Tooltip.SetDefault("Fires a Y-shaped beam of destructive energy and a spread of lasers");
}
public override void SetDefaults()
{
item.damage = 57;
item.magic = true;
item.mana = 4;
item.width = 74;
item.height = 28;
item.useTime = 4;
item.useAnimation = 4;
item.useStyle = ItemUseStyleID.HoldingOut;
item.noMelee = true;
item.knockBack = 1.5f;
item.value = Item.buyPrice(1, 20, 0, 0);
item.rare = 10;
item.UseSound = SoundID.Item33;
item.autoReuse = true;
item.shootSpeed = 6f;
item.shoot = ModContent.ProjectileType<BigBeamofDeath>();
item.Calamity().customRarity = CalamityRarity.Turquoise; //12
}
public override Vector2? HoldoutOffset()
{
return new Vector2(-5, 0);
}
public override bool Shoot(Player player, ref Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack)
{
Projectile.NewProjectile(position.X, position.Y, speedX, speedY, type, damage, knockBack, player.whoAmI, 0f, 0f);
int num6 = 3;
float SpeedX = speedX + (float)Main.rand.Next(-20, 21) * 0.05f;
float SpeedY = speedY + (float)Main.rand.Next(-20, 21) * 0.05f;
for (int index = 0; index < num6; ++index)
{
int projectile = Projectile.NewProjectile(position.X, position.Y, SpeedX * 1.05f, SpeedY * 1.05f, ProjectileID.LaserMachinegunLaser, (int)(damage * 0.65), knockBack * 0.6f, player.whoAmI, 0f, 0f);
Main.projectile[projectile].timeLeft = 120;
}
return false;
}
public override void AddRecipes()
{
ModRecipe recipe = new ModRecipe(mod);
recipe.AddIngredient(ItemID.LaserMachinegun);
recipe.AddIngredient(ItemID.LunarBar, 5);
recipe.AddIngredient(ModContent.ItemType<BarofLife>(), 5);
recipe.AddTile(TileID.LunarCraftingStation);
recipe.SetResult(this);
recipe.AddRecipe();
}
}
}