cryogen fix
This commit is contained in:
1 parent
fe831ad9ff
commit
4f5e85230e
4 files changed
+6
-6
No files matched your search
@@ -53,7 +53,7 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
{
|
||||
if (target.life <= (target.lifeMax * 0.5f))
|
||||
{
|
||||
int boom = Projectile.NewProjectile(target.Center.X, target.Center.Y, 0f, 0f, ModContent.ProjectileType<FuckYou>(), (int)(item.damage * (player.allDamage + player.meleeDamage - 1f)), knockback, player.whoAmI, 0f, 0.85f + Main.rand.NextFloat() * 1.15f);
|
||||
int boom = Projectile.NewProjectile(target.Center.X, target.Center.Y, 0f, 0f, ModContent.ProjectileType<FuckYou>(), (int)(item.damage * player.MeleeDamage()), knockback, player.whoAmI, 0f, 0.85f + Main.rand.NextFloat() * 1.15f);
|
||||
Main.projectile[boom].Calamity().forceMelee = true;
|
||||
}
|
||||
}
|
||||
@@ -62,7 +62,7 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
{
|
||||
if (target.statLife <= (target.statLifeMax2 * 0.5f))
|
||||
{
|
||||
int boom = Projectile.NewProjectile(target.Center.X, target.Center.Y, 0f, 0f, ModContent.ProjectileType<FuckYou>(), (int)(item.damage * (player.allDamage + player.meleeDamage - 1f)), item.knockBack, player.whoAmI, 0f, 0.85f + Main.rand.NextFloat() * 1.15f);
|
||||
int boom = Projectile.NewProjectile(target.Center.X, target.Center.Y, 0f, 0f, ModContent.ProjectileType<FuckYou>(), (int)(item.damage * player.MeleeDamage()), item.knockBack, player.whoAmI, 0f, 0.85f + Main.rand.NextFloat() * 1.15f);
|
||||
Main.projectile[boom].Calamity().forceMelee = true;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -100,7 +100,7 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
Projectile.NewProjectile(p.ToWorldCoordinates(8f, 0f), Vector2.Zero, ModContent.ProjectileType<LightningThing>(), 0, 0f, player.whoAmI);
|
||||
}
|
||||
}
|
||||
if (player.itemAnimation == (int)((double)player.itemAnimationMax * 0.5))
|
||||
if (player.itemAnimation == (int)(player.itemAnimationMax * 0.5))
|
||||
{
|
||||
player.Calamity().gaelSwipes++;
|
||||
if (player.statLife <= player.statLifeMax2 * 0.5f)
|
||||
|
||||
@@ -83,7 +83,7 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
num79 *= num80;
|
||||
float num114 = num78;
|
||||
float num115 = num79 + (float)Main.rand.Next(-80, 81) * 0.02f;
|
||||
int proj = Projectile.NewProjectile(vector2.X, vector2.Y, num114, num115, 645, (int)(item.damage * (player.allDamage + player.meleeDamage - 1f) * 0.5), knockback, i, 0f, (float)Main.rand.Next(3));
|
||||
int proj = Projectile.NewProjectile(vector2.X, vector2.Y, num114, num115, ProjectileID.LunarFlare, (int)(item.damage * player.MeleeDamage() * 0.5), knockback, i, 0f, (float)Main.rand.Next(3));
|
||||
Main.projectile[proj].Calamity().forceMelee = true;
|
||||
}
|
||||
}
|
||||
@@ -134,7 +134,7 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
num79 *= num80;
|
||||
float num114 = num78;
|
||||
float num115 = num79 + (float)Main.rand.Next(-80, 81) * 0.02f;
|
||||
int proj = Projectile.NewProjectile(vector2.X, vector2.Y, num114, num115, 645, (int)(item.damage * (player.allDamage + player.meleeDamage - 1f) * 0.5), item.knockBack, i, 0f, (float)Main.rand.Next(3));
|
||||
int proj = Projectile.NewProjectile(vector2.X, vector2.Y, num114, num115, ProjectileID.LunarFlare, (int)(item.damage * player.MeleeDamage() * 0.5), item.knockBack, i, 0f, (float)Main.rand.Next(3));
|
||||
Main.projectile[proj].Calamity().forceMelee = true;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -738,7 +738,7 @@ namespace CalamityMod.NPCs.Cryogen
|
||||
{
|
||||
chance = 20;
|
||||
}
|
||||
if (Main.rand.NextBool(50))
|
||||
if (Main.rand.NextBool(chance))
|
||||
{
|
||||
string key = "Mods.CalamityMod.CryogenBossText";
|
||||
Color messageColor = Color.Cyan;
|
||||
|
||||
Reference in new issue
Block a user