This commit is contained in:
termigator1359 committed 2019-12-13 15:44:50 -05:00
commit 2c435ac7f8
8 files changed
+16 -10

No files matched your search

+2 -2
View File
@@ -87,7 +87,7 @@ namespace CalamityMod.Items.Weapons.Rogue
//public override void AddRecipes()
//{
// ModRecipe recipe = new ModRecipe(mod);
// recipe.AddIngredient(ItemID.SpikyBall, 100);
// recipe.AddIngredient(ItemID.SpikyBall, 15);
// recipe.AddIngredient(ItemID.LightShard);
// recipe.AddIngredient(ItemID.DarkShard);
// recipe.AddIngredient(ItemID.HallowedBar, 2);
@@ -102,7 +102,7 @@ namespace CalamityMod.Items.Weapons.Rogue
// Ideally new projectiles will fill in the most recently vacated spots in the pattern
int[] activeSlots = new int[10] { -1, -1, -1, -1, -1, -1, -1, -1, -1, -1 };
for (int i = 0; i < 1000; i++)
for (int i = 0; i < Main.maxProjectiles; i++)
{
Projectile proj = Main.projectile[i];
if (proj.type == ModContent.ProjectileType<NychthemeronOrb>() && proj.owner == player.whoAmI && proj.active && proj.localAI[0] == 0f && activeSlots[(int)proj.localAI[1]] == -1)
+1 -1
View File
@@ -17,7 +17,7 @@ namespace CalamityMod.Items.Weapons.Summon
public override void SetDefaults()
{
item.damage = 30;
item.damage = 26;
item.mana = 10;
item.width = 50;
item.height = 50;
+1 -1
View File
@@ -17,7 +17,7 @@ namespace CalamityMod.Items.Weapons.Summon
public override void SetDefaults()
{
item.damage = 30;
item.damage = 26;
item.mana = 10;
item.width = 50;
item.height = 50;
+8 -2
View File
@@ -30,6 +30,12 @@ namespace CalamityMod.Projectiles.Rogue
public override void AI()
{
projectile.rotation = (float)Math.Atan2((double)projectile.velocity.Y, (double)projectile.velocity.X) + 0.785f;
if (Main.rand.NextBool(5))
{
int dust = Dust.NewDust(projectile.position, projectile.width, projectile.height, 15);
Main.dust[dust].noGravity = true;
}
}
public override bool OnTileCollide(Vector2 oldVelocity)
@@ -50,7 +56,7 @@ namespace CalamityMod.Projectiles.Rogue
{
if (target.life <= 0)
{
Projectile.NewProjectile(target.Center.X, target.Center.Y, 0f, 0f, ModContent.ProjectileType<ShinobiHealOrb>(), 0, 0, Main.myPlayer, 0, 30);
Projectile.NewProjectile(target.Center.X, target.Center.Y, 0f, 0f, ModContent.ProjectileType<ShinobiHealOrb>(), 0, 0, Main.myPlayer, 0, 10);
}
}
@@ -59,7 +65,7 @@ namespace CalamityMod.Projectiles.Rogue
for (int i = 0; i < 5; i++)
{
int dustType = 42;
int dust = Dust.NewDust(projectile.Center, 1, 1, dustType, 0, 0, 0, default, 1.5f);
int dust = Dust.NewDust(projectile.Center, 1, 1, dustType, projectile.velocity.X / 2, projectile.velocity.Y / 2, 0, default, 1.5f);
Main.dust[dust].noGravity = true;
}
}
+1 -1
View File
@@ -36,7 +36,7 @@ namespace CalamityMod.Projectiles.Summon
aiType = 266;
projectile.tileCollide = false;
projectile.usesLocalNPCImmunity = true;
projectile.localNPCHitCooldown = 10;
projectile.localNPCHitCooldown = 23;
}
public override bool TileCollideStyle(ref int width, ref int height, ref bool fallThrough)
@@ -34,7 +34,7 @@ namespace CalamityMod.Projectiles.Summon
aiType = 266;
projectile.tileCollide = false;
projectile.usesLocalNPCImmunity = true;
projectile.localNPCHitCooldown = 10;
projectile.localNPCHitCooldown = 23;
}
public override bool TileCollideStyle(ref int width, ref int height, ref bool fallThrough)
+1 -1
View File
@@ -36,7 +36,7 @@ namespace CalamityMod.Projectiles.Summon
aiType = 266;
projectile.tileCollide = false;
projectile.usesLocalNPCImmunity = true;
projectile.localNPCHitCooldown = 10;
projectile.localNPCHitCooldown = 23;
}
public override bool TileCollideStyle(ref int width, ref int height, ref bool fallThrough)
+1 -1
View File
@@ -34,7 +34,7 @@ namespace CalamityMod.Projectiles.Summon
aiType = 266;
projectile.tileCollide = false;
projectile.usesLocalNPCImmunity = true;
projectile.localNPCHitCooldown = 10;
projectile.localNPCHitCooldown = 23;
}
public override bool TileCollideStyle(ref int width, ref int height, ref bool fallThrough)