Merge branch 'master' of https://github.com/UncleDanny/CalamityMod
No files matched your search
@@ -33,7 +33,7 @@ namespace CalamityMod.Items.Accessories
|
||||
public override void AddRecipes()
|
||||
{
|
||||
ModRecipe recipe = new ModRecipe(mod);
|
||||
recipe.AddIngredient(ItemID.DemoniteBar, 8);
|
||||
recipe.AddRecipeGroup("AnyEvilBar", 8);
|
||||
recipe.AddIngredient(ItemID.Silk, 10);
|
||||
recipe.AddRecipeGroup("Boss2Material", 3);
|
||||
recipe.AddTile(TileID.TinkerersWorkbench);
|
||||
|
||||
@@ -292,6 +292,8 @@ namespace CalamityMod.Items
|
||||
{
|
||||
double damageMult = 1.0;
|
||||
damageMult = (double)(item.useTime) / 30.0;
|
||||
if (damageMult < 0.35)
|
||||
damageMult = 0.35;
|
||||
|
||||
double newDamage = (double)damage * 2 * damageMult;
|
||||
|
||||
|
||||
@@ -13,7 +13,6 @@ namespace CalamityMod.Items.Weapons.Magic
|
||||
{
|
||||
DisplayName.SetDefault("Clamor Noctus");
|
||||
Tooltip.SetDefault(@"Let the sky fall
|
||||
|
||||
Fires night wyverns and stars from the sky that stick to enemies and tiles and explode");
|
||||
Item.staff[item.type] = true;
|
||||
}
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
using CalamityMod.Projectiles.Magic;
|
||||
using CalamityMod.Items.Materials;
|
||||
using Microsoft.Xna.Framework;
|
||||
using System;
|
||||
using Terraria;
|
||||
@@ -13,14 +14,13 @@ namespace CalamityMod.Items.Weapons.Magic
|
||||
{
|
||||
DisplayName.SetDefault("Wyvern's Call");
|
||||
Tooltip.SetDefault(@"I call upon the mythical Wyvern to shower the lands with its grace
|
||||
|
||||
Fires wyverns and colored feathers from the sky that stick to enemies and tiles and explode");
|
||||
Item.staff[item.type] = true;
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
item.damage = 50;
|
||||
item.damage = 30;
|
||||
item.magic = true;
|
||||
item.mana = 10;
|
||||
item.width = 52;
|
||||
@@ -116,7 +116,7 @@ Fires wyverns and colored feathers from the sky that stick to enemies and tiles
|
||||
return false;
|
||||
}
|
||||
|
||||
/*public override void AddRecipes()
|
||||
public override void AddRecipes()
|
||||
{
|
||||
ModRecipe recipe = new ModRecipe(mod);
|
||||
recipe.AddIngredient(ItemID.SoulofFlight, 15);
|
||||
@@ -125,6 +125,6 @@ Fires wyverns and colored feathers from the sky that stick to enemies and tiles
|
||||
recipe.AddTile(TileID.MythrilAnvil);
|
||||
recipe.SetResult(this);
|
||||
recipe.AddRecipe();
|
||||
}*/
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -17,7 +17,7 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
|
||||
//Weapon attribute constants
|
||||
|
||||
public static readonly int BaseDamage = 11145;
|
||||
public static readonly int BaseDamage = 5660;
|
||||
|
||||
public static readonly float TrueMeleeBoost = 2.5f;
|
||||
|
||||
|
||||
@@ -70,7 +70,7 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
{
|
||||
float SpeedX = speedX + (float)Main.rand.Next(-50, 51) * 0.05f;
|
||||
float SpeedY = speedY + (float)Main.rand.Next(-50, 51) * 0.05f;
|
||||
int flare = Projectile.NewProjectile(position.X, position.Y, SpeedX, SpeedY, type, (int)((double)damage * 1.6), knockBack, player.whoAmI, 0.0f, 0.0f);
|
||||
int flare = Projectile.NewProjectile(position.X, position.Y, SpeedX, SpeedY, type, (int)((double)damage * 1.4), knockBack, player.whoAmI, 0.0f, 0.0f);
|
||||
Main.projectile[flare].penetrate = 1;
|
||||
Main.projectile[flare].timeLeft = 600;
|
||||
Main.projectile[flare].Calamity().forceRanged = true;
|
||||
@@ -87,6 +87,7 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
int projectile = Projectile.NewProjectile(position.X, position.Y, SpeedX, SpeedY, type, damage, knockBack, player.whoAmI, 0.0f, 0.0f);
|
||||
Main.projectile[projectile].Calamity().forceRanged = true;
|
||||
Main.projectile[projectile].timeLeft = 200;
|
||||
Main.projectile[projectile].penetrate = 3;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -16,12 +16,12 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
item.damage = 106;
|
||||
item.damage = 90;
|
||||
item.ranged = true;
|
||||
item.width = 40;
|
||||
item.height = 70;
|
||||
item.useTime = 20;
|
||||
item.useAnimation = 20;
|
||||
item.useTime = 22;
|
||||
item.useAnimation = 22;
|
||||
item.useStyle = 5;
|
||||
item.noMelee = true;
|
||||
item.knockBack = 8f;
|
||||
|
||||
@@ -0,0 +1,52 @@
|
||||
using CalamityMod.Projectiles.Rogue;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Items.Weapons.Rogue
|
||||
{
|
||||
public class BurningStrife : RogueWeapon
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Burning Strife");
|
||||
Tooltip.SetDefault("Throws a shadowflame spiky ball that bursts into flames\n" +
|
||||
"Stealth Strikes make the ball linger and explode more violently\n" +
|
||||
"'Definitely not pocket safe'");
|
||||
}
|
||||
|
||||
public override void SafeSetDefaults()
|
||||
{
|
||||
item.width = 16;
|
||||
item.height = 28;
|
||||
item.UseSound = SoundID.Item1;
|
||||
item.useStyle = ItemUseStyleID.SwingThrow;
|
||||
item.value = Item.buyPrice(0, 36, 0, 0);
|
||||
item.rare = 5;
|
||||
item.autoReuse = true;
|
||||
item.noUseGraphic = true;
|
||||
item.noMelee = true;
|
||||
|
||||
item.useAnimation = 25;
|
||||
item.useTime = 25;
|
||||
item.damage = 50;
|
||||
item.crit = 8;
|
||||
item.shootSpeed = 8f;
|
||||
item.shoot = ModContent.ProjectileType<BurningStrifeProj>();
|
||||
|
||||
item.Calamity().rogue = true;
|
||||
}
|
||||
|
||||
public override bool Shoot(Player player, ref Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack)
|
||||
{
|
||||
int proj = Projectile.NewProjectile(position, new Vector2(speedX, speedY), ModContent.ProjectileType<BurningStrifeProj>(), damage, knockBack, player.whoAmI);
|
||||
if (player.Calamity().StealthStrikeAvailable())
|
||||
{
|
||||
Main.projectile[proj].Calamity().stealthStrike = true;
|
||||
Main.projectile[proj].penetrate = 8;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 465 B |
@@ -8,7 +8,7 @@ namespace CalamityMod.Items.Weapons.Rogue
|
||||
{
|
||||
public class ConsecratedWater : RogueWeapon
|
||||
{
|
||||
public const int BaseDamage = 55;
|
||||
public const int BaseDamage = 48;
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Consecrated Water");
|
||||
|
||||
@@ -18,7 +18,7 @@ namespace CalamityMod.Items.Weapons.Rogue
|
||||
public override void SafeSetDefaults()
|
||||
{
|
||||
item.width = 32;
|
||||
item.damage = 18;
|
||||
item.damage = 24;
|
||||
item.noMelee = true;
|
||||
item.noUseGraphic = true;
|
||||
item.consumable = true;
|
||||
@@ -30,7 +30,7 @@ namespace CalamityMod.Items.Weapons.Rogue
|
||||
item.autoReuse = true;
|
||||
item.height = 30;
|
||||
item.maxStack = 999;
|
||||
item.value = Item.buyPrice(0, 1, 0, 0);
|
||||
item.value = Item.buyPrice(0, 0, 5, 0);
|
||||
item.rare = 3;
|
||||
item.shoot = ModContent.ProjectileType<InfernalKrisProjectile>();
|
||||
item.shootSpeed = 15f;
|
||||
@@ -48,7 +48,7 @@ namespace CalamityMod.Items.Weapons.Rogue
|
||||
return true;
|
||||
}
|
||||
|
||||
/*public override void AddRecipes()
|
||||
public override void AddRecipes()
|
||||
{
|
||||
ModRecipe recipe = new ModRecipe(mod);
|
||||
recipe.AddIngredient(ItemID.HellstoneBar);
|
||||
@@ -56,6 +56,6 @@ namespace CalamityMod.Items.Weapons.Rogue
|
||||
recipe.AddTile(TileID.Anvils);
|
||||
recipe.SetResult(this, 100);
|
||||
recipe.AddRecipe();
|
||||
}*/
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,50 @@
|
||||
using CalamityMod.Items.Materials;
|
||||
using CalamityMod.Projectiles.Rogue;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Items.Weapons.Rogue
|
||||
{
|
||||
public class LatcherMine : RogueWeapon
|
||||
{
|
||||
public const int BaseDamage = 50;
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Latcher Mine");
|
||||
Tooltip.SetDefault("Sticks to enemies on hit and detonates after 3 seconds.\n" +
|
||||
"Breaks upon hitting blocks\n" +
|
||||
"Stealth Strike Effect: On explosion, fire and shrapnel are released\n" +
|
||||
"Stealth strike mines can stick to the ground and last much longer when doing so");
|
||||
}
|
||||
|
||||
public override void SafeSetDefaults()
|
||||
{
|
||||
item.height = 32;
|
||||
item.width = 26;
|
||||
item.damage = BaseDamage;
|
||||
item.noMelee = true;
|
||||
item.consumable = true;
|
||||
item.noUseGraphic = true;
|
||||
item.useAnimation = item.useTime = 15;
|
||||
item.useStyle = ItemUseStyleID.SwingThrow;
|
||||
item.knockBack = 6f;
|
||||
item.UseSound = SoundID.Item1;
|
||||
item.autoReuse = true;
|
||||
item.maxStack = 999;
|
||||
item.value = Item.buyPrice(0, 0, 3, 0);
|
||||
item.rare = 5;
|
||||
item.shoot = ModContent.ProjectileType<LatcherMineProjectile>();
|
||||
item.shootSpeed = 10f;
|
||||
item.Calamity().rogue = true;
|
||||
}
|
||||
|
||||
public override bool Shoot(Player player, ref Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack)
|
||||
{
|
||||
int stealth = Projectile.NewProjectile(position, new Vector2(speedX, speedY), type, damage, knockBack, player.whoAmI);
|
||||
Main.projectile[stealth].Calamity().stealthStrike = player.Calamity().StealthStrikeAvailable();
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 538 B |
@@ -0,0 +1,59 @@
|
||||
using CalamityMod.Projectiles.Rogue;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Items.Weapons.Rogue
|
||||
{
|
||||
public class MetalMonstrosity : RogueWeapon
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Metal Monstrosity");
|
||||
Tooltip.SetDefault("Hurls a heavy metal ball that shatters on impact \n" +
|
||||
"Stealth Strikes makes the ball release spikes as it travels \n" +
|
||||
"'This has to hurt'");
|
||||
}
|
||||
|
||||
public override void SafeSetDefaults()
|
||||
{
|
||||
item.width = 32;
|
||||
item.height = 32;
|
||||
item.useStyle = ItemUseStyleID.SwingThrow;
|
||||
item.autoReuse = true;
|
||||
item.noUseGraphic = true;
|
||||
item.noMelee = true;
|
||||
item.UseSound = SoundID.Item1;
|
||||
item.rare = 3;
|
||||
item.value = Item.buyPrice(0, 4, 0, 0);
|
||||
|
||||
item.damage = 40;
|
||||
item.useAnimation = 40;
|
||||
item.useTime = 40;
|
||||
item.knockBack = 7f;
|
||||
item.shoot = ModContent.ProjectileType<MetalChunk>();
|
||||
item.shootSpeed = 7f;
|
||||
|
||||
item.Calamity().rogue = true;
|
||||
}
|
||||
|
||||
public override bool Shoot(Player player, ref Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack)
|
||||
{
|
||||
int proj = Projectile.NewProjectile(position, new Vector2(speedX, speedY), ModContent.ProjectileType<MetalChunk>(), damage, knockBack, player.whoAmI, 0f, 0f);
|
||||
if (player.Calamity().StealthStrikeAvailable())
|
||||
Main.projectile[proj].Calamity().stealthStrike = true;
|
||||
return false;
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
ModRecipe recipe = new ModRecipe(mod);
|
||||
recipe.AddIngredient(ItemID.SpikyBall, 500);
|
||||
recipe.AddIngredient(ItemID.Spike, 80);
|
||||
recipe.AddTile(TileID.Anvils);
|
||||
recipe.SetResult(this);
|
||||
recipe.AddRecipe();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 727 B |
@@ -21,7 +21,7 @@ namespace CalamityMod.Items.Weapons.Rogue
|
||||
public override void SafeSetDefaults()
|
||||
{
|
||||
item.width = 18;
|
||||
item.damage = 30;
|
||||
item.damage = 60;
|
||||
item.noMelee = true;
|
||||
item.noUseGraphic = true;
|
||||
item.useAnimation = 20;
|
||||
@@ -35,7 +35,7 @@ namespace CalamityMod.Items.Weapons.Rogue
|
||||
item.value = Item.buyPrice(0, 3, 60, 0);
|
||||
item.rare = 6;
|
||||
item.shoot = ModContent.ProjectileType<NychthemeronProjectile>();
|
||||
item.shootSpeed = 5f;
|
||||
item.shootSpeed = 6f;
|
||||
item.Calamity().rogue = true;
|
||||
}
|
||||
|
||||
@@ -84,17 +84,17 @@ namespace CalamityMod.Items.Weapons.Rogue
|
||||
return player.ownedProjectileCounts[item.shoot] < item.stack && player.altFunctionUse != 2;
|
||||
}
|
||||
|
||||
//public override void AddRecipes()
|
||||
//{
|
||||
// ModRecipe recipe = new ModRecipe(mod);
|
||||
// recipe.AddIngredient(ItemID.SpikyBall, 15);
|
||||
// recipe.AddIngredient(ItemID.LightShard);
|
||||
// recipe.AddIngredient(ItemID.DarkShard);
|
||||
// recipe.AddIngredient(ItemID.HallowedBar, 2);
|
||||
// recipe.AddTile(TileID.Anvils);
|
||||
// recipe.SetResult(this);
|
||||
// recipe.AddRecipe();
|
||||
//}
|
||||
public override void AddRecipes()
|
||||
{
|
||||
ModRecipe recipe = new ModRecipe(mod);
|
||||
recipe.AddIngredient(ItemID.SpikyBall, 30);
|
||||
recipe.AddIngredient(ItemID.LightShard);
|
||||
recipe.AddIngredient(ItemID.DarkShard);
|
||||
recipe.AddIngredient(ItemID.HallowedBar, 2);
|
||||
recipe.AddTile(TileID.Anvils);
|
||||
recipe.SetResult(this);
|
||||
recipe.AddRecipe();
|
||||
}
|
||||
|
||||
private static void CreateOrbs(Vector2 position, int damage, float knockBack, int projectileID, Player player)
|
||||
{
|
||||
|
||||
@@ -11,7 +11,7 @@ namespace CalamityMod.Items.Weapons.Rogue
|
||||
{
|
||||
public class PoisonPack : RogueWeapon
|
||||
{
|
||||
private static int damage = 35;
|
||||
private static int damage = 20;
|
||||
private static float knockBack = 1.8f;
|
||||
|
||||
public override void SetStaticDefaults()
|
||||
|
||||
@@ -40,7 +40,7 @@ namespace CalamityMod.Items.Weapons.Rogue
|
||||
{
|
||||
if (player.Calamity().StealthStrikeAvailable())
|
||||
{
|
||||
float spreadAngle = MathHelper.ToRadians(10f);
|
||||
float spreadAngle = MathHelper.ToRadians(7.5f);
|
||||
Vector2 direction = new Vector2(speedX, speedY);
|
||||
Vector2 baseDirection = direction.RotatedBy(-spreadAngle);
|
||||
|
||||
|
||||
@@ -20,7 +20,7 @@ namespace CalamityMod.Items.Weapons.Rogue
|
||||
public override void SafeSetDefaults()
|
||||
{
|
||||
item.width = 86;
|
||||
item.damage = 150;
|
||||
item.damage = 175;
|
||||
item.noMelee = true;
|
||||
item.noUseGraphic = true;
|
||||
item.useAnimation = 38;
|
||||
|
||||
@@ -8,30 +8,32 @@ namespace CalamityMod.Items.Weapons.Rogue
|
||||
{
|
||||
public class TerrorTalons : RogueWeapon
|
||||
{
|
||||
private float sign = 1f;
|
||||
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Terror Talons");
|
||||
Tooltip.SetDefault("Fires small wavering claws\n" +
|
||||
"Stealth strikes launch a bigger, faster claw that flies straight and pierces indefinitely");
|
||||
"Stealth strikes launch a large, high speed claw which pierces");
|
||||
}
|
||||
|
||||
public override void SafeSetDefaults()
|
||||
{
|
||||
item.width = 40;
|
||||
item.damage = 103;
|
||||
item.damage = 47;
|
||||
item.noMelee = true;
|
||||
item.noUseGraphic = true;
|
||||
item.useAnimation = 11;
|
||||
item.useStyle = 1;
|
||||
item.useTime = 11;
|
||||
item.useTime = 7;
|
||||
item.useAnimation = 7;
|
||||
item.knockBack = 3f;
|
||||
item.UseSound = SoundID.Item1;
|
||||
item.UseSound = SoundID.Item39;
|
||||
item.autoReuse = true;
|
||||
item.height = 24;
|
||||
item.value = Item.buyPrice(0, 48, 0, 0);
|
||||
item.rare = 6;
|
||||
item.shoot = ModContent.ProjectileType<TalonSmallProj>();
|
||||
item.shootSpeed = 12.5f;
|
||||
item.shootSpeed = 10.5f;
|
||||
item.Calamity().rogue = true;
|
||||
}
|
||||
|
||||
@@ -39,15 +41,20 @@ namespace CalamityMod.Items.Weapons.Rogue
|
||||
{
|
||||
if (player.Calamity().StealthStrikeAvailable()) //setting the stealth strike
|
||||
{
|
||||
float stealthDamageMult = 1.1f;
|
||||
float stealthDamageMult = 3.25f;
|
||||
int stealth = Projectile.NewProjectile(position, new Vector2(speedX, speedY), ModContent.ProjectileType<TalonLargeProj>(), (int)(damage * stealthDamageMult), knockBack, player.whoAmI, 0f, 0f);
|
||||
Main.projectile[stealth].Calamity().stealthStrike = true;
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
else
|
||||
{
|
||||
// flip flop every standard projectile
|
||||
Projectile.NewProjectile(position, new Vector2(speedX, speedY), ModContent.ProjectileType<TalonSmallProj>(), damage, knockBack, player.whoAmI, 0f, sign);
|
||||
sign = -sign;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
/*public override void AddRecipes()
|
||||
public override void AddRecipes()
|
||||
{
|
||||
ModRecipe recipe = new ModRecipe(mod);
|
||||
recipe.AddIngredient(ItemID.FeralClaws);
|
||||
@@ -56,6 +63,6 @@ namespace CalamityMod.Items.Weapons.Rogue
|
||||
recipe.AddTile(TileID.MythrilAnvil);
|
||||
recipe.SetResult(this);
|
||||
recipe.AddRecipe();
|
||||
}*/
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -20,7 +20,7 @@ Stealth strikes are trailed by homing wind slashes");
|
||||
public override void SafeSetDefaults()
|
||||
{
|
||||
item.width = 14;
|
||||
item.damage = 20;
|
||||
item.damage = 18;
|
||||
item.noMelee = true;
|
||||
item.noUseGraphic = true;
|
||||
item.useAnimation = 18;
|
||||
@@ -48,7 +48,7 @@ Stealth strikes are trailed by homing wind slashes");
|
||||
return true;
|
||||
}
|
||||
|
||||
/*public override void AddRecipes()
|
||||
public override void AddRecipes()
|
||||
{
|
||||
ModRecipe recipe = new ModRecipe(mod);
|
||||
recipe.AddIngredient(ModContent.ItemType<AerialiteBar>(), 5);
|
||||
@@ -57,6 +57,6 @@ Stealth strikes are trailed by homing wind slashes");
|
||||
recipe.AddTile(TileID.SkyMill);
|
||||
recipe.SetResult(this);
|
||||
recipe.AddRecipe();
|
||||
}*/
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -17,7 +17,7 @@ namespace CalamityMod.Items.Weapons.Summon
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
item.damage = 26;
|
||||
item.damage = 24;
|
||||
item.mana = 10;
|
||||
item.width = 50;
|
||||
item.height = 50;
|
||||
|
||||
@@ -17,7 +17,7 @@ namespace CalamityMod.Items.Weapons.Summon
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
item.damage = 26;
|
||||
item.damage = 24;
|
||||
item.mana = 10;
|
||||
item.width = 50;
|
||||
item.height = 50;
|
||||
|
||||
@@ -90,7 +90,7 @@ namespace CalamityMod.NPCs
|
||||
int maxGel = Main.expertMode ? 120 : 80;
|
||||
DropHelper.DropItemSpray(npc, ItemID.Gel, minGel, maxGel, 2);
|
||||
|
||||
// King Slime doesn't have a lore item yet
|
||||
DropHelper.DropItemCondition(npc, ModContent.ItemType<KnowledgeKingSlime>(), true, !NPC.downedSlimeKing);
|
||||
DropHelper.DropResidentEvilAmmo(npc, NPC.downedSlimeKing, 2, 0, 0);
|
||||
}
|
||||
else if (npc.type == NPCID.EyeofCthulhu)
|
||||
@@ -1346,6 +1346,7 @@ namespace CalamityMod.NPCs
|
||||
|
||||
case NPCID.DarkCaster:
|
||||
DropHelper.DropItemChance(npc, ModContent.ItemType<AncientShiv>(), Main.expertMode ? 20 : 25);
|
||||
DropHelper.DropItemChance(npc, ModContent.ItemType<ShinobiBlade>(), Main.expertMode ? 20 : 25);
|
||||
break;
|
||||
|
||||
case NPCID.BigMimicHallow:
|
||||
@@ -1433,6 +1434,7 @@ namespace CalamityMod.NPCs
|
||||
|
||||
case NPCID.GoblinSummoner:
|
||||
DropHelper.DropItemChance(npc, ModContent.ItemType<TheFirstShadowflame>(), Main.expertMode ? 5 : 7);
|
||||
DropHelper.DropItemChance(npc, ModContent.ItemType<BurningStrife>(), Main.expertMode ? 3 : 6);
|
||||
break;
|
||||
|
||||
case NPCID.SandElemental:
|
||||
|
||||
@@ -269,7 +269,10 @@ namespace CalamityMod.NPCs.Crags
|
||||
{
|
||||
Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType<EssenceofChaos>());
|
||||
}
|
||||
DropHelper.DropItemChance(npc, ModContent.ItemType<GaelsGreatsword>(), CalamityWorld.defiled ? 0.05f : 0.02f);
|
||||
if (CalamityWorld.downedYharon)
|
||||
{
|
||||
DropHelper.DropItemChance(npc, ModContent.ItemType<GaelsGreatsword>(), CalamityWorld.defiled ? 0.05f : 0.02f);
|
||||
}
|
||||
}
|
||||
|
||||
public override void HitEffect(int hitDirection, double damage)
|
||||
|
||||
@@ -277,12 +277,12 @@ namespace CalamityMod.NPCs.TownNPCs
|
||||
shop.item[nextSlot].shopCustomPrice = Item.buyPrice(2, 0, 0, 0);
|
||||
nextSlot++;
|
||||
}
|
||||
/*if (CalamityWorld.downedProvidence)
|
||||
if (CalamityWorld.downedProvidence)
|
||||
{
|
||||
shop.item[nextSlot].SetDefaults(ModContent.ItemType<SylvanSlasher>());
|
||||
shop.item[nextSlot].shopCustomPrice = Item.buyPrice(5, 0, 0, 0);
|
||||
nextSlot++;
|
||||
}*/
|
||||
}
|
||||
if (CalamityWorld.buffedEclipse && !CalamityWorld.dragonScalesBought)
|
||||
{
|
||||
shop.item[nextSlot].SetDefaults(ModContent.ItemType<DragonScales>());
|
||||
@@ -290,7 +290,7 @@ namespace CalamityMod.NPCs.TownNPCs
|
||||
nextSlot++;
|
||||
}
|
||||
//:BearWatchingYou:
|
||||
if (npc.modNPC.TownNPCName() == "Laura")
|
||||
if (npc.GivenName == "Laura")
|
||||
{
|
||||
shop.item[nextSlot].SetDefaults(ModContent.ItemType<BearEye>());
|
||||
nextSlot++;
|
||||
|
||||
@@ -1146,89 +1146,6 @@ namespace CalamityMod.Projectiles
|
||||
Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, 0f, 0f, ModContent.ProjectileType<AtaxiaHealOrb>(), 0, 0f, projectile.owner, (float)num14, num12);
|
||||
}
|
||||
}
|
||||
else if (Main.player[projectile.owner].Calamity().xerocSet && Main.player[projectile.owner].Calamity().xerocDmg <= 0)
|
||||
{
|
||||
int num = projectile.damage / 2;
|
||||
Main.player[projectile.owner].Calamity().xerocDmg += (float)num;
|
||||
int[] array = new int[200];
|
||||
int num3 = 0;
|
||||
int num4 = 0;
|
||||
for (int i = 0; i < 200; i++)
|
||||
{
|
||||
if (Main.npc[i].CanBeChasedBy(projectile, false))
|
||||
{
|
||||
float num5 = Math.Abs(Main.npc[i].position.X + (float)(Main.npc[i].width / 2) - projectile.position.X + (float)(projectile.width / 2)) + Math.Abs(Main.npc[i].position.Y + (float)(Main.npc[i].height / 2) - projectile.position.Y + (float)(projectile.height / 2));
|
||||
if (num5 < 800f)
|
||||
{
|
||||
if (Collision.CanHit(projectile.position, 1, 1, Main.npc[i].position, Main.npc[i].width, Main.npc[i].height) && num5 > 50f)
|
||||
{
|
||||
array[num4] = i;
|
||||
num4++;
|
||||
}
|
||||
else if (num4 == 0)
|
||||
{
|
||||
array[num3] = i;
|
||||
num3++;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
if (num3 == 0 && num4 == 0)
|
||||
{
|
||||
return;
|
||||
}
|
||||
int num6;
|
||||
if (num4 > 0)
|
||||
{
|
||||
num6 = array[Main.rand.Next(num4)];
|
||||
}
|
||||
else
|
||||
{
|
||||
num6 = array[Main.rand.Next(num3)];
|
||||
}
|
||||
float num7 = 30f;
|
||||
float num8 = (float)Main.rand.Next(-100, 101);
|
||||
float num9 = (float)Main.rand.Next(-100, 101);
|
||||
float num10 = (float)Math.Sqrt((double)(num8 * num8 + num9 * num9));
|
||||
num10 = num7 / num10;
|
||||
num8 *= num10;
|
||||
num9 *= num10;
|
||||
Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, num8, num9, ModContent.ProjectileType<XerocOrb>(), (int)((double)num * 1.25), 0f, projectile.owner, (float)num6, 0f);
|
||||
if (target.canGhostHeal)
|
||||
{
|
||||
if (Main.player[Main.myPlayer].lifeSteal <= 0f)
|
||||
{
|
||||
return;
|
||||
}
|
||||
float num11 = 0.1f;
|
||||
num11 -= (float)projectile.numHits * 0.05f;
|
||||
if (num11 <= 0f)
|
||||
{
|
||||
return;
|
||||
}
|
||||
float num12 = (float)projectile.damage * num11;
|
||||
if ((int)num12 <= 0)
|
||||
{
|
||||
return;
|
||||
}
|
||||
Main.player[Main.myPlayer].lifeSteal -= num12 * 1.5f;
|
||||
float num13 = 0f;
|
||||
int num14 = projectile.owner;
|
||||
for (int i = 0; i < 255; i++)
|
||||
{
|
||||
if (Main.player[i].active && !Main.player[i].dead && ((!Main.player[projectile.owner].hostile && !Main.player[i].hostile) || Main.player[projectile.owner].team == Main.player[i].team))
|
||||
{
|
||||
float num15 = Math.Abs(Main.player[i].position.X + (float)(Main.player[i].width / 2) - projectile.position.X + (float)(projectile.width / 2)) + Math.Abs(Main.player[i].position.Y + (float)(Main.player[i].height / 2) - projectile.position.Y + (float)(projectile.height / 2));
|
||||
if (num15 < 1200f && (float)(Main.player[i].statLifeMax2 - Main.player[i].statLife) > num13)
|
||||
{
|
||||
num13 = (float)(Main.player[i].statLifeMax2 - Main.player[i].statLife);
|
||||
num14 = i;
|
||||
}
|
||||
}
|
||||
}
|
||||
Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, 0f, 0f, ModContent.ProjectileType<XerocHealOrb>(), 0, 0f, projectile.owner, (float)num14, num12);
|
||||
}
|
||||
}
|
||||
else if (Main.player[projectile.owner].Calamity().godSlayerMage && Main.player[projectile.owner].Calamity().godSlayerDmg <= 0)
|
||||
{
|
||||
int num = projectile.damage / 2;
|
||||
@@ -1325,79 +1242,211 @@ namespace CalamityMod.Projectiles
|
||||
}
|
||||
Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, 0f, 0f, ModContent.ProjectileType<ChaosGeyser>(), newDamage, 0f, projectile.owner, 0f, 0f);
|
||||
}
|
||||
else if (Main.player[projectile.owner].Calamity().xerocSet && Main.player[projectile.owner].ownedProjectileCounts[ModContent.ProjectileType<XerocBlast>()] < 3)
|
||||
{
|
||||
int newDamage = (int)((double)projectile.damage * 0.2);
|
||||
if (newDamage > 40)
|
||||
{
|
||||
newDamage = 40;
|
||||
}
|
||||
Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, 0f, 0f, ModContent.ProjectileType<XerocBlast>(), newDamage, 0f, projectile.owner, 0f, 0f);
|
||||
}
|
||||
}
|
||||
else if (projectile.ranged)
|
||||
{
|
||||
if (Main.player[projectile.owner].Calamity().xerocSet && Main.player[projectile.owner].ownedProjectileCounts[ModContent.ProjectileType<XerocFire>()] < 3)
|
||||
{
|
||||
int newDamage = (int)((double)projectile.damage * 0.15);
|
||||
if (newDamage > 40)
|
||||
{
|
||||
newDamage = 40;
|
||||
}
|
||||
Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, 0f, 0f, ModContent.ProjectileType<XerocFire>(), newDamage, 0f, projectile.owner, 0f, 0f);
|
||||
}
|
||||
}
|
||||
else if (rogue)
|
||||
{
|
||||
if (Main.player[projectile.owner].Calamity().xerocSet && Main.player[projectile.owner].Calamity().xerocDmg <= 0)
|
||||
if (Main.player[projectile.owner].Calamity().xerocSet && Main.player[projectile.owner].Calamity().xerocDmg <= 0 && Main.player[projectile.owner].ownedProjectileCounts[ModContent.ProjectileType<XerocFire>()] < 3 && Main.player[projectile.owner].ownedProjectileCounts[ModContent.ProjectileType<XerocBlast>()] < 3)
|
||||
{
|
||||
int num = projectile.damage / 2;
|
||||
Main.player[projectile.owner].Calamity().xerocDmg += (float)num;
|
||||
int[] array = new int[200];
|
||||
int num3 = 0;
|
||||
int num4 = 0;
|
||||
for (int i = 0; i < 200; i++)
|
||||
{
|
||||
if (Main.npc[i].CanBeChasedBy(projectile, false))
|
||||
{
|
||||
float num5 = Math.Abs(Main.npc[i].position.X + (float)(Main.npc[i].width / 2) - projectile.position.X + (float)(projectile.width / 2)) + Math.Abs(Main.npc[i].position.Y + (float)(Main.npc[i].height / 2) - projectile.position.Y + (float)(projectile.height / 2));
|
||||
if (num5 < 800f)
|
||||
{
|
||||
if (Collision.CanHit(projectile.position, 1, 1, Main.npc[i].position, Main.npc[i].width, Main.npc[i].height) && num5 > 50f)
|
||||
{
|
||||
array[num4] = i;
|
||||
num4++;
|
||||
}
|
||||
else if (num4 == 0)
|
||||
{
|
||||
array[num3] = i;
|
||||
num3++;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
if (num3 == 0 && num4 == 0)
|
||||
{
|
||||
return;
|
||||
}
|
||||
int num6;
|
||||
if (num4 > 0)
|
||||
{
|
||||
num6 = array[Main.rand.Next(num4)];
|
||||
}
|
||||
else
|
||||
{
|
||||
num6 = array[Main.rand.Next(num3)];
|
||||
}
|
||||
float num7 = Main.rand.Next(15, 30);
|
||||
float num8 = (float)Main.rand.Next(-100, 101);
|
||||
float num9 = (float)Main.rand.Next(-100, 101);
|
||||
float num10 = (float)Math.Sqrt((double)(num8 * num8 + num9 * num9));
|
||||
num10 = num7 / num10;
|
||||
num8 *= num10;
|
||||
num9 *= num10;
|
||||
Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, num8, num9, ModContent.ProjectileType<XerocStar>(), (int)((double)num * 1.6), 0f, projectile.owner, (float)num6, 0f);
|
||||
}
|
||||
if (Main.rand.NextBool(5))
|
||||
{
|
||||
int num = projectile.damage / 2;
|
||||
Main.player[projectile.owner].Calamity().xerocDmg += (float)num;
|
||||
int[] array = new int[200];
|
||||
int num3 = 0;
|
||||
int num4 = 0;
|
||||
for (int i = 0; i < 200; i++)
|
||||
{
|
||||
if (Main.npc[i].CanBeChasedBy(projectile, false))
|
||||
{
|
||||
float num5 = Math.Abs(Main.npc[i].position.X + (float)(Main.npc[i].width / 2) - projectile.position.X + (float)(projectile.width / 2)) + Math.Abs(Main.npc[i].position.Y + (float)(Main.npc[i].height / 2) - projectile.position.Y + (float)(projectile.height / 2));
|
||||
if (num5 < 800f)
|
||||
{
|
||||
if (Collision.CanHit(projectile.position, 1, 1, Main.npc[i].position, Main.npc[i].width, Main.npc[i].height) && num5 > 50f)
|
||||
{
|
||||
array[num4] = i;
|
||||
num4++;
|
||||
}
|
||||
else if (num4 == 0)
|
||||
{
|
||||
array[num3] = i;
|
||||
num3++;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
if (num3 == 0 && num4 == 0)
|
||||
{
|
||||
return;
|
||||
}
|
||||
int num6;
|
||||
if (num4 > 0)
|
||||
{
|
||||
num6 = array[Main.rand.Next(num4)];
|
||||
}
|
||||
else
|
||||
{
|
||||
num6 = array[Main.rand.Next(num3)];
|
||||
}
|
||||
float num7 = Main.rand.Next(15, 30);
|
||||
float num8 = (float)Main.rand.Next(-100, 101);
|
||||
float num9 = (float)Main.rand.Next(-100, 101);
|
||||
float num10 = (float)Math.Sqrt((double)(num8 * num8 + num9 * num9));
|
||||
num10 = num7 / num10;
|
||||
num8 *= num10;
|
||||
num9 *= num10;
|
||||
Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, num8, num9, ModContent.ProjectileType<XerocStar>(), (int)((double)num * 1.6), 0f, projectile.owner, (float)num6, 0f);
|
||||
}
|
||||
else if (Main.rand.NextBool(4))
|
||||
{
|
||||
int num = projectile.damage / 2;
|
||||
Main.player[projectile.owner].Calamity().xerocDmg += (float)num;
|
||||
int[] array = new int[200];
|
||||
int num3 = 0;
|
||||
int num4 = 0;
|
||||
for (int i = 0; i < 200; i++)
|
||||
{
|
||||
if (Main.npc[i].CanBeChasedBy(projectile, false))
|
||||
{
|
||||
float num5 = Math.Abs(Main.npc[i].position.X + (float)(Main.npc[i].width / 2) - projectile.position.X + (float)(projectile.width / 2)) + Math.Abs(Main.npc[i].position.Y + (float)(Main.npc[i].height / 2) - projectile.position.Y + (float)(projectile.height / 2));
|
||||
if (num5 < 800f)
|
||||
{
|
||||
if (Collision.CanHit(projectile.position, 1, 1, Main.npc[i].position, Main.npc[i].width, Main.npc[i].height) && num5 > 50f)
|
||||
{
|
||||
array[num4] = i;
|
||||
num4++;
|
||||
}
|
||||
else if (num4 == 0)
|
||||
{
|
||||
array[num3] = i;
|
||||
num3++;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
if (num3 == 0 && num4 == 0)
|
||||
{
|
||||
return;
|
||||
}
|
||||
int num6;
|
||||
if (num4 > 0)
|
||||
{
|
||||
num6 = array[Main.rand.Next(num4)];
|
||||
}
|
||||
else
|
||||
{
|
||||
num6 = array[Main.rand.Next(num3)];
|
||||
}
|
||||
float num7 = 30f;
|
||||
float num8 = (float)Main.rand.Next(-100, 101);
|
||||
float num9 = (float)Main.rand.Next(-100, 101);
|
||||
float num10 = (float)Math.Sqrt((double)(num8 * num8 + num9 * num9));
|
||||
num10 = num7 / num10;
|
||||
num8 *= num10;
|
||||
num9 *= num10;
|
||||
Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, num8, num9, ModContent.ProjectileType<XerocOrb>(), (int)((double)num * 1.25), 0f, projectile.owner, (float)num6, 0f);
|
||||
if (target.canGhostHeal)
|
||||
{
|
||||
if (Main.player[Main.myPlayer].lifeSteal <= 0f)
|
||||
{
|
||||
return;
|
||||
}
|
||||
float num11 = 0.1f;
|
||||
num11 -= (float)projectile.numHits * 0.05f;
|
||||
if (num11 <= 0f)
|
||||
{
|
||||
return;
|
||||
}
|
||||
float num12 = (float)projectile.damage * num11;
|
||||
if ((int)num12 <= 0)
|
||||
{
|
||||
return;
|
||||
}
|
||||
Main.player[Main.myPlayer].lifeSteal -= num12 * 1.5f;
|
||||
float num13 = 0f;
|
||||
int num14 = projectile.owner;
|
||||
for (int i = 0; i < 255; i++)
|
||||
{
|
||||
if (Main.player[i].active && !Main.player[i].dead && ((!Main.player[projectile.owner].hostile && !Main.player[i].hostile) || Main.player[projectile.owner].team == Main.player[i].team))
|
||||
{
|
||||
float num15 = Math.Abs(Main.player[i].position.X + (float)(Main.player[i].width / 2) - projectile.position.X + (float)(projectile.width / 2)) + Math.Abs(Main.player[i].position.Y + (float)(Main.player[i].height / 2) - projectile.position.Y + (float)(projectile.height / 2));
|
||||
if (num15 < 1200f && (float)(Main.player[i].statLifeMax2 - Main.player[i].statLife) > num13)
|
||||
{
|
||||
num13 = (float)(Main.player[i].statLifeMax2 - Main.player[i].statLife);
|
||||
num14 = i;
|
||||
}
|
||||
}
|
||||
}
|
||||
Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, 0f, 0f, ModContent.ProjectileType<XerocHealOrb>(), 0, 0f, projectile.owner, (float)num14, num12);
|
||||
}
|
||||
}
|
||||
else if (Main.rand.NextBool(3))
|
||||
{
|
||||
int newDamage = (int)((double)projectile.damage * 0.15);
|
||||
if (newDamage > 40)
|
||||
{
|
||||
newDamage = 40;
|
||||
}
|
||||
Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, 0f, 0f, ModContent.ProjectileType<XerocFire>(), newDamage, 0f, projectile.owner, 0f, 0f);
|
||||
}
|
||||
else if (Main.rand.NextBool(2))
|
||||
{
|
||||
int newDamage = (int)((double)projectile.damage * 0.2);
|
||||
if (newDamage > 40)
|
||||
{
|
||||
newDamage = 40;
|
||||
}
|
||||
Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, 0f, 0f, ModContent.ProjectileType<XerocBlast>(), newDamage, 0f, projectile.owner, 0f, 0f);
|
||||
}
|
||||
else
|
||||
{
|
||||
int num = projectile.damage / 2;
|
||||
Main.player[projectile.owner].Calamity().xerocDmg += (float)num;
|
||||
int[] array = new int[200];
|
||||
int num3 = 0;
|
||||
int num4 = 0;
|
||||
for (int i = 0; i < 200; i++)
|
||||
{
|
||||
if (Main.npc[i].CanBeChasedBy(projectile, false))
|
||||
{
|
||||
float num5 = Math.Abs(Main.npc[i].position.X + (float)(Main.npc[i].width / 2) - projectile.position.X + (float)(projectile.width / 2)) + Math.Abs(Main.npc[i].position.Y + (float)(Main.npc[i].height / 2) - projectile.position.Y + (float)(projectile.height / 2));
|
||||
if (num5 < 800f)
|
||||
{
|
||||
if (Collision.CanHit(projectile.position, 1, 1, Main.npc[i].position, Main.npc[i].width, Main.npc[i].height) && num5 > 50f)
|
||||
{
|
||||
array[num4] = i;
|
||||
num4++;
|
||||
}
|
||||
else if (num4 == 0)
|
||||
{
|
||||
array[num3] = i;
|
||||
num3++;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
if (num3 == 0 && num4 == 0)
|
||||
{
|
||||
return;
|
||||
}
|
||||
int num6;
|
||||
if (num4 > 0)
|
||||
{
|
||||
num6 = array[Main.rand.Next(num4)];
|
||||
}
|
||||
else
|
||||
{
|
||||
num6 = array[Main.rand.Next(num3)];
|
||||
}
|
||||
float num7 = 15f;
|
||||
float num8 = (float)Main.rand.Next(-100, 101);
|
||||
float num9 = (float)Main.rand.Next(-100, 101);
|
||||
float num10 = (float)Math.Sqrt((double)(num8 * num8 + num9 * num9));
|
||||
num10 = num7 / num10;
|
||||
num8 *= num10;
|
||||
num9 *= num10;
|
||||
Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, num8, num9, ModContent.ProjectileType<XerocBubble>(), (int)((double)num * 1.2), 0f, projectile.owner, (float)num6, 0f);
|
||||
}
|
||||
}
|
||||
Player playerC = Main.player[projectile.owner];
|
||||
if (playerC.Calamity().featherCrown && stealthStrike && playerC.Calamity().featherCrownCooldown <= 0)
|
||||
{
|
||||
@@ -1492,55 +1541,6 @@ namespace CalamityMod.Projectiles
|
||||
num9 *= num10;
|
||||
Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, num8, num9, ModContent.ProjectileType<GodSlayerPhantom>(), (int)((double)num * 2.0), 0f, projectile.owner, 0f, ai1);
|
||||
}
|
||||
else if (Main.player[projectile.owner].Calamity().xerocSet && Main.player[projectile.owner].Calamity().xerocDmg <= 0)
|
||||
{
|
||||
int num = projectile.damage / 2;
|
||||
Main.player[projectile.owner].Calamity().xerocDmg += (float)num;
|
||||
int[] array = new int[200];
|
||||
int num3 = 0;
|
||||
int num4 = 0;
|
||||
for (int i = 0; i < 200; i++)
|
||||
{
|
||||
if (Main.npc[i].CanBeChasedBy(projectile, false))
|
||||
{
|
||||
float num5 = Math.Abs(Main.npc[i].position.X + (float)(Main.npc[i].width / 2) - projectile.position.X + (float)(projectile.width / 2)) + Math.Abs(Main.npc[i].position.Y + (float)(Main.npc[i].height / 2) - projectile.position.Y + (float)(projectile.height / 2));
|
||||
if (num5 < 800f)
|
||||
{
|
||||
if (Collision.CanHit(projectile.position, 1, 1, Main.npc[i].position, Main.npc[i].width, Main.npc[i].height) && num5 > 50f)
|
||||
{
|
||||
array[num4] = i;
|
||||
num4++;
|
||||
}
|
||||
else if (num4 == 0)
|
||||
{
|
||||
array[num3] = i;
|
||||
num3++;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
if (num3 == 0 && num4 == 0)
|
||||
{
|
||||
return;
|
||||
}
|
||||
int num6;
|
||||
if (num4 > 0)
|
||||
{
|
||||
num6 = array[Main.rand.Next(num4)];
|
||||
}
|
||||
else
|
||||
{
|
||||
num6 = array[Main.rand.Next(num3)];
|
||||
}
|
||||
float num7 = 15f;
|
||||
float num8 = (float)Main.rand.Next(-100, 101);
|
||||
float num9 = (float)Main.rand.Next(-100, 101);
|
||||
float num10 = (float)Math.Sqrt((double)(num8 * num8 + num9 * num9));
|
||||
num10 = num7 / num10;
|
||||
num8 *= num10;
|
||||
num9 *= num10;
|
||||
Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, num8, num9, ModContent.ProjectileType<XerocBubble>(), (int)((double)num * 1.2), 0f, projectile.owner, (float)num6, 0f);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -54,8 +54,8 @@ namespace CalamityMod.Projectiles.Ranged
|
||||
for (i = 0; i < 3; i++)
|
||||
{
|
||||
offsetAngle = startAngle + deltaAngle * (i + i * i) / 2f + 32f * i;
|
||||
Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, (float)(Math.Sin(offsetAngle) * 5f), (float)(Math.Cos(offsetAngle) * 5f), ModContent.ProjectileType<FossilShard>(), (int)((double)projectile.damage * 0.3f), projectile.knockBack, projectile.owner, 0f, 0f);
|
||||
Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, (float)(-Math.Sin(offsetAngle) * 5f), (float)(-Math.Cos(offsetAngle) * 5f), ModContent.ProjectileType<FossilShard>(), (int)((double)projectile.damage * 0.3f), projectile.knockBack, projectile.owner, 0f, 0f);
|
||||
Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, (float)(Math.Sin(offsetAngle) * 5f), (float)(Math.Cos(offsetAngle) * 5f), ModContent.ProjectileType<FossilShard>(), (int)((double)projectile.damage * 0.2f), projectile.knockBack / 5, projectile.owner, 0f, 0f);
|
||||
Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, (float)(-Math.Sin(offsetAngle) * 5f), (float)(-Math.Cos(offsetAngle) * 5f), ModContent.ProjectileType<FossilShard>(), (int)((double)projectile.damage * 0.2f), projectile.knockBack / 5, projectile.owner, 0f, 0f);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
using Microsoft.Xna.Framework;
|
||||
using System;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
@@ -7,6 +8,7 @@ namespace CalamityMod.Projectiles.Rogue
|
||||
{
|
||||
public class BarrelShrapnel : ModProjectile
|
||||
{
|
||||
public bool hitTile = false;
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Shrapnel");
|
||||
@@ -23,16 +25,25 @@ namespace CalamityMod.Projectiles.Rogue
|
||||
projectile.tileCollide = true;
|
||||
projectile.Calamity().rogue = true;
|
||||
}
|
||||
public override bool OnTileCollide(Vector2 oldVelocity) => false;
|
||||
|
||||
public override void AI()
|
||||
{
|
||||
if (projectile.velocity != Vector2.Zero)
|
||||
projectile.ai[0] += 1f;
|
||||
if (hitTile)
|
||||
{
|
||||
projectile.velocity.X = 0f;
|
||||
projectile.rotation = MathHelper.Pi;
|
||||
}
|
||||
else
|
||||
{
|
||||
projectile.rotation = projectile.velocity.ToRotation() + MathHelper.PiOver2;
|
||||
}
|
||||
projectile.velocity.Y += 0.2f;
|
||||
}
|
||||
public override bool OnTileCollide(Vector2 oldVelocity)
|
||||
{
|
||||
hitTile = true;
|
||||
return false;
|
||||
}
|
||||
public override void OnHitNPC(NPC target, int damage, float knockback, bool crit)
|
||||
{
|
||||
target.AddBuff(BuffID.OnFire, 60 * 4);
|
||||
|
||||
@@ -27,7 +27,6 @@ namespace CalamityMod.Projectiles.Rogue
|
||||
private void Explode()
|
||||
{
|
||||
Main.PlaySound(2, projectile.Center, 14);
|
||||
//This is definitely not a near copy of the Blast Barrel nosiree :>
|
||||
bool stealthS = projectile.Calamity().stealthStrike;
|
||||
Projectile.NewProjectile(projectile.Center, new Vector2(0f, 0f), ModContent.ProjectileType<BettyExplosion>(), projectile.damage, 8f, projectile.owner);
|
||||
if (stealthS)
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
using Microsoft.Xna.Framework;
|
||||
using System;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Projectiles.Rogue
|
||||
@@ -27,13 +27,14 @@ namespace CalamityMod.Projectiles.Rogue
|
||||
|
||||
public override void AI()
|
||||
{
|
||||
if (projectile.velocity != Vector2.Zero)
|
||||
if (Math.Abs(projectile.position.Y - projectile.oldPosition.Y) > 4f)
|
||||
{
|
||||
projectile.velocity.X = 0f;
|
||||
projectile.rotation = projectile.velocity.ToRotation() + MathHelper.PiOver2;
|
||||
}
|
||||
else
|
||||
{
|
||||
projectile.rotation = MathHelper.PiOver2;
|
||||
projectile.rotation = MathHelper.Pi;
|
||||
}
|
||||
projectile.velocity.Y += 0.2f;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,79 @@
|
||||
using CalamityMod.Projectiles.Typeless;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Projectiles.Rogue
|
||||
{
|
||||
public class BurningStrifeProj : ModProjectile
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Shadow Flame Spiky Ball");
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
projectile.width = 14;
|
||||
projectile.height = 14;
|
||||
projectile.timeLeft = 720;
|
||||
projectile.friendly = true;
|
||||
projectile.extraUpdates = 1;
|
||||
projectile.Calamity().rogue = true;
|
||||
projectile.usesLocalNPCImmunity = true;
|
||||
projectile.localNPCHitCooldown = 30;
|
||||
}
|
||||
|
||||
public override void AI()
|
||||
{
|
||||
projectile.ai[0]++;
|
||||
//Rotation code
|
||||
projectile.rotation += projectile.velocity.X * 0.05f * projectile.direction;
|
||||
//Gravity
|
||||
projectile.velocity.Y += 0.1f;
|
||||
if (projectile.velocity.Y > 16f)
|
||||
projectile.velocity.Y = 16f;
|
||||
//Dust
|
||||
if (projectile.ai[0] >= 25f)
|
||||
{
|
||||
Dust.NewDust(projectile.Center, 1, 1, DustID.Shadowflame, -projectile.velocity.X * 0.3f, -projectile.velocity.Y * 0.3f, 0, default, 1.1f);
|
||||
projectile.ai[0] = 0f;
|
||||
}
|
||||
}
|
||||
|
||||
public override bool OnTileCollide(Vector2 oldVelocity)
|
||||
{
|
||||
if (projectile.velocity.X != oldVelocity.X)
|
||||
projectile.velocity.X = -oldVelocity.X;
|
||||
if (projectile.velocity.Y != oldVelocity.Y)
|
||||
projectile.velocity.Y = -oldVelocity.Y * 0.7f;
|
||||
projectile.velocity.X *= 0.9f;
|
||||
return false;
|
||||
}
|
||||
|
||||
public override void OnHitNPC(NPC target, int damage, float knockback, bool crit)
|
||||
{
|
||||
target.AddBuff(BuffID.ShadowFlame, 180);
|
||||
if (projectile.Calamity().stealthStrike && projectile.penetrate != 1)
|
||||
{
|
||||
Main.PlaySound(2, projectile.Center, 103);
|
||||
int proj = Projectile.NewProjectile(projectile.Center, Vector2.Zero, ModContent.ProjectileType<ShadowflameExplosionBig>(), (int)(projectile.damage * 0.75), projectile.knockBack, projectile.owner);
|
||||
Main.projectile[proj].Center = projectile.Center;
|
||||
Main.projectile[proj].Calamity().rogue = true;
|
||||
}
|
||||
}
|
||||
|
||||
public override void Kill(int timeLeft)
|
||||
{
|
||||
int proj;
|
||||
Main.PlaySound(2, projectile.Center, 103);
|
||||
if(projectile.Calamity().stealthStrike)
|
||||
proj = Projectile.NewProjectile(projectile.Center, Vector2.Zero, ModContent.ProjectileType<ShadowflameExplosionBig>(), (int)(projectile.damage * 0.75), projectile.knockBack, projectile.owner);
|
||||
else
|
||||
proj = Projectile.NewProjectile(projectile.Center, Vector2.Zero, ModContent.ProjectileType<ShadowflameExplosion>(), (int)(projectile.damage * 0.75), projectile.knockBack, projectile.owner);
|
||||
Main.projectile[proj].Center = projectile.Center;
|
||||
Main.projectile[proj].Calamity().rogue = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 294 B |
@@ -94,6 +94,10 @@ namespace CalamityMod.Projectiles.Rogue
|
||||
flag55 = true;
|
||||
}
|
||||
int num989 = (int)projectile.ai[1];
|
||||
if (!Main.npc[num989].active)
|
||||
{
|
||||
projectile.Kill();
|
||||
}
|
||||
if ((projectile.localAI[0] <= (float)(60 * num988)) && (num989 > 0 || num989 <= 200) && Main.npc[num989].active && !Main.npc[num989].dontTakeDamage)
|
||||
{
|
||||
projectile.Center = Main.npc[num989].Center - projectile.velocity * 2f;
|
||||
|
||||
@@ -24,7 +24,7 @@ namespace CalamityMod.Projectiles.Rogue
|
||||
projectile.width = 10;
|
||||
projectile.height = 10;
|
||||
projectile.friendly = true;
|
||||
projectile.penetrate = 5;
|
||||
projectile.penetrate = 2;
|
||||
projectile.timeLeft = 300;
|
||||
projectile.Calamity().rogue = true;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,233 @@
|
||||
using CalamityMod.Items.Weapons.Rogue;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Microsoft.Xna.Framework.Graphics;
|
||||
using System;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Projectiles.Rogue
|
||||
{
|
||||
public class LatcherMineProjectile : ModProjectile
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Latcher Mine");
|
||||
Main.projFrames[projectile.type] = 4;
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
projectile.width = 27;
|
||||
projectile.height = 15;
|
||||
projectile.friendly = true;
|
||||
projectile.ignoreWater = true;
|
||||
projectile.penetrate = -1;
|
||||
projectile.scale = 1.5f;
|
||||
projectile.alpha = 0;
|
||||
projectile.Calamity().rogue = true;
|
||||
}
|
||||
|
||||
public override void AI()
|
||||
{
|
||||
if (projectile.ai[0] == 0f)
|
||||
{
|
||||
projectile.rotation += (projectile.velocity.X > 0) ? 0.3f : -0.3f;
|
||||
if (projectile.velocity.Y < 7f)
|
||||
{
|
||||
projectile.velocity.Y += 0.24f;
|
||||
}
|
||||
}
|
||||
if (projectile.ai[0] == 1f)
|
||||
{
|
||||
projectile.rotation = projectile.velocity.ToRotation() - MathHelper.PiOver2;
|
||||
projectile.tileCollide = false;
|
||||
int secondsToLive = (projectile.Calamity().stealthStrike ? 14 : 6);
|
||||
bool readyToKillSelf = false;
|
||||
//There was something along the lines of "var_2_2CB4E_cp_0" doing this exact iterative expression, but in 4 times as many lines and barely decipherable variables and copies of arrays.
|
||||
//*shudder*
|
||||
projectile.localAI[0] += 1f;
|
||||
if (projectile.localAI[0] >= (float)(60 * secondsToLive))
|
||||
{
|
||||
readyToKillSelf = true;
|
||||
}
|
||||
else if ((int)projectile.ai[1] < 0 || (int)projectile.ai[1] >= 200)
|
||||
{
|
||||
readyToKillSelf = true;
|
||||
}
|
||||
else if (Main.npc[(int)projectile.ai[1]].active && !Main.npc[(int)projectile.ai[1]].dontTakeDamage)
|
||||
{
|
||||
projectile.Center = Main.npc[(int)projectile.ai[1]].Center - projectile.velocity * 2f;
|
||||
projectile.gfxOffY = Main.npc[(int)projectile.ai[1]].gfxOffY;
|
||||
projectile.timeLeft = (int)MathHelper.Min(projectile.timeLeft, 120);
|
||||
}
|
||||
else
|
||||
{
|
||||
readyToKillSelf = true;
|
||||
}
|
||||
if (readyToKillSelf)
|
||||
{
|
||||
projectile.Kill();
|
||||
}
|
||||
if (projectile.timeLeft == 1)
|
||||
{
|
||||
projectile.Kill();
|
||||
}
|
||||
}
|
||||
if (projectile.ai[0] == 2f)
|
||||
{
|
||||
projectile.velocity = Vector2.UnitY * 3f;
|
||||
projectile.rotation = 0f;
|
||||
}
|
||||
if (projectile.timeLeft == 110 * (projectile.Calamity().stealthStrike ? 2 : 1) ||
|
||||
projectile.timeLeft == 60 * (projectile.Calamity().stealthStrike ? 2 : 1) ||
|
||||
projectile.timeLeft == 24 * (projectile.Calamity().stealthStrike ? 2 : 1))
|
||||
{
|
||||
projectile.frame++;
|
||||
}
|
||||
if (projectile.timeLeft < 24 * (projectile.Calamity().stealthStrike ? 2 : 1))
|
||||
{
|
||||
projectile.frameCounter += 1;
|
||||
if (projectile.frameCounter % 2 == 1)
|
||||
{
|
||||
projectile.frame += 1;
|
||||
if (projectile.frame >= 4)
|
||||
{
|
||||
projectile.frame = 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
public override bool OnTileCollide(Vector2 oldVelocity)
|
||||
{
|
||||
if (projectile.Calamity().stealthStrike)
|
||||
{
|
||||
projectile.height = 10;
|
||||
if (projectile.localAI[1] == 0f)
|
||||
{
|
||||
projectile.timeLeft = 14 * 60;
|
||||
projectile.localAI[1] = 1f;
|
||||
}
|
||||
projectile.ai[0] = 2f;
|
||||
}
|
||||
return !projectile.Calamity().stealthStrike;
|
||||
}
|
||||
public override void ModifyHitNPC(NPC target, ref int damage, ref float knockback, ref bool crit, ref int hitDirection)
|
||||
{
|
||||
Rectangle myRect = new Rectangle((int)projectile.position.X, (int)projectile.position.Y, projectile.width, projectile.height);
|
||||
if (projectile.owner == Main.myPlayer)
|
||||
{
|
||||
for (int i = 0; i < Main.npc.Length; i++)
|
||||
{
|
||||
if (Main.npc[i].active && !Main.npc[i].dontTakeDamage &&
|
||||
((projectile.friendly && (!Main.npc[i].friendly || projectile.type == 318 || (Main.npc[i].type == 22 && projectile.owner < 255 && Main.player[projectile.owner].killGuide) || (Main.npc[i].type == 54 && projectile.owner < 255 && Main.player[projectile.owner].killClothier))) ||
|
||||
(projectile.hostile && Main.npc[i].friendly && !Main.npc[i].dontTakeDamageFromHostiles)) && (projectile.owner < 0 || Main.npc[i].immune[projectile.owner] == 0 || projectile.maxPenetrate == 1))
|
||||
{
|
||||
if (Main.npc[i].noTileCollide || !projectile.ownerHitCheck || projectile.CanHit(Main.npc[i]))
|
||||
{
|
||||
bool colliding;
|
||||
if (Main.npc[i].type == NPCID.SolarCrawltipedeTail)
|
||||
{
|
||||
Rectangle rect = Main.npc[i].getRect();
|
||||
rect.X -= 8;
|
||||
rect.Y -= 8;
|
||||
rect.Width += 16;
|
||||
rect.Height += 16;
|
||||
colliding = projectile.Colliding(myRect, rect);
|
||||
}
|
||||
else
|
||||
{
|
||||
colliding = projectile.Colliding(myRect, Main.npc[i].getRect());
|
||||
}
|
||||
if (colliding)
|
||||
{
|
||||
if (Main.npc[i].reflectingProjectiles && projectile.CanReflect())
|
||||
{
|
||||
Main.npc[i].ReflectProjectile(projectile.whoAmI);
|
||||
return;
|
||||
}
|
||||
projectile.ai[0] = 1f;
|
||||
projectile.ai[1] = (float)i;
|
||||
projectile.velocity = (Main.npc[i].Center - projectile.Center) * 0.75f;
|
||||
projectile.netUpdate = true;
|
||||
projectile.StatusNPC(i);
|
||||
projectile.damage = 0;
|
||||
const int maxNumberOfMines = 6;
|
||||
Point[] otherMinesArray = new Point[maxNumberOfMines];
|
||||
int otherMinesIndex = 0;
|
||||
for (int l = 0; l < Main.projectile.Length; l++)
|
||||
{
|
||||
if (l != projectile.whoAmI && Main.projectile[l].active &&
|
||||
Main.projectile[l].owner == Main.myPlayer &&
|
||||
Main.projectile[l].type == projectile.type &&
|
||||
Main.projectile[l].ai[0] == 1f &&
|
||||
Main.projectile[l].ai[1] == (float)i)
|
||||
{
|
||||
otherMinesArray[otherMinesIndex++] = new Point(l, Main.projectile[l].timeLeft);
|
||||
if (otherMinesIndex >= otherMinesArray.Length)
|
||||
{
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
if (otherMinesIndex >= otherMinesArray.Length)
|
||||
{
|
||||
int idx = 0;
|
||||
for (int m = 1; m < otherMinesArray.Length; m++)
|
||||
{
|
||||
if (otherMinesArray[m].Y < otherMinesArray[idx].Y)
|
||||
{
|
||||
idx = m;
|
||||
}
|
||||
}
|
||||
Main.projectile[otherMinesArray[idx].X].Kill();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public override bool? Colliding(Rectangle projHitbox, Rectangle targetHitbox)
|
||||
{
|
||||
if (targetHitbox.Width > 8 && targetHitbox.Height > 8)
|
||||
{
|
||||
targetHitbox.Inflate(-targetHitbox.Width / 8, -targetHitbox.Height / 8);
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
public override void Kill(int timeLeft)
|
||||
{
|
||||
Main.PlaySound(0, (int)projectile.position.X, (int)projectile.position.Y, 1, 1f, 0f);
|
||||
projectile.position = projectile.Center;
|
||||
projectile.width = projectile.height = (projectile.Calamity().stealthStrike ? 240 : 100);
|
||||
projectile.position.X = projectile.position.X - (float)(projectile.width / 2);
|
||||
projectile.position.Y = projectile.position.Y - (float)(projectile.height / 2);
|
||||
projectile.usesLocalNPCImmunity = true;
|
||||
projectile.localNPCHitCooldown = 10;
|
||||
projectile.Damage();
|
||||
for (int i = 0; i < 6; i++)
|
||||
{
|
||||
if (Main.rand.NextBool(2) && projectile.Calamity().stealthStrike)
|
||||
{
|
||||
Vector2 shrapnelVelocity = (Vector2.UnitY * (-16f + Main.rand.NextFloat(-3, 12f))).RotatedByRandom((double)MathHelper.ToRadians(40f));
|
||||
Projectile.NewProjectile(projectile.Top, shrapnelVelocity,
|
||||
ModContent.ProjectileType<BarrelShrapnel>(), projectile.damage, 3f, projectile.owner);
|
||||
}
|
||||
else
|
||||
{
|
||||
Vector2 fireVelocity = (Vector2.UnitY * (-16f + Main.rand.NextFloat(-3, 12f))).RotatedByRandom((double)MathHelper.ToRadians(40f));
|
||||
int fireIndex = Projectile.NewProjectile(projectile.Top, fireVelocity,
|
||||
Main.rand.Next(ProjectileID.MolotovFire, ProjectileID.MolotovFire3 + 1),
|
||||
projectile.damage, 1f, projectile.owner);
|
||||
Main.projectile[fireIndex].Calamity().forceRogue = true;
|
||||
Main.projectile[fireIndex].penetrate = -1;
|
||||
Main.projectile[fireIndex].usesLocalNPCImmunity = true;
|
||||
Main.projectile[fireIndex].localNPCHitCooldown = 8;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 470 B |
@@ -0,0 +1,65 @@
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using Microsoft.Xna.Framework;
|
||||
|
||||
namespace CalamityMod.Projectiles.Rogue
|
||||
{
|
||||
public class MetalChunk : ModProjectile
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Metal Chunk"); //Metal Chungus - Shucks
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
projectile.width = 32;
|
||||
projectile.height = 32;
|
||||
projectile.friendly = true;
|
||||
projectile.Calamity().rogue = true;
|
||||
projectile.ignoreWater = true; //Its hella heavy so ofc
|
||||
projectile.extraUpdates = 1;
|
||||
}
|
||||
|
||||
public override void AI()
|
||||
{
|
||||
//Gravity
|
||||
projectile.velocity.Y += 0.11f;
|
||||
if (projectile.velocity.Y > 16f)
|
||||
projectile.velocity.Y = 16f;
|
||||
//Rotation
|
||||
projectile.rotation += 0.14f * projectile.direction;
|
||||
if (projectile.Calamity().stealthStrike)
|
||||
{
|
||||
projectile.ai[0]++;
|
||||
if(projectile.ai[0] >= 10f)
|
||||
{
|
||||
Vector2 speed = new Vector2(Main.rand.NextFloat(-6f, 6f), Main.rand.NextFloat(-6f, 6f));
|
||||
Projectile.NewProjectile(projectile.Center, speed, ModContent.ProjectileType<MetalShard>(), (int)(projectile.damage * 0.3f), 0f, projectile.owner, 0f, 0f);
|
||||
projectile.ai[0] = 0f;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public override void Kill(int timeLeft)
|
||||
{
|
||||
Main.PlaySound(SoundID.NPCHit42, projectile.Center);
|
||||
for (int i = 0; i < 3; i++)
|
||||
{
|
||||
Vector2 S1 = new Vector2(-projectile.velocity.X, -projectile.velocity.Y).RotatedBy(MathHelper.ToRadians(Main.rand.Next(-45, 46)));
|
||||
int proj = Projectile.NewProjectile(projectile.Center, S1, ProjectileID.SpikyBall, (int)(projectile.damage * 0.3), 0f, projectile.owner, 0f, 0f);
|
||||
Main.projectile[proj].timeLeft = 600;
|
||||
Main.projectile[proj].usesLocalNPCImmunity = true;
|
||||
Main.projectile[proj].localNPCHitCooldown = 20;
|
||||
S1 = new Vector2(-projectile.velocity.X * 0.7f, -projectile.velocity.Y*0.7f).RotatedBy(MathHelper.ToRadians(Main.rand.Next(-45, 46)));
|
||||
Projectile.NewProjectile(projectile.Center, S1, ModContent.ProjectileType<MetalShard>(), (int)(projectile.damage * 0.3), 0f, projectile.owner, 0f, 0f);
|
||||
}
|
||||
//Dust
|
||||
for (int i = 0; i < 20; i++)
|
||||
{
|
||||
Dust.NewDust(projectile.Center, 1, 1, DustID.Lead, 0f, 0f, 0, default, 1.1f);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 727 B |
@@ -0,0 +1,90 @@
|
||||
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using Microsoft.Xna.Framework;
|
||||
using System;
|
||||
using Microsoft.Xna.Framework.Graphics;
|
||||
|
||||
namespace CalamityMod.Projectiles.Rogue
|
||||
{
|
||||
public class MetalShard : ModProjectile
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Metal Shard");
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
projectile.friendly = true;
|
||||
projectile.width = 12;
|
||||
projectile.height = 12;
|
||||
projectile.Calamity().rogue = true;
|
||||
projectile.penetrate = 10;
|
||||
projectile.extraUpdates = 1;
|
||||
projectile.usesLocalNPCImmunity = true;
|
||||
projectile.localNPCHitCooldown = 60;
|
||||
}
|
||||
|
||||
public override void AI()
|
||||
{
|
||||
//Rotation
|
||||
if (projectile.ai[0] == 0f)
|
||||
projectile.rotation += 0.1f;
|
||||
//Gravity
|
||||
projectile.velocity.Y += 0.1f;
|
||||
if (projectile.velocity.Y > 16f)
|
||||
projectile.velocity.Y = 16f;
|
||||
//Sticky Behaviour
|
||||
CalamityUtils.StickyProjAI(projectile);
|
||||
}
|
||||
|
||||
public override void ModifyHitNPC(NPC target, ref int damage, ref float knockback, ref bool crit, ref int hitDirection)
|
||||
{
|
||||
CalamityUtils.ModifyHitNPCSticky(projectile, 8 , true);
|
||||
}
|
||||
|
||||
public override bool? Colliding(Rectangle projHitbox, Rectangle targetHitbox)
|
||||
{
|
||||
if (targetHitbox.Width > 8 && targetHitbox.Height > 8)
|
||||
{
|
||||
targetHitbox.Inflate(-targetHitbox.Width / 8, -targetHitbox.Height / 8);
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
public override bool PreDraw(SpriteBatch spriteBatch, Color lightColor)
|
||||
{
|
||||
Texture2D texture;
|
||||
if (projectile.localAI[1] == 0f)
|
||||
projectile.localAI[1] = Main.rand.Next(1, 4);
|
||||
switch (projectile.localAI[1])
|
||||
{
|
||||
|
||||
case 2f: texture = ModContent.GetTexture("CalamityMod/Projectiles/Rogue/MetalShard2");
|
||||
break;
|
||||
case 3f: texture = ModContent.GetTexture("CalamityMod/Projectiles/Rogue/MetalShard3");
|
||||
break;
|
||||
default: texture = ModContent.GetTexture("CalamityMod/Projectiles/Rogue/MetalShard");
|
||||
break;
|
||||
}
|
||||
Main.spriteBatch.Draw(texture, projectile.Center - Main.screenPosition, new Rectangle?(new Rectangle(0, 0, texture.Width, texture.Height)), projectile.GetAlpha(lightColor), projectile.rotation, new Vector2(texture.Width / 2f, texture.Height / 2f), projectile.scale, SpriteEffects.None, 0f);
|
||||
return false;
|
||||
}
|
||||
|
||||
public override void Kill(int timeLeft)
|
||||
{
|
||||
for (int i = 0; i < 6; i++)
|
||||
{
|
||||
Dust.NewDust(projectile.Center, projectile.width, projectile.height, DustID.Lead, 0f, 0f, 0, default, 1f);
|
||||
}
|
||||
}
|
||||
|
||||
public override bool OnTileCollide(Vector2 oldVelocity)
|
||||
{
|
||||
Main.PlaySound(SoundID.Dig, projectile.Center);
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 281 B |
|
After Width: | Height: | Size: 319 B |
|
After Width: | Height: | Size: 269 B |
@@ -27,6 +27,8 @@ namespace CalamityMod.Projectiles.Rogue
|
||||
projectile.penetrate = -1;
|
||||
projectile.timeLeft = 600;
|
||||
projectile.Calamity().rogue = true;
|
||||
projectile.usesLocalNPCImmunity = true;
|
||||
projectile.localNPCHitCooldown = 10;
|
||||
}
|
||||
|
||||
public override void AI()
|
||||
|
||||
@@ -45,6 +45,7 @@ namespace CalamityMod.Projectiles.Rogue
|
||||
projectile.velocity = toPlayer;
|
||||
|
||||
projectile.ai[0] += 0.5f;
|
||||
projectile.extraUpdates = 1;
|
||||
if (projectile.ai[0] > 20f)
|
||||
{
|
||||
projectile.ai[0] = 20f;
|
||||
|
||||
@@ -11,7 +11,7 @@ namespace CalamityMod.Projectiles.Rogue
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Talon");
|
||||
DisplayName.SetDefault("Huge Terror Talon");
|
||||
ProjectileID.Sets.TrailCacheLength[projectile.type] = 8;
|
||||
ProjectileID.Sets.TrailingMode[projectile.type] = 0;
|
||||
}
|
||||
@@ -21,11 +21,11 @@ namespace CalamityMod.Projectiles.Rogue
|
||||
projectile.width = 20;
|
||||
projectile.height = 20;
|
||||
projectile.friendly = true;
|
||||
projectile.penetrate = -1;
|
||||
projectile.penetrate = 10;
|
||||
projectile.tileCollide = false;
|
||||
projectile.timeLeft = 600;
|
||||
projectile.timeLeft = 180;
|
||||
projectile.Calamity().rogue = true;
|
||||
projectile.extraUpdates = 1;
|
||||
projectile.extraUpdates = 2;
|
||||
projectile.usesLocalNPCImmunity = true;
|
||||
projectile.localNPCHitCooldown = 10;
|
||||
}
|
||||
|
||||
@@ -1,22 +1,19 @@
|
||||
using Microsoft.Xna.Framework;
|
||||
using Microsoft.Xna.Framework.Graphics;
|
||||
using System;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Projectiles.Rogue
|
||||
{
|
||||
public class TalonSmallProj : ModProjectile
|
||||
{
|
||||
private int x;
|
||||
private double speed = 10;
|
||||
private float startSpeedY = 0f;
|
||||
private bool sign = true;
|
||||
private static float SineFrequency = 0.05f;
|
||||
private static float SineAmplitude = 0.008f;
|
||||
private static float RotationIncrement = 0.26f;
|
||||
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Talon");
|
||||
DisplayName.SetDefault("Terror Talon");
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
@@ -28,48 +25,51 @@ namespace CalamityMod.Projectiles.Rogue
|
||||
projectile.tileCollide = false;
|
||||
projectile.timeLeft = 600;
|
||||
projectile.Calamity().rogue = true;
|
||||
|
||||
SineFrequency = 0.15f;
|
||||
SineAmplitude = 0.06f;
|
||||
RotationIncrement = 0.26f;
|
||||
}
|
||||
|
||||
public override void AI()
|
||||
{
|
||||
if (projectile.ai[0] == 0f) //only happens once
|
||||
{
|
||||
if (Main.rand.NextBool(2))
|
||||
sign = false;
|
||||
}
|
||||
// On-spawn effects
|
||||
if (projectile.ai[0] == 0)
|
||||
{
|
||||
// Store the X and Y of the spawn velocity so it can be used for trig calculations
|
||||
projectile.localAI[0] = projectile.velocity.X;
|
||||
projectile.localAI[1] = projectile.velocity.Y;
|
||||
}
|
||||
|
||||
// Doesn't collide with tiles for the first 2 frames
|
||||
projectile.tileCollide = projectile.ai[0] > 2f;
|
||||
|
||||
// Apply fancy sine movement, then slight gravity, then cap velocity.
|
||||
// Original velocity is reconstructed so that it can be used in the calculation
|
||||
Vector2 originalVelocity = new Vector2(projectile.localAI[0], projectile.localAI[1]);
|
||||
ApplySineVelocity(originalVelocity);
|
||||
// projectile.velocity.Y += 0.08f;
|
||||
float currentSpeed = projectile.velocity.Length();
|
||||
float maxSpeed = 1.4f * originalVelocity.Length();
|
||||
if (currentSpeed > maxSpeed)
|
||||
projectile.velocity *= maxSpeed / currentSpeed;
|
||||
|
||||
// spawn dust
|
||||
if (Main.rand.Next(5) == 0)
|
||||
{
|
||||
Dust.NewDust(projectile.position + projectile.velocity, projectile.width, projectile.height, 85, projectile.velocity.X * 0.5f, projectile.velocity.Y * 0.5f);
|
||||
}
|
||||
projectile.ai[0]++;
|
||||
if (projectile.ai[0] > 2f)
|
||||
{
|
||||
projectile.tileCollide = true;
|
||||
}
|
||||
if (projectile.localAI[0] == 0f)
|
||||
{
|
||||
projectile.velocity.X = projectile.velocity.X + (Main.player[projectile.owner].velocity.X * 0.5f);
|
||||
startSpeedY = projectile.velocity.Y + (Main.player[projectile.owner].velocity.Y * 0.5f);
|
||||
projectile.velocity.Y = startSpeedY;
|
||||
}
|
||||
projectile.localAI[0] += 1f;
|
||||
if (projectile.localAI[0] >= 5f)
|
||||
{
|
||||
if (sign == true)
|
||||
{
|
||||
x++;
|
||||
speed += 0.01;
|
||||
projectile.velocity.Y = startSpeedY + (float)(speed * Math.Sin(x / 4));
|
||||
}
|
||||
else
|
||||
{
|
||||
x++;
|
||||
speed += 0.01;
|
||||
projectile.velocity.Y = startSpeedY + (float)(speed * -Math.Sin(x / 4));
|
||||
}
|
||||
}
|
||||
|
||||
// freely spins instead of facing forwards
|
||||
projectile.rotation += RotationIncrement;
|
||||
projectile.spriteDirection = projectile.direction = (projectile.velocity.X > 0).ToDirectionInt();
|
||||
projectile.rotation = projectile.velocity.ToRotation();
|
||||
projectile.ai[0]++;
|
||||
}
|
||||
|
||||
private void ApplySineVelocity(Vector2 baseVelocity)
|
||||
{
|
||||
float radians = projectile.ai[1] * (-MathHelper.PiOver2 + SineFrequency * projectile.ai[0]);
|
||||
projectile.velocity += SineAmplitude * baseVelocity.RotatedBy(radians);
|
||||
}
|
||||
|
||||
public override void Kill(int timeLeft)
|
||||
|
||||
@@ -60,9 +60,9 @@ namespace CalamityMod.Projectiles.Rogue
|
||||
if (projectile.Calamity().stealthStrike) //Stealth strike
|
||||
{
|
||||
stealthStrikeTimer++;
|
||||
if (stealthStrikeTimer >= 18)
|
||||
if (stealthStrikeTimer >= 14)
|
||||
{
|
||||
Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, 0f, 0f, ModContent.ProjectileType<TurbulanceWindSlash>(), projectile.damage / 3, projectile.knockBack / 3, projectile.owner, 1f, 1f);
|
||||
Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, 0f, 0f, ModContent.ProjectileType<TurbulanceWindSlash>(), projectile.damage, projectile.knockBack / 2, projectile.owner, 1f, 1f);
|
||||
stealthStrikeTimer = 0;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,50 @@
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using Microsoft.Xna.Framework;
|
||||
|
||||
namespace CalamityMod.Projectiles.Typeless
|
||||
{
|
||||
public class ShadowflameExplosion : ModProjectile
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Shadowflame Explosion");
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
projectile.width = 75;
|
||||
projectile.height = 75;
|
||||
projectile.friendly = true;
|
||||
projectile.penetrate = -1;
|
||||
projectile.timeLeft = 30;
|
||||
projectile.tileCollide = false;
|
||||
projectile.usesLocalNPCImmunity = true;
|
||||
projectile.localNPCHitCooldown = 10;
|
||||
}
|
||||
|
||||
public override void AI()
|
||||
{
|
||||
projectile.ai[1]++;
|
||||
if (projectile.ai[1] >= 3f)
|
||||
{
|
||||
for (int i = 0; i < 2; i++)
|
||||
{
|
||||
Vector2 Dspeed = new Vector2(2.3f, 2.3f).RotatedBy(MathHelper.ToRadians(projectile.ai[0]));
|
||||
float Dscale = Main.rand.NextFloat(1f, 1.3f);
|
||||
Dust.NewDust(projectile.Center, 1, 1, DustID.Shadowflame, Dspeed.X, Dspeed.Y, 0, default, Dscale);
|
||||
Dust.NewDust(projectile.Center, 1, 1, DustID.Shadowflame, -Dspeed.X, -Dspeed.Y, 0, default, Dscale);
|
||||
projectile.ai[0] += 19f;
|
||||
}
|
||||
projectile.ai[1] = 0f;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public override void OnHitNPC(NPC target, int damage, float knockback, bool crit)
|
||||
{
|
||||
target.AddBuff(BuffID.ShadowFlame, 180);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 148 B |
@@ -0,0 +1,52 @@
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using Microsoft.Xna.Framework;
|
||||
|
||||
namespace CalamityMod.Projectiles.Typeless
|
||||
{
|
||||
public class ShadowflameExplosionBig : ModProjectile
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Shadowflame Explosion");
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
projectile.width = 130;
|
||||
projectile.height = 130;
|
||||
projectile.friendly = true;
|
||||
projectile.penetrate = -1;
|
||||
projectile.timeLeft = 30;
|
||||
projectile.tileCollide = false;
|
||||
projectile.usesLocalNPCImmunity = true;
|
||||
projectile.localNPCHitCooldown = 10;
|
||||
}
|
||||
|
||||
public override void AI()
|
||||
{
|
||||
projectile.ai[1]++;
|
||||
if (projectile.ai[1] >= 3f)
|
||||
{
|
||||
for (int i = 0; i < 3; i++)
|
||||
{
|
||||
Vector2 Dspeed = new Vector2(4.3f, 4.3f).RotatedBy(MathHelper.ToRadians(projectile.ai[0]));
|
||||
float Dscale = Main.rand.NextFloat(1f, 1.5f);
|
||||
Dust.NewDust(projectile.Center, 1, 1, DustID.Shadowflame, Dspeed.X, Dspeed.Y, 0, default, Dscale);
|
||||
Vector2 Ds2 = Dspeed.RotatedBy(MathHelper.ToRadians(120));
|
||||
Dust.NewDust(projectile.Center, 1, 1, DustID.Shadowflame, Ds2.X, Ds2.Y, 0, default, Dscale);
|
||||
Vector2 Ds3 = Dspeed.RotatedBy(MathHelper.ToRadians(240));
|
||||
Dust.NewDust(projectile.Center, 1, 1, DustID.Shadowflame, Ds3.X, Ds3.Y, 0, default, Dscale);
|
||||
projectile.ai[0] += 19f;
|
||||
}
|
||||
projectile.ai[1] = 0f;
|
||||
}
|
||||
}
|
||||
|
||||
public override void OnHitNPC(NPC target, int damage, float knockback, bool crit)
|
||||
{
|
||||
target.AddBuff(BuffID.ShadowFlame, 180);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 148 B |
@@ -753,6 +753,13 @@ namespace CalamityMod
|
||||
});
|
||||
RecipeGroup.RegisterGroup("AnyGoldBar", group);
|
||||
|
||||
group = new RecipeGroup(() => "Any Evil Bar", new int[]
|
||||
{
|
||||
ItemID.DemoniteBar,
|
||||
ItemID.CrimtaneBar
|
||||
});
|
||||
RecipeGroup.RegisterGroup("AnyEvilBar", group);
|
||||
|
||||
group = new RecipeGroup(() => "Any Cobalt Bar", new int[]
|
||||
{
|
||||
ItemID.CobaltBar,
|
||||
|
||||
@@ -324,6 +324,130 @@ namespace CalamityMod
|
||||
proj = x;
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// Call this function in the ai of your projectile so it can stick to enemies, also requires ModifyHitNPCSticky to be called in ModifyHitNPC
|
||||
/// </summary>
|
||||
/// <param name="projectile">The projectile you're adding sticky behaviour to</param>
|
||||
public static void StickyProjAI (Projectile projectile)
|
||||
{
|
||||
if (projectile.ai[0] == 1f)
|
||||
{
|
||||
projectile.tileCollide = false;
|
||||
int num988 = 15;
|
||||
bool flag54 = false;
|
||||
bool flag55 = false;
|
||||
projectile.localAI[0]++;
|
||||
if (projectile.localAI[0] % 30f == 0f)
|
||||
{
|
||||
flag55 = true;
|
||||
}
|
||||
int num989 = (int)projectile.ai[1];
|
||||
if (projectile.localAI[0] >= (float)(60 * num988))
|
||||
{
|
||||
flag54 = true;
|
||||
}
|
||||
else if (num989 < 0 || num989 >= 200)
|
||||
{
|
||||
flag54 = true;
|
||||
}
|
||||
else if (Main.npc[num989].active && !Main.npc[num989].dontTakeDamage)
|
||||
{
|
||||
projectile.Center = Main.npc[num989].Center - projectile.velocity * 2f;
|
||||
projectile.gfxOffY = Main.npc[num989].gfxOffY;
|
||||
if (flag55)
|
||||
{
|
||||
Main.npc[num989].HitEffect(0, 1.0);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
flag54 = true;
|
||||
}
|
||||
if (flag54)
|
||||
{
|
||||
projectile.Kill();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Call this function in ModifyHitNPC to make your projectiles stick to enemies, needs StickyProjAI to be called in the AI of the projectile
|
||||
/// </summary>
|
||||
/// <param name="projectile">The projectile you're giving sticky behaviour to</param>
|
||||
/// <param name="maxStick">How many projectiles of this type can stick to one enemy</param>
|
||||
/// <param name="constantDamage">Decides if you want the projectile to deal damage while its sticked to enemies or not</param>
|
||||
public static void ModifyHitNPCSticky(Projectile projectile, int maxStick, bool constantDamage)
|
||||
{
|
||||
Rectangle myRect = new Rectangle((int)projectile.position.X, (int)projectile.position.Y, projectile.width, projectile.height);
|
||||
if (projectile.owner == Main.myPlayer)
|
||||
{
|
||||
for (int i = 0; i < 200; i++)
|
||||
{
|
||||
if (Main.npc[i].active && !Main.npc[i].dontTakeDamage &&
|
||||
((projectile.friendly && (!Main.npc[i].friendly || projectile.type == 318 || (Main.npc[i].type == 22 && projectile.owner < 255 && Main.player[projectile.owner].killGuide) || (Main.npc[i].type == 54 && projectile.owner < 255 && Main.player[projectile.owner].killClothier))) ||
|
||||
(projectile.hostile && Main.npc[i].friendly && !Main.npc[i].dontTakeDamageFromHostiles)) && (projectile.owner < 0 || Main.npc[i].immune[projectile.owner] == 0 || projectile.maxPenetrate == 1))
|
||||
{
|
||||
if (Main.npc[i].noTileCollide || !projectile.ownerHitCheck || projectile.CanHit(Main.npc[i]))
|
||||
{
|
||||
bool flag3;
|
||||
if (Main.npc[i].type == 414)
|
||||
{
|
||||
Rectangle rect = Main.npc[i].getRect();
|
||||
int num5 = 8;
|
||||
rect.X -= num5;
|
||||
rect.Y -= num5;
|
||||
rect.Width += num5 * 2;
|
||||
rect.Height += num5 * 2;
|
||||
flag3 = projectile.Colliding(myRect, rect);
|
||||
}
|
||||
else
|
||||
{
|
||||
flag3 = projectile.Colliding(myRect, Main.npc[i].getRect());
|
||||
}
|
||||
if (flag3)
|
||||
{
|
||||
if (Main.npc[i].reflectingProjectiles && projectile.CanReflect())
|
||||
{
|
||||
Main.npc[i].ReflectProjectile(projectile.whoAmI);
|
||||
return;
|
||||
}
|
||||
projectile.ai[0] = 1f;
|
||||
projectile.ai[1] = (float)i;
|
||||
projectile.velocity = (Main.npc[i].Center - projectile.Center) * 0.75f;
|
||||
projectile.netUpdate = true;
|
||||
if (!constantDamage)
|
||||
projectile.damage = 0;
|
||||
Point[] array2 = new Point[maxStick];
|
||||
int num29 = 0;
|
||||
for (int l = 0; l < 1000; l++)
|
||||
{
|
||||
if (l != projectile.whoAmI && Main.projectile[l].active && Main.projectile[l].owner == Main.myPlayer && Main.projectile[l].type == projectile.type && Main.projectile[l].ai[0] == 1f && Main.projectile[l].ai[1] == (float)i)
|
||||
{
|
||||
array2[num29++] = new Point(l, Main.projectile[l].timeLeft);
|
||||
if (num29 >= array2.Length)
|
||||
{
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
if (num29 >= array2.Length)
|
||||
{
|
||||
int num30 = 0;
|
||||
for (int m = 1; m < array2.Length; m++)
|
||||
{
|
||||
if (array2[m].Y < array2[num30].Y)
|
||||
{
|
||||
num30 = m;
|
||||
}
|
||||
}
|
||||
Main.projectile[array2[num30].X].Kill();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region Tile Utilities
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
author = Fabsol and the Dev Team
|
||||
version = 1.4.2.108
|
||||
version = 1.4.2.109
|
||||
displayName = Calamity Mod (No Calamity Music)
|
||||
homepage = https://forums.terraria.org/index.php?threads/calamity-mod.44065/
|
||||
buildIgnore = .vs\*, Properties\*, *.csproj, *.user, obj\*, bin\*, *.config, .git\*, LICENSE, README.md, .editorconfig, .gitignore, .gitattributes
|
||||
|
||||