balancing crap

This commit is contained in:
termigator1359 committed 2020-01-04 16:04:29 -05:00
1 parent 310e9a2a1b
commit 1caa033fdf
12 files changed
+40 -51

No files matched your search

+4 -2
View File
@@ -11,7 +11,9 @@ namespace CalamityMod.Items.Weapons.Melee
{
DisplayName.SetDefault("The Microwave");
//Tooltip.SetDefault("MMMMMMMMMMMMM");
Tooltip.SetDefault("Fries nearby enemies with radiation\nAn exceptionally agile yoyo\n'Cooking, Astral Infection style'");
Tooltip.SetDefault("Fries nearby enemies with radiation\n" +
"An exceptionally agile yoyo\n" +
"Cooking, Astral Infection style");
ItemID.Sets.Yoyo[item.type] = true;
ItemID.Sets.GamepadExtraRange[item.type] = 15;
ItemID.Sets.GamepadSmartQuickReach[item.type] = true;
@@ -22,7 +24,7 @@ namespace CalamityMod.Items.Weapons.Melee
item.width = 34;
item.height = 34;
item.melee = true;
item.damage = 80;
item.damage = 65;
item.knockBack = 3f;
item.useTime = 22;
item.useAnimation = 22;
+1 -1
View File
@@ -19,7 +19,7 @@ namespace CalamityMod.Items.Weapons.Rogue
public override void SafeSetDefaults()
{
item.width = 44;
item.damage = 450;
item.damage = 400;
item.noMelee = true;
item.noUseGraphic = true;
item.useAnimation = 31;
+1 -1
View File
@@ -9,7 +9,7 @@ namespace CalamityMod.Items.Weapons.Rogue
{
public class LatcherMine : RogueWeapon
{
public const int BaseDamage = 60;
public const int BaseDamage = 80;
public override void SetStaticDefaults()
{
DisplayName.SetDefault("Latcher Mine");
+11 -23
View File
@@ -50,27 +50,6 @@ namespace CalamityMod.Items.Weapons.Summon
item.Calamity().postMoonLordRarity = 16;
}
public override void ModifyWeaponDamage(Player player, ref float add, ref float mult, ref float flat)
{
if (AttackMode == 0) //lasers
{
mult -= 0.25f; //75%
}
if (AttackMode == 1) //icicles
{
mult += 0f; //100%
}
if (AttackMode == 2) //ramming
{
mult += 0f; //100%
}
if (AttackMode == 3) //flamethrower
{
mult += 0f; //100%
}
base.ModifyWeaponDamage(player, ref add, ref mult, ref flat);
}
public override bool CanUseItem(Player player)
{
if (player.maxMinions < 10f)
@@ -94,8 +73,17 @@ namespace CalamityMod.Items.Weapons.Summon
projectile.Kill();
}
}
int body = Projectile.NewProjectile(vector2.X, vector2.Y, 0f, 0f, type, damage, knockBack, player.whoAmI, AttackMode, 0f);
int limbs = Projectile.NewProjectile(vector2.X, vector2.Y, 0f, 0f, ModContent.ProjectileType<EndoCooperLimbs>(), damage, knockBack, player.whoAmI, AttackMode, body);
float dmgMult = 1f;
if (AttackMode == 0) //lasers
dmgMult = 0.75f;
if (AttackMode == 1) //icicles
dmgMult = 1f;
if (AttackMode == 2) //melee
dmgMult = 1f;
if (AttackMode == 3) //flamethrower
dmgMult = 1f;
int body = Projectile.NewProjectile(vector2.X, vector2.Y, 0f, 0f, type, (int)(damage * dmgMult), knockBack, player.whoAmI, AttackMode, 0f);
int limbs = Projectile.NewProjectile(vector2.X, vector2.Y, 0f, 0f, ModContent.ProjectileType<EndoCooperLimbs>(), (int)(damage * dmgMult), knockBack, player.whoAmI, AttackMode, body);
Main.projectile[body].ai[1] = limbs;
AttackMode++;
if (AttackMode > 3)
+1 -1
View File
@@ -15,7 +15,7 @@ namespace CalamityMod.Items.Weapons.Summon
public override void SetDefaults()
{
item.damage = 45;
item.damage = 36;
item.mana = 10;
item.width = 50;
item.height = 50;
+11 -10
View File
@@ -42,32 +42,33 @@ namespace CalamityMod.Items.Weapons.Summon
item.Calamity().postMoonLordRarity = 13;
}
public override bool CanUseItem(Player player)
{
return siriusSlots >= 1;
}
public override void HoldItem(Player player)
{
double minionCount = 0;
for (int j = 0; j < Main.projectile.Length; j++)
{
if (Main.projectile[j].active && Main.projectile[j].owner == player.whoAmI && Main.projectile[j].minion)
Projectile projectile = Main.projectile[j];
if (projectile.active && projectile.owner == player.whoAmI && projectile.minion && projectile.type != ModContent.ProjectileType<SiriusMinion>())
{
minionCount += Main.projectile[j].minionSlots;
minionCount += projectile.minionSlots;
}
}
siriusSlots = (int)((double)player.maxMinions - minionCount);
}
public override bool CanUseItem(Player player)
{
return siriusSlots >= 1;
}
public override bool Shoot(Player player, ref Microsoft.Xna.Framework.Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack)
{
for (int x = 0; x < Main.projectile.Length; x++)
{
Projectile projectile = Main.projectile[x];
if (projectile.active && projectile.owner == player.whoAmI && projectile.type == ModContent.ProjectileType<SiriusMinion>())
Projectile projectile2 = Main.projectile[x];
if (projectile2.active && projectile2.owner == player.whoAmI && projectile2.type == ModContent.ProjectileType<SiriusMinion>())
{
projectile.Kill();
projectile2.Kill();
}
}
position = Main.MouseWorld;
+1 -1
View File
@@ -2460,7 +2460,7 @@ namespace CalamityMod.NPCs
{
damage = (int)(damage * 0.2);
}
else if (projectile.type == ProjectileID.DD2BetsyArrow)
else if (projectile.type == ProjectileID.DD2BetsyArrow || projectile.type == ModContent.ProjectileType<PlaguenadeProj>())
{
damage = (int)(damage * 0.3);
}
+1 -1
View File
@@ -1079,7 +1079,7 @@ namespace CalamityMod.NPCs.Providence
DropHelper.DropItemCondition(npc, ModContent.ItemType<ElysianWings>(), biomeType != 2);
DropHelper.DropItemCondition(npc, ModContent.ItemType<ElysianAegis>(), biomeType == 2);
DropHelper.DropItemCondition(npc, ModContent.ItemType<RuneofCos>(), !CalamityWorld.downedProvidence);
DropHelper.DropItemCondition(npc, ModContent.ItemType<RuneofCos>(), true, !CalamityWorld.downedProvidence);
// All other drops are contained in the bag, so they only drop directly on Normal
if (!Main.expertMode)
+3 -3
View File
@@ -208,7 +208,7 @@ namespace CalamityMod.Projectiles.Rogue
projectile.position.X = projectile.position.X - (float)(projectile.width / 2);
projectile.position.Y = projectile.position.Y - (float)(projectile.height / 2);
projectile.Damage();
for (int i = 0; i < (projectile.Calamity().stealthStrike ? 8 : 5); i++)
for (int i = 0; i < (projectile.Calamity().stealthStrike ? 7 : 4); i++)
{
if (Main.rand.NextBool(2) && projectile.Calamity().stealthStrike)
{
@@ -221,11 +221,11 @@ namespace CalamityMod.Projectiles.Rogue
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 / 2, 1f, projectile.owner);
projectile.damage / 3, 1f, projectile.owner);
Main.projectile[fireIndex].Calamity().forceRogue = true;
Main.projectile[fireIndex].penetrate = -1;
Main.projectile[fireIndex].usesLocalNPCImmunity = true;
Main.projectile[fireIndex].localNPCHitCooldown = 10;
Main.projectile[fireIndex].localNPCHitCooldown = -2;
}
}
}
+3 -3
View File
@@ -95,7 +95,7 @@ namespace CalamityMod.Projectiles.Summon
}
else
{
for (int num645 = 0; num645 < 200; num645++)
for (int num645 = 0; num645 < Main.npc.Length; num645++)
{
NPC nPC2 = Main.npc[num645];
if (nPC2.CanBeChasedBy(projectile, false))
@@ -155,9 +155,9 @@ namespace CalamityMod.Projectiles.Summon
}
if (projectile.ai[1] > 0f)
{
projectile.ai[1] += (float)Main.rand.Next(1, 4);
projectile.ai[1] += (float)Main.rand.Next(1, 3);
}
if (projectile.ai[1] > 90f)
if (projectile.ai[1] > 100f)
{
projectile.ai[1] = 0f;
projectile.netUpdate = true;
+2 -5
View File
@@ -144,12 +144,9 @@ namespace CalamityMod.Projectiles.Summon
target.AddBuff(BuffID.Frostburn, 180);
}
public override bool? CanHitNPC(NPC target)
public override bool CanDamage()
{
if (AttackMode == 2 && !target.townNPC && target.type != NPCID.DD2EterniaCrystal && !target.immortal && !target.dontTakeDamage)
return true;
else
return false;
return AttackMode == 2;
}
private void SpawnShards()
+1
View File
@@ -23,6 +23,7 @@ namespace CalamityMod.Projectiles.Summon
projectile.timeLeft = 1000;
projectile.usesLocalNPCImmunity = true;
projectile.localNPCHitCooldown = 10;
projectile.tileCollide = false;
}
public override void AI()