Merge branch 'master' of https://github.com/UncleDanny/CalamityMod
This commit is contained in:
commit
bca1df08ab
12 files changed
+20
-18
No files matched your search
@@ -3386,7 +3386,7 @@ namespace CalamityMod.CalPlayer
|
||||
private static void RogueMirrors(Player player, CalamityPlayer modPlayer)
|
||||
{
|
||||
Rectangle rectangle = new Rectangle((int)((double)player.position.X + (double)player.velocity.X * 0.5 - 4.0), (int)((double)player.position.Y + (double)player.velocity.Y * 0.5 - 4.0), player.width + 8, player.height + 8);
|
||||
for (int i = 0; i < 200; i++)
|
||||
for (int i = 0; i < Main.maxNPCs; i++)
|
||||
{
|
||||
if (Main.npc[i].active && !Main.npc[i].dontTakeDamage && !Main.npc[i].friendly && !Main.npc[i].townNPC && Main.npc[i].immune[player.whoAmI] <= 0 && Main.npc[i].damage > 0)
|
||||
{
|
||||
@@ -3394,7 +3394,7 @@ namespace CalamityMod.CalPlayer
|
||||
Rectangle rect = nPC.getRect();
|
||||
if (rectangle.Intersects(rect) && (nPC.noTileCollide || player.CanHit(nPC)))
|
||||
{
|
||||
if (Main.rand.Next(10) == 0 && player.immuneTime <= 0)
|
||||
if (Main.rand.NextBool(10) && player.immuneTime <= 0)
|
||||
{
|
||||
modPlayer.AbyssMirrorEvade();
|
||||
modPlayer.EclipseMirrorEvade();
|
||||
@@ -3404,7 +3404,7 @@ namespace CalamityMod.CalPlayer
|
||||
}
|
||||
}
|
||||
|
||||
for (int i = 0; i < 1000; i++)
|
||||
for (int i = 0; i < Main.maxProjectiles; i++)
|
||||
{
|
||||
if (Main.projectile[i].active && Main.projectile[i].hostile && Main.projectile[i].damage > 0)
|
||||
{
|
||||
@@ -3412,7 +3412,7 @@ namespace CalamityMod.CalPlayer
|
||||
Rectangle rect = proj.getRect();
|
||||
if (rectangle.Intersects(rect))
|
||||
{
|
||||
if (Main.rand.Next(10) == 0)
|
||||
if (Main.rand.NextBool(10))
|
||||
{
|
||||
modPlayer.AbyssMirrorEvade();
|
||||
modPlayer.EclipseMirrorEvade();
|
||||
|
||||
+1
-2
@@ -1292,8 +1292,7 @@ namespace CalamityMod
|
||||
ItemID.DaedalusStormbow,
|
||||
ItemID.PhoenixBlaster,
|
||||
ItemID.VenusMagnum,
|
||||
ItemID.BlizzardStaff,
|
||||
ItemID.StardustDragonStaff
|
||||
ItemID.BlizzardStaff
|
||||
};
|
||||
|
||||
pumpkinMoonBuffList = new List<int>()
|
||||
|
||||
@@ -106,6 +106,8 @@ namespace CalamityMod.Items
|
||||
item.damage = (int)((double)item.damage * 0.85);
|
||||
else if (CalamityMod.quarterDamageNerfList?.Contains(item.type) ?? false)
|
||||
item.damage = (int)((double)item.damage * 0.75);
|
||||
else if (item.type == ItemID.StardustDragonStaff)
|
||||
item.damage = (int)((double)item.damage * 0.5);
|
||||
|
||||
if (item.type == ItemID.BookStaff)
|
||||
item.mana = 10;
|
||||
|
||||
@@ -32,7 +32,7 @@ namespace CalamityMod.Items.Weapons.Magic
|
||||
item.noMelee = true;
|
||||
item.UseSound = mod.GetLegacySoundSlot(SoundType.Item, "Sounds/Item/IceBarrageCast");
|
||||
|
||||
item.damage = 6500;
|
||||
item.damage = 5800;
|
||||
item.knockBack = 6f;
|
||||
item.useTime = 300;
|
||||
item.useAnimation = 300;
|
||||
|
||||
@@ -18,7 +18,7 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
public override void SetDefaults()
|
||||
{
|
||||
item.width = 62;
|
||||
item.damage = 36;
|
||||
item.damage = 33;
|
||||
item.melee = true;
|
||||
item.useAnimation = 30;
|
||||
item.useTime = 30;
|
||||
|
||||
@@ -15,12 +15,12 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
}
|
||||
public override void SetDefaults()
|
||||
{
|
||||
item.damage = 38;
|
||||
item.damage = 32;
|
||||
item.ranged = true;
|
||||
item.width = 42;
|
||||
item.height = 62;
|
||||
item.useTime = 19;
|
||||
item.useAnimation = 19;
|
||||
item.useTime = 20;
|
||||
item.useAnimation = 20;
|
||||
item.useStyle = 5;
|
||||
item.useTurn = false;
|
||||
item.noMelee = true;
|
||||
|
||||
@@ -19,7 +19,7 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
item.damage = 150;
|
||||
item.damage = 142;
|
||||
item.ranged = true;
|
||||
item.width = 46;
|
||||
item.height = 78;
|
||||
@@ -64,7 +64,7 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
{
|
||||
type = ModContent.ProjectileType<TyphoonArrow>();
|
||||
}
|
||||
int num121 = Projectile.NewProjectile(vector2.X + value9.X, vector2.Y + value9.Y, speedX, speedY, type, damage, knockBack, player.whoAmI, 0f, 0f);
|
||||
int num121 = Projectile.NewProjectile(vector2.X + value9.X, vector2.Y + value9.Y, speedX, speedY, type, (int)(damage * 1.1f), knockBack, player.whoAmI, 0f, 0f);
|
||||
Main.projectile[num121].Calamity().forceRanged = true;
|
||||
Main.projectile[num121].noDropItem = true;
|
||||
Main.projectile[num121].arrow = true;
|
||||
|
||||
@@ -20,7 +20,7 @@ namespace CalamityMod.Items.Weapons.Summon
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
item.damage = 30;
|
||||
item.damage = 25;
|
||||
item.mana = 10;
|
||||
item.width = 46;
|
||||
item.height = 46;
|
||||
|
||||
@@ -27,6 +27,7 @@ namespace CalamityMod.Projectiles.Melee
|
||||
projectile.penetrate = 2;
|
||||
projectile.alpha = 120;
|
||||
projectile.timeLeft = 200;
|
||||
projectile.tileCollide = false;
|
||||
}
|
||||
|
||||
public override void AI()
|
||||
|
||||
@@ -138,7 +138,7 @@ namespace CalamityMod.Projectiles.Summon
|
||||
}
|
||||
else
|
||||
{
|
||||
for (int num645 = 0; num645 < 200; num645++)
|
||||
for (int num645 = 0; num645 < Main.maxNPCs; num645++)
|
||||
{
|
||||
NPC nPC2 = Main.npc[num645];
|
||||
if (nPC2.CanBeChasedBy(projectile, false) || nPC2.type == NPCID.DukeFishron)
|
||||
|
||||
@@ -159,7 +159,7 @@ namespace CalamityMod.Projectiles.Summon
|
||||
}
|
||||
else
|
||||
{
|
||||
for (int num645 = 0; num645 < 200; num645++)
|
||||
for (int num645 = 0; num645 < Main.maxNPCs; num645++)
|
||||
{
|
||||
NPC nPC2 = Main.npc[num645];
|
||||
if (nPC2.CanBeChasedBy(projectile, false) || nPC2.type == NPCID.DukeFishron)
|
||||
@@ -285,7 +285,7 @@ namespace CalamityMod.Projectiles.Summon
|
||||
if (target.type == NPCID.DukeFishron)
|
||||
damage = (int)((double)damage * 2.0);
|
||||
else if (target.type == NPCID.CultistBoss)
|
||||
damage = (int)((double)damage * 0.5);
|
||||
damage = (int)((double)damage * 0.6);
|
||||
}
|
||||
|
||||
public override void OnHitNPC(NPC target, int damage, float knockback, bool crit)
|
||||
|
||||
@@ -79,7 +79,7 @@ namespace CalamityMod.Projectiles.Summon
|
||||
if (target.type == NPCID.DukeFishron)
|
||||
damage = (int)((double)damage * 2.0);
|
||||
else if (target.type == NPCID.CultistBoss)
|
||||
damage = (int)((double)damage * 0.5);
|
||||
damage = (int)((double)damage * 0.6);
|
||||
}
|
||||
|
||||
public override void Kill(int timeLeft)
|
||||
|
||||
Reference in new issue
Block a user