This commit is contained in:
Storm2103 committed 2023-08-26 14:39:25 -06:00
commit 65ad05caee
57 files changed
+372 -379

No files matched your search

+5 -5
View File
@@ -302,9 +302,6 @@ namespace CalamityMod.Balancing
// 50% resist to Chicken Cannon.
NPCSpecificBalancingChanges.AddRange(Bundle(CalamityLists.ThanatosIDs, Do(new ProjectileResistBalancingRule(0.5f, ProjectileType<ChickenExplosion>()))));
// 50% resist to Prismatic Breaker. (why is this more than BOTH Rancor and Yharim's Crystal? jesus fuck this weapon seriously)
NPCSpecificBalancingChanges.AddRange(Bundle(CalamityLists.ThanatosIDs, Do(new ProjectileResistBalancingRule(0.5f, ProjectileType<PrismaticBeam>()))));
// 50% resist to Tarragon Throwing Darts Thorns. (LOL)
NPCSpecificBalancingChanges.AddRange(Bundle(CalamityLists.ThanatosIDs, Do(new ProjectileResistBalancingRule(0.5f, ProjectileType<TarraThornRight>(), ProjectileType<TarraThornTip>()))));
@@ -335,6 +332,9 @@ namespace CalamityMod.Balancing
// 30% resist to Dragon Scales and The Wand's tornadoes
NPCSpecificBalancingChanges.AddRange(Bundle(CalamityLists.ThanatosIDs, Do(new ProjectileResistBalancingRule(0.7f, ProjectileType<InfernadoFriendly>(), ProjectileType<DragonScalesInfernado>()))));
// 30% resist to Prismatic Breaker's laser beam.
NPCSpecificBalancingChanges.AddRange(Bundle(CalamityLists.ThanatosIDs, Do(new ProjectileResistBalancingRule(0.7f, ProjectileType<PrismaticBeam>()))));
// 25% resist to Dragon Rage projectiles.
NPCSpecificBalancingChanges.AddRange(Bundle(CalamityLists.ThanatosIDs, Do(new ProjectileSpecificRequirementBalancingRule(0.75f, DragonRageFilter))));
@@ -377,8 +377,8 @@ namespace CalamityMod.Balancing
// 85% resist to Chicken Cannon.
NPCSpecificBalancingChanges.Add(new NPCBalancingChange(NPCType<SoulSeekerSupreme>(), new ProjectileResistBalancingRule(0.15f, ProjectileType<ChickenExplosion>())));
// 35% resist to Subsuming Vortex.
NPCSpecificBalancingChanges.Add(new NPCBalancingChange(NPCType<SoulSeekerSupreme>(), new ProjectileResistBalancingRule(0.65f, ProjectileType<ExoVortex>(), ProjectileType<ExoVortex2>(), ProjectileType<EnormousConsumingVortex>())));
// 40% resist to Subsuming Vortex.
NPCSpecificBalancingChanges.Add(new NPCBalancingChange(NPCType<SoulSeekerSupreme>(), new ProjectileResistBalancingRule(0.6f, ProjectileType<ExoVortex>(), ProjectileType<ExoVortex2>(), ProjectileType<EnormousConsumingVortex>())));
// 30% resist to Murasama.
NPCSpecificBalancingChanges.Add(new NPCBalancingChange(NPCType<SoulSeekerSupreme>(), new ProjectileResistBalancingRule(0.7f, ProjectileType<MurasamaSlash>())));
Binary file not shown.

Before

Width:  |  Height:  |  Size: 582 B

After

Width:  |  Height:  |  Size: 607 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 567 B

After

Width:  |  Height:  |  Size: 652 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 517 B

After

Width:  |  Height:  |  Size: 584 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 633 B

After

Width:  |  Height:  |  Size: 694 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 524 B

After

Width:  |  Height:  |  Size: 720 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 561 B

After

Width:  |  Height:  |  Size: 627 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 555 B

After

Width:  |  Height:  |  Size: 661 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 594 B

After

Width:  |  Height:  |  Size: 698 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 591 B

After

Width:  |  Height:  |  Size: 702 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 604 B

After

Width:  |  Height:  |  Size: 776 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 552 B

After

Width:  |  Height:  |  Size: 664 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 591 B

After

Width:  |  Height:  |  Size: 739 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 513 B

After

Width:  |  Height:  |  Size: 622 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 608 B

After

Width:  |  Height:  |  Size: 708 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 523 B

After

Width:  |  Height:  |  Size: 639 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 555 B

After

Width:  |  Height:  |  Size: 557 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 540 B

After

Width:  |  Height:  |  Size: 585 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 573 B

After

Width:  |  Height:  |  Size: 720 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 562 B

After

Width:  |  Height:  |  Size: 667 B

+2 -1
View File
@@ -1629,9 +1629,10 @@ namespace CalamityMod.CalPlayer
private void ModifyHurtInfo_Calamity(ref Player.HurtInfo info)
{
// Boss Rush's damage floor is implemented as a dirty modifier
// TODO -- implementing this correctly would require fully reimplementing all of DR and ADR
if (BossRushEvent.BossRushActive)
{
int bossRushDamageFloor = (Main.expertMode ? 400 : 240) + (BossRushEvent.BossRushStage * 2);
int bossRushDamageFloor = (Main.expertMode ? 160 : 100) + (BossRushEvent.BossRushStage * 2);
if (info.Damage < bossRushDamageFloor)
info.Damage += (bossRushDamageFloor - info.Damage);
}
+8 -2
View File
@@ -456,8 +456,14 @@ namespace CalamityMod.ILEditing
private static string IncorporateEnchantmentInAffix(Terraria.On_Item.orig_AffixName orig, Item self)
{
string result = orig(self);
if (!self.IsAir && self.Calamity().AppliedEnchantment.HasValue)
result = $"{self.Calamity().AppliedEnchantment.Value.Name} {result}";
// This hook could occur before CalamityGlobalItem is loaded and throw an error.
try
{
if (!self.IsAir && self.Calamity().AppliedEnchantment.HasValue)
result = $"{self.Calamity().AppliedEnchantment.Value.Name} {result}";
}
catch { }
return result;
}
#endregion
+2 -2
View File
@@ -93,7 +93,7 @@ namespace CalamityMod.Items.Accessories
// Damage stat boosts
public const float DamageMultiplier = 0.5f; // 2.5% to 10% (x100)
public const float CritMultiplier = 25f; // 1.25% to 5%
public const float CritMultiplier = 25f; // 1.25% to 5% (end result rounded down)
// Defensive stat boosts
public const float HealthMultiplier = 50f; // 2% to 10% (rounded down)
@@ -112,7 +112,7 @@ namespace CalamityMod.Items.Accessories
float power = CalculatePower();
string statList = this.GetLocalization("StatsList").Format(
(DamageMultiplier * power * 100).ToString("N1"),
(CritMultiplier * power).ToString("N0"),
(int)(CritMultiplier * power),
(int)(HealthMultiplier * power),
(DRMultiplier * power * 100).ToString("N2"),
(int)(DefenseMultiplier * power),
@@ -66,6 +66,7 @@ namespace CalamityMod.Items.Placeables.Furniture.DevPaintings
"Atalya",
"Ben-TK",
"Cei",
"CongratsIsTrash",
"Cooper",
"CrabBar",
"Done",
@@ -91,7 +92,6 @@ namespace CalamityMod.Items.Placeables.Furniture.DevPaintings
"Shayy",
"Spider Prov",
"StipulateVenus",
"Sylvium",
"Tomat",
"Triangle",
"Uberransy",
@@ -182,6 +182,7 @@ namespace CalamityMod.Items.Placeables.Furniture.DevPaintings
"spooktacular",
"Spoopyro",
"Svante",
"Sylvium",
"Teragat",
"Terry N. Muse",
"ThousandFields",
+4 -5
View File
@@ -12,13 +12,13 @@ namespace CalamityMod.Items.Weapons.Magic
public new string LocalizationCategory => "Items.Weapons.Magic";
public override void SetDefaults()
{
Item.damage = 62;
Item.damage = 52;
Item.DamageType = DamageClass.Magic;
Item.mana = 12;
Item.width = 28;
Item.height = 32;
Item.useTime = 45;
Item.useAnimation = 45;
Item.useTime = 49;
Item.useAnimation = 49;
Item.useStyle = ItemUseStyleID.Shoot;
Item.noMelee = true;
Item.knockBack = 6f;
@@ -27,13 +27,12 @@ namespace CalamityMod.Items.Weapons.Magic
Item.rare = ItemRarityID.Pink;
Item.autoReuse = true;
Item.shoot = ModContent.ProjectileType<PoseidonTyphoon>();
Item.shootSpeed = 20f;
Item.shootSpeed = 18f;
}
public override bool Shoot(Player player, EntitySource_ItemUse_WithAmmo source, Vector2 position, Vector2 velocity, int type, int damage, float knockback)
{
int typhoon = Projectile.NewProjectile(source, position, velocity, type, damage, knockback, player.whoAmI, 0f, 0f);
Main.projectile[typhoon].penetrate = Main.rand.Next(4,11);
return false;
}
}
+2 -2
View File
@@ -34,7 +34,7 @@ namespace CalamityMod.Items.Weapons.Magic
public const float ReleaseSpeed = 33f;
public const float ReleaseDamageFactor = 4.48f;
public const float ReleaseDamageFactor = 4.65f;
public static readonly SoundStyle ExplosionSound = new("CalamityMod/Sounds/Custom/SubsumingVortexExplosion");
@@ -45,7 +45,7 @@ namespace CalamityMod.Items.Weapons.Magic
public override void SetDefaults()
{
Item.damage = 507;
Item.damage = 483;
Item.DamageType = DamageClass.Magic;
Item.useTime = Item.useAnimation = 20;
Item.shootSpeed = 7f;
+1 -1
View File
@@ -18,7 +18,7 @@ namespace CalamityMod.Items.Weapons.Magic
public override void SetDefaults()
{
Item.damage = 50;
Item.damage = 60;
Item.DamageType = DamageClass.Magic;
Item.mana = 10;
Item.width = 54;
+1 -1
View File
@@ -17,7 +17,7 @@ namespace CalamityMod.Items.Weapons.Melee
public override void SetDefaults()
{
Item.width = 18;
Item.damage = 198;
Item.damage = 207;
Item.DamageType = DamageClass.MeleeNoSpeed;
Item.noMelee = true;
Item.noUseGraphic = true;
+2 -2
View File
@@ -36,8 +36,8 @@ namespace CalamityMod.Items.Weapons.Melee
Item.useStyle = ItemUseStyleID.Shoot;
Item.UseSound = SoundID.Item1;
Item.value = CalamityGlobalItem.Rarity14BuyPrice;
Item.rare = ModContent.RarityType<DarkBlue>();
Item.value = CalamityGlobalItem.Rarity15BuyPrice;
Item.rare = ModContent.RarityType<Violet>();
Item.Calamity().donorItem = true;
Item.shoot = ModContent.ProjectileType<NadirSpear>();
+1 -1
View File
@@ -84,7 +84,7 @@ namespace CalamityMod.Items.Weapons.Melee
}
else
{
Projectile.NewProjectile(source, position.X, position.Y, velocity.X * 0.5f, velocity.Y * 0.5f, type, (int)(damage * 1.3f), knockback, player.whoAmI);
Projectile.NewProjectile(source, position.X, position.Y, velocity.X * 0.5f, velocity.Y * 0.5f, type, (int)(damage * 1.1f), knockback, player.whoAmI);
}
return false;
}
+1 -1
View File
@@ -13,7 +13,7 @@ namespace CalamityMod.Items.Weapons.Melee
public override void SetDefaults()
{
Item.width = 60;
Item.damage = 177;
Item.damage = 232;
Item.noMelee = true;
Item.noUseGraphic = true;
Item.autoReuse = true;
+3 -3
View File
@@ -12,12 +12,12 @@ namespace CalamityMod.Items.Weapons.Ranged
public new string LocalizationCategory => "Items.Weapons.Ranged";
public override void SetDefaults()
{
Item.damage = 80;
Item.damage = 60;
Item.DamageType = DamageClass.Ranged;
Item.width = 62;
Item.height = 30;
Item.useTime = 21;
Item.useAnimation = 21;
Item.useTime = 34;
Item.useAnimation = 34;
Item.useStyle = ItemUseStyleID.Shoot;
Item.noMelee = true;
Item.knockBack = 3.5f;
+2 -2
View File
@@ -13,8 +13,8 @@ namespace CalamityMod.Items.Weapons.Rogue
{
public override void SetDefaults()
{
Item.width = 52;
Item.height = 48;
Item.width = 54;
Item.height = 54;
Item.damage = 55; //33
Item.noMelee = true;
Item.noUseGraphic = true;
Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.3 KiB

After

Width:  |  Height:  |  Size: 1.0 KiB

+1 -1
View File
@@ -13,7 +13,7 @@ namespace CalamityMod.Items.Weapons.Summon
public new string LocalizationCategory => "Items.Weapons.Summon";
public override void SetDefaults()
{
Item.damage = 7;
Item.damage = 9;
Item.mana = 10;
Item.width = 58;
Item.height = 64;
+1 -1
View File
@@ -13,7 +13,7 @@ namespace CalamityMod.Items.Weapons.Summon
public new string LocalizationCategory => "Items.Weapons.Summon";
public override void SetDefaults()
{
Item.damage = 7;
Item.damage = 9;
Item.mana = 10;
Item.width = 58;
Item.height = 58;
@@ -139,7 +139,7 @@ DarkEnergy: -
DesertNuisance: Though these serpents are of the Desert Scourge’s species, they are notably younger and less developed. Choosing to hunt in a pack with the large scourge due to this weakness, many have seen them tear apart prey not unlike the piranhas that once populated the former sea.
CosmicGuardian: Though of the same species as the nameless serpent, their minds and functions are far more basic. They possess very little will of their own and blindly follow the orders of their gluttonous master.
HiveTumor: This tumor acts as the brain of the putrid wasteland, being all that is left of the minds of the slain gods that lay there. The creatures of the Corruption exist to protect it, and those who attempt to harm it rarely live to tell the tale.
AquaticAberration: ASpawn of the immense Leviathan, their lifespan can be measured in hours. All they know is how to hunt for their masters. Even non-aquatic life is well within their reach, due to their uncanny ability to fly through air just as easily as swimming through water.
AquaticAberration: A spawn of the immense Leviathan, their lifespan can be measured in hours. All they know is how to hunt for their masters. Even non-aquatic life is well within their reach, due to their uncanny ability to fly through air just as easily as swimming through water.
LeviathanStart: A lure created by the Water Elemental, Anahita. It sings so sweetly, its voice full of promise and warmth, but beware: follow the siren’s call at your own peril.
PerforatorCyst: This twitching and convulsing pile of gore acts as the heart of the Perforator Hive, harvesting what small amount of diluted Ichor flowing through the Crimson is left and feeding it to the Hive. Little else is known about it, for those who dare to disturb it have become indistinguishable from the landscape.
CosmicLantern: These lanterns possess a magical, distorted flame that radiates no heat whatsoever. If one looks closely into their fire, they may see another world entirely.
@@ -423,4 +423,4 @@ CalamityConfig: {
Label: "[i:Book] Wiki Status Message"
Tooltip: Enable or disable the status message promoting the Official Calamity Wiki that plays on world entry.
}
}
}
@@ -481,7 +481,7 @@ DaawnlightSpiritOrigin: {
}
DarkGodsSheath: {
DisplayName: Dark God's Sheath
DisplayName: Dark Matter Sheath
Tooltip:
'''
+10 maximum stealth
@@ -1991,4 +1991,4 @@ YharimsInsignia: {
All melee attacks inflict Holy Flames
Increased melee knockback
'''
}
}
@@ -554,8 +554,8 @@ TarragonHeadRogue: {
SetBonus:
'''
+115 maximum stealth
After every 25 rogue critical hits you will gain 3 seconds of damage immunity
This effect can only occur once every 30 seconds
After every 50 rogue critical hits you will gain 2.5 seconds of damage immunity
This effect has a cooldown of 25 seconds
While under the effects of a debuff you gain 10% increased rogue damage
'''
}
@@ -235,7 +235,7 @@ RuneofKos: {
Tooltip:
'''
An ornate sigil of the Profaned Flame
Hatred yet burns upon its brow
Hatred yet burns upon its brow
[SPAWN]
Not consumable
'''
@@ -307,4 +307,4 @@ YharonEgg: {
Not consumable
An effigy of a Phoenix Dragon egg, used in worship
'''
}
}
@@ -734,7 +734,7 @@ SubsumingVortex: {
Press <right> to cast a gigantic vortex in front of you with a bias towards the mouse
When enemies are near the vortex, it sends multiple fast-moving smaller vortices towards them
Releasing <right> fires the vortex towards the mouse if enough time has passed
Damage scales based on how long the vortex was held out
Damage scales based on how long the vortex was held out
'''
}
@@ -955,4 +955,4 @@ YharimsCrystal: {
Tooltip: "[GFB]"
TooltipNormal: Fires draconic beams of total annihilation
TooltipGFB: ...throughs a pice of dnimite
}
}
@@ -62,7 +62,7 @@ Arbalest: {
DisplayName: Arbalest
Tooltip:
'''
Fires a volley of 10 high-speed arrows
Fires a volley of 6 high-speed arrows
Arrows start off small and grow in size with continuous fire
Arrow damage, spread and knockback scale with arrow size
'''
@@ -519,7 +519,7 @@ Galeforce: {
}
GodsBellows: {
DisplayName: God's Bellows
DisplayName: Dead Sun's Wind
Tooltip: 70% chance to save ammo
}
@@ -1285,4 +1285,4 @@ WulfrumBlunderbuss: {
[c/83B87E:'The good thing about Wulfrum is that while it breaks fast, it can be reused even faster.]
[c/83B87E:In fact, it is quite common for a robot to be turned into ammo right after it stops functioning.']
'''
}
}
@@ -283,7 +283,7 @@ DefectiveSphere: {
}
DeificThunderbolt: {
DisplayName: Deific Thunderbolt
DisplayName: Twisting Thunder
Tooltip:
'''
Fires a lightning bolt to electrocute enemies
@@ -1387,4 +1387,4 @@ WulfrumKnife: {
Stealth strikes make the knife fly further and hit several times at once
Hold <right> to magnetize all nearby fallen knives back to you
'''
}
}
@@ -403,7 +403,7 @@ GlacialEmbrace: {
}
GodspawnHelixStaff: {
DisplayName: Godspawn Helix Staff
DisplayName: Starspawn Helix Staff
Tooltip: Summons astral probes to protect you
}
@@ -633,7 +633,7 @@ StormjawStaff: {
}
SunGodStaff: {
DisplayName: Sun God Staff
DisplayName: Vengeful Sun Staff
Tooltip:
'''
Summons a solar god spirit to protect you
@@ -794,4 +794,4 @@ MirrorofKalandra: {
StellarTorusStaff: {
DisplayName: Stellar Torus Staff
Tooltip: Summons a Torus Orbital that fries foes with a telescoping light beam
}
}
+3 -5
View File
@@ -83,7 +83,7 @@ namespace CalamityMod.Projectiles.Magic
if (Main.myPlayer == Projectile.owner)
{
Projectile.velocity = Projectile.SafeDirectionTo(Main.MouseWorld) * SubsumingVortex.ReleaseSpeed;
Projectile.damage = (int)(Projectile.damage * (1f + Time * 0.0145f));
Projectile.damage = (int)(Projectile.damage * (1f + Time * 0.0152f));
HasBeenReleased = true;
Projectile.netUpdate = true;
}
@@ -112,9 +112,9 @@ namespace CalamityMod.Projectiles.Magic
GeneralParticleHandler.SpawnParticle(exoEnergy);
}
// Fire vortices at nearby target if not fully charged yet.
// Fire vortices at nearby target if not fully charged and has not been released yet.
NPC potentialTarget = Projectile.Center.ClosestNPCAt(SubsumingVortex.SmallVortexTargetRange - 100f);
if (potentialTarget != null && Time % SubsumingVortex.VortexReleaseRate == SubsumingVortex.VortexReleaseRate - 1 && Time < SubsumingVortex.LargeVortexChargeupTime)
if (potentialTarget != null && Time % SubsumingVortex.VortexReleaseRate == SubsumingVortex.VortexReleaseRate - 1 && Time < SubsumingVortex.LargeVortexChargeupTime && !HasBeenReleased)
{
// CheckMana returns true if the mana cost can be paid..
bool allowContinuedUse = Owner.CheckMana(Owner.ActiveItem(), -1, true, false);
@@ -130,8 +130,6 @@ namespace CalamityMod.Projectiles.Magic
}
Projectile.netUpdate = true;
}
else if (!vortexStillInUse)
Projectile.Kill();
}
}
+5 -3
View File
@@ -18,10 +18,12 @@ namespace CalamityMod.Projectiles.Magic
Projectile.height = 30;
Projectile.friendly = true;
Projectile.DamageType = DamageClass.Magic;
Projectile.penetrate = 10; //randomized in the item file now, penetrates 4 to 10 times
Projectile.timeLeft = 300;
Projectile.penetrate = 6;
Projectile.timeLeft = 270;
Projectile.ignoreWater = true;
Projectile.scale = 1.6f;
Projectile.usesLocalNPCImmunity = true;
Projectile.localNPCHitCooldown = 40;
}
public override void AI()
@@ -31,7 +33,7 @@ namespace CalamityMod.Projectiles.Magic
Lighting.AddLight(Projectile.Center, 0, (255 - Projectile.alpha) * 0.7f / 255f, (255 - Projectile.alpha) / 255f);
CalamityUtils.HomeInOnNPC(Projectile, !Projectile.tileCollide, 600f, 6f, 30f);
CalamityUtils.HomeInOnNPC(Projectile, !Projectile.tileCollide, 600f, 10f, 30f);
}
public override void OnHitNPC(NPC target, NPC.HitInfo hit, int damageDone) => target.AddBuff(ModContent.BuffType<Eutrophication>(), 180);
+3 -3
View File
@@ -28,7 +28,7 @@ namespace CalamityMod.Projectiles.Magic
Projectile.ignoreWater = true;
Projectile.penetrate = 10;
Projectile.usesLocalNPCImmunity = true;
Projectile.localNPCHitCooldown = 8;
Projectile.localNPCHitCooldown = 12;
Projectile.tileCollide = false;
Projectile.timeLeft = (int)Lifetime;
}
@@ -90,9 +90,9 @@ namespace CalamityMod.Projectiles.Magic
// boxes, but that should be negligible.
float lengthFromStart = Projectile.Distance(target.Center);
int totalShards = (int)MathHelper.Lerp(1, 4, MathHelper.Clamp(lengthFromStart / MaxLaserLength * 1.4f, 0f, 1f));
int totalShards = (int)MathHelper.Lerp(1, 3, MathHelper.Clamp(lengthFromStart / MaxLaserLength * 1.5f, 0f, 1f));
int shardType = ModContent.ProjectileType<TerraShard>();
int shardDamage = (int)(Projectile.damage * 0.6);
int shardDamage = (int)(Projectile.damage * 0.5);
for (int i = 0; i < totalShards; i++)
{
int tries = 0;
+1 -1
View File
@@ -32,7 +32,7 @@ namespace CalamityMod.Projectiles.Melee
Projectile.height = 60;
Projectile.friendly = true;
Projectile.tileCollide = false;
Projectile.penetrate = 4;
Projectile.penetrate = 3;
Projectile.timeLeft = Lifetime;
Projectile.DamageType = DamageClass.MeleeNoSpeed;
Projectile.extraUpdates = 1;
+1 -1
View File
@@ -78,7 +78,7 @@ namespace CalamityMod.Projectiles.Melee
public override void OnHitNPC(NPC target, NPC.HitInfo hit, int damageDone)
{
float healAmt = hit.Damage * 0.005f;
float healAmt = hit.Damage * 0.0075f;
if ((int)healAmt == 0)
return;
+2 -2
View File
@@ -48,7 +48,7 @@ namespace CalamityMod.Projectiles.Melee
public Player Owner => Main.player[Projectile.owner];
public override Color LaserOverlayColor => CalamityUtils.MulticolorLerp(Main.GlobalTimeWrappedHourly / ColorSet.Length % 1f, ColorSet);
public override Color LightCastColor => LaserOverlayColor;
public override float Lifetime => 1500f;
public override float Lifetime => 900f;
public override float MaxScale => 1.5f;
public override float MaxLaserLength => 2200f;
public override Texture2D LaserBeginTexture => ModContent.Request<Texture2D>("CalamityMod/ExtraTextures/Lasers/UltimaRayStart", AssetRequestMode.ImmediateLoad).Value;
@@ -67,7 +67,7 @@ namespace CalamityMod.Projectiles.Melee
Projectile.penetrate = -1;
Projectile.tileCollide = false;
Projectile.hide = true;
Projectile.timeLeft = 1500;
Projectile.timeLeft = 900;
Projectile.usesLocalNPCImmunity = true;
Projectile.localNPCHitCooldown = 10;
}
+1 -2
View File
@@ -22,8 +22,7 @@ namespace CalamityMod.Projectiles.Rogue
public override void SetDefaults()
{
Projectile.width = 24;
Projectile.height = 24;
Projectile.width = Projectile.height = 32;
Projectile.friendly = true;
Projectile.ignoreWater = true;
Projectile.penetrate = 1;
+1 -2
View File
@@ -22,8 +22,7 @@ namespace CalamityMod.Projectiles.Rogue
public override void SetDefaults()
{
Projectile.width = 24;
Projectile.height = 24;
Projectile.width = Projectile.height = 32;
Projectile.friendly = true;
Projectile.ignoreWater = true;
Projectile.penetrate = 4;
+1 -1
View File
@@ -33,7 +33,7 @@ namespace CalamityMod.Projectiles.Summon
Projectile.tileCollide = false;
Projectile.MaxUpdates = 3;
Projectile.usesLocalNPCImmunity = true;
Projectile.localNPCHitCooldown = Projectile.MaxUpdates * 24;
Projectile.localNPCHitCooldown = Projectile.MaxUpdates * 30;
Projectile.DamageType = DamageClass.Summon;
}
+1 -1
View File
@@ -32,7 +32,7 @@ namespace CalamityMod.Projectiles.Summon
Projectile.tileCollide = false;
Projectile.MaxUpdates = 3;
Projectile.usesLocalNPCImmunity = true;
Projectile.localNPCHitCooldown = Projectile.MaxUpdates * 24;
Projectile.localNPCHitCooldown = Projectile.MaxUpdates * 30;
Projectile.DamageType = DamageClass.Summon;
}
+297
View File
@@ -1,4 +1,5 @@
using System.Collections.Generic;
using System.IO;
using CalamityMod.CustomRecipes;
using CalamityMod.Events;
using CalamityMod.NPCs;
@@ -8,6 +9,7 @@ using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
using Terraria.ModLoader.IO;
using static CalamityMod.DownedBossSystem;
using static CalamityMod.World.CalamityWorld;
namespace CalamityMod
@@ -193,5 +195,300 @@ namespace CalamityMod
CavernLabCenter = tag.Get<Vector2>("CavernLabCenter");
}
#endregion Saving/Loading
#region NetSend
public override void NetSend(BinaryWriter writer)
{
BitsByte flags = new BitsByte();
flags[0] = downedDesertScourge;
flags[1] = downedHiveMind;
flags[2] = downedPerforator;
flags[3] = downedSlimeGod;
flags[4] = downedCryogen;
flags[5] = downedBrimstoneElemental;
flags[6] = downedCalamitasClone;
flags[7] = downedLeviathan;
BitsByte flags2 = new BitsByte();
flags2[0] = downedDoG;
flags2[1] = downedPlaguebringer;
flags2[2] = downedGuardians;
flags2[3] = downedProvidence;
flags2[4] = downedCeaselessVoid;
flags2[5] = downedStormWeaver;
flags2[6] = downedSignus;
flags2[7] = downedYharon;
// Don't write meaningful values for the now-unused vanilla boss booleans
BitsByte flags3 = new BitsByte();
flags3[0] = downedCalamitas;
flags3[1] = downedDragonfolly;
flags3[2] = downedCrabulon;
flags3[3] = downedBetsy;
flags3[4] = downedRavager;
flags3[5] = false;
flags3[6] = false;
flags3[7] = false;
BitsByte flags4 = new BitsByte();
flags4[0] = false;
flags4[1] = false;
flags4[2] = false;
flags4[3] = false;
flags4[4] = false;
flags4[5] = false;
flags4[6] = onionMode;
flags4[7] = revenge;
BitsByte flags5 = new BitsByte();
flags5[0] = downedAstrumDeus;
flags5[1] = spawnedBandit;
flags5[2] = spawnedCirrus;
flags5[3] = AcidRainEvent.HasStartedAcidicDownpour;
flags5[4] = false;
flags5[5] = downedPolterghast;
flags5[6] = death;
flags5[7] = downedGSS;
BitsByte flags6 = new BitsByte();
flags6[0] = Abyss.AtLeftSideOfWorld;
flags6[1] = downedAquaticScourge;
flags6[2] = downedAstrumAureus;
flags6[3] = false;
flags6[4] = armageddon;
flags6[5] = false;
flags6[6] = false;
flags6[7] = false;
BitsByte flags7 = new BitsByte();
flags7[0] = BossRushEvent.BossRushActive;
flags7[1] = downedBoomerDuke;
flags7[2] = downedCLAM;
flags7[3] = false;
flags7[4] = AcidRainEvent.AcidRainEventIsOngoing;
flags7[5] = downedEoCAcidRain;
flags7[6] = downedAquaticScourgeAcidRain;
flags7[7] = AcidRainEvent.HasTriedToSummonOldDuke;
BitsByte flags8 = new BitsByte();
flags8[0] = AcidRainEvent.HasBeenForceStartedByEoCDefeat;
flags8[1] = false;
flags8[2] = downedSecondSentinels;
flags8[3] = foundHomePermafrost;
flags8[4] = downedCLAMHardMode;
flags8[5] = catName;
flags8[6] = dogName;
flags8[7] = bunnyName;
BitsByte flags9 = new BitsByte();
flags9[0] = false;
flags9[1] = false;
flags9[2] = false;
flags9[3] = false;
flags9[4] = false;
flags9[5] = false;
flags9[6] = false;
flags9[7] = false;
BitsByte flags10 = new BitsByte();
flags10[0] = false;
flags10[1] = false;
flags10[2] = AcidRainEvent.OldDukeHasBeenEncountered;
flags10[3] = false;
flags10[4] = false;
flags10[5] = false;
flags10[6] = false;
flags10[7] = false;
BitsByte flags11 = new BitsByte();
flags11[0] = false;
flags11[1] = HasGeneratedLuminitePlanetoids;
flags11[2] = downedPrimordialWyrm;
flags11[3] = downedExoMechs;
flags11[4] = downedAres;
flags11[5] = downedThanatos;
flags11[6] = downedArtemisAndApollo;
flags11[7] = TalkedToDraedon;
BitsByte flags12 = new BitsByte();
flags12[0] = downedCragmawMire;
flags12[1] = downedMauler;
flags12[2] = downedNuclearTerror;
flags12[3] = downedBossRush;
flags12[4] = DraedonMechdusa;
writer.Write(flags);
writer.Write(flags2);
writer.Write(flags3);
writer.Write(flags4);
writer.Write(flags5);
writer.Write(flags6);
writer.Write(flags7);
writer.Write(flags8);
writer.Write(flags9);
writer.Write(flags10);
writer.Write(flags11);
writer.Write(flags12);
RecipeUnlockHandler.SendData(writer);
writer.Write(Abyss.AbyssChasmBottom);
writer.Write(SulphurousSea.YStart);
writer.Write(AstralBiome.YStart);
writer.Write(AcidRainEvent.AccumulatedKillPoints);
writer.Write(Reforges);
writer.Write(MoneyStolenByBandit);
writer.Write(DraedonSummonCountdown);
writer.Write((int)DraedonMechToSummon);
writer.WriteVector2(DraedonSummonPosition);
writer.WriteVector2(SunkenSeaLabCenter);
writer.WriteVector2(PlanetoidLabCenter);
writer.WriteVector2(JungleLabCenter);
writer.WriteVector2(HellLabCenter);
writer.WriteVector2(IceLabCenter);
writer.WriteVector2(CavernLabCenter);
}
#endregion
#region NetReceive
public override void NetReceive(BinaryReader reader)
{
BitsByte flags = reader.ReadByte();
downedDesertScourge = flags[0];
downedHiveMind = flags[1];
downedPerforator = flags[2];
downedSlimeGod = flags[3];
downedCryogen = flags[4];
downedBrimstoneElemental = flags[5];
downedCalamitasClone = flags[6];
downedLeviathan = flags[7];
BitsByte flags2 = reader.ReadByte();
downedDoG = flags2[0];
downedPlaguebringer = flags2[1];
downedGuardians = flags2[2];
downedProvidence = flags2[3];
downedCeaselessVoid = flags2[4];
downedStormWeaver = flags2[5];
downedSignus = flags2[6];
downedYharon = flags2[7];
// Explicitly discard the now-unused vanilla boss booleans
BitsByte flags3 = reader.ReadByte();
downedCalamitas = flags3[0];
downedDragonfolly = flags3[1];
downedCrabulon = flags3[2];
downedBetsy = flags3[3];
downedRavager = flags3[4];
_ = flags3[5];
_ = flags3[6];
_ = flags3[7];
BitsByte flags4 = reader.ReadByte();
_ = flags4[0];
_ = flags4[1];
_ = flags4[2];
_ = flags4[3];
_ = flags4[4];
_ = flags4[5];
onionMode = flags4[6];
revenge = flags4[7];
BitsByte flags5 = reader.ReadByte();
downedAstrumDeus = flags5[0];
spawnedBandit = flags5[1];
spawnedCirrus = flags5[2];
AcidRainEvent.HasStartedAcidicDownpour = flags5[3];
_ = flags5[4];
downedPolterghast = flags5[5];
death = flags5[6];
downedGSS = flags5[7];
BitsByte flags6 = reader.ReadByte();
Abyss.AtLeftSideOfWorld = flags6[0];
downedAquaticScourge = flags6[1];
downedAstrumAureus = flags6[2];
_ = flags6[3];
armageddon = flags6[4];
_ = flags6[5];
_ = flags6[6];
_ = flags6[7];
BitsByte flags7 = reader.ReadByte();
BossRushEvent.BossRushActive = flags7[0];
downedBoomerDuke = flags7[1];
downedCLAM = flags7[2];
_ = flags7[3];
AcidRainEvent.AcidRainEventIsOngoing = flags7[4];
downedEoCAcidRain = flags7[5];
downedAquaticScourgeAcidRain = flags7[6];
AcidRainEvent.HasTriedToSummonOldDuke = flags7[7];
BitsByte flags8 = reader.ReadByte();
AcidRainEvent.HasBeenForceStartedByEoCDefeat = flags8[0];
_ = flags8[1];
downedSecondSentinels = flags8[2];
foundHomePermafrost = flags8[3];
downedCLAMHardMode = flags8[4];
catName = flags8[5];
dogName = flags8[6];
bunnyName = flags8[7];
BitsByte flags9 = reader.ReadByte();
_ = flags9[0];
_ = flags9[1];
_ = flags9[2];
_ = flags9[3];
_ = flags9[4];
_ = flags9[5];
_ = flags9[6];
_ = flags9[7];
BitsByte flags10 = reader.ReadByte();
_ = flags10[0];
_ = flags10[1];
AcidRainEvent.OldDukeHasBeenEncountered = flags10[2];
_ = flags10[3];
_ = flags10[4];
_ = flags10[5];
_ = flags10[6];
_ = flags10[7];
BitsByte flags11 = reader.ReadByte();
_ = flags11[0];
HasGeneratedLuminitePlanetoids = flags11[1];
downedPrimordialWyrm = flags11[2];
downedExoMechs = flags11[3];
downedAres = flags11[4];
downedThanatos = flags11[5];
downedArtemisAndApollo = flags11[6];
TalkedToDraedon = flags11[7];
BitsByte flags12 = reader.ReadByte();
downedCragmawMire = flags12[0];
downedMauler = flags12[1];
downedNuclearTerror = flags12[2];
downedBossRush = flags12[3];
DraedonMechdusa = flags12[4];
RecipeUnlockHandler.ReceiveData(reader);
Abyss.AbyssChasmBottom = reader.ReadInt32();
SulphurousSea.YStart = reader.ReadInt32();
AstralBiome.YStart = reader.ReadInt32();
AcidRainEvent.AccumulatedKillPoints = reader.ReadInt32();
Reforges = reader.ReadInt32();
MoneyStolenByBandit = reader.ReadInt32();
DraedonSummonCountdown = reader.ReadInt32();
DraedonMechToSummon = (ExoMech)reader.ReadInt32();
DraedonSummonPosition = reader.ReadVector2();
SunkenSeaLabCenter = reader.ReadVector2();
PlanetoidLabCenter = reader.ReadVector2();
JungleLabCenter = reader.ReadVector2();
HellLabCenter = reader.ReadVector2();
IceLabCenter = reader.ReadVector2();
CavernLabCenter = reader.ReadVector2();
}
#endregion
}
}
-309
View File
@@ -1,309 +0,0 @@
using System.IO;
using CalamityMod.CustomRecipes;
using CalamityMod.Events;
using CalamityMod.World;
using Terraria;
using Terraria.ModLoader;
using static CalamityMod.DownedBossSystem;
using static CalamityMod.World.CalamityWorld;
namespace CalamityMod.Systems
{
public class WorldSyncingSystem : ModSystem
{
#region NetSend
public override void NetSend(BinaryWriter writer)
{
BitsByte flags = new BitsByte();
flags[0] = downedDesertScourge;
flags[1] = downedHiveMind;
flags[2] = downedPerforator;
flags[3] = downedSlimeGod;
flags[4] = downedCryogen;
flags[5] = downedBrimstoneElemental;
flags[6] = downedCalamitasClone;
flags[7] = downedLeviathan;
BitsByte flags2 = new BitsByte();
flags2[0] = downedDoG;
flags2[1] = downedPlaguebringer;
flags2[2] = downedGuardians;
flags2[3] = downedProvidence;
flags2[4] = downedCeaselessVoid;
flags2[5] = downedStormWeaver;
flags2[6] = downedSignus;
flags2[7] = downedYharon;
// Don't write meaningful values for the now-unused vanilla boss booleans
BitsByte flags3 = new BitsByte();
flags3[0] = downedCalamitas;
flags3[1] = downedDragonfolly;
flags3[2] = downedCrabulon;
flags3[3] = downedBetsy;
flags3[4] = downedRavager;
flags3[5] = false;
flags3[6] = false;
flags3[7] = false;
BitsByte flags4 = new BitsByte();
flags4[0] = false;
flags4[1] = false;
flags4[2] = false;
flags4[3] = false;
flags4[4] = false;
flags4[5] = false;
flags4[6] = onionMode;
flags4[7] = revenge;
BitsByte flags5 = new BitsByte();
flags5[0] = downedAstrumDeus;
flags5[1] = spawnedBandit;
flags5[2] = spawnedCirrus;
flags5[3] = AcidRainEvent.HasStartedAcidicDownpour;
flags5[4] = false;
flags5[5] = downedPolterghast;
flags5[6] = death;
flags5[7] = downedGSS;
BitsByte flags6 = new BitsByte();
flags6[0] = Abyss.AtLeftSideOfWorld;
flags6[1] = downedAquaticScourge;
flags6[2] = downedAstrumAureus;
flags6[3] = false;
flags6[4] = armageddon;
flags6[5] = false;
flags6[6] = false;
flags6[7] = false;
BitsByte flags7 = new BitsByte();
flags7[0] = BossRushEvent.BossRushActive;
flags7[1] = downedBoomerDuke;
flags7[2] = downedCLAM;
flags7[3] = false;
flags7[4] = AcidRainEvent.AcidRainEventIsOngoing;
flags7[5] = downedEoCAcidRain;
flags7[6] = downedAquaticScourgeAcidRain;
flags7[7] = AcidRainEvent.HasTriedToSummonOldDuke;
BitsByte flags8 = new BitsByte();
flags8[0] = AcidRainEvent.HasBeenForceStartedByEoCDefeat;
flags8[1] = false;
flags8[2] = downedSecondSentinels;
flags8[3] = foundHomePermafrost;
flags8[4] = downedCLAMHardMode;
flags8[5] = catName;
flags8[6] = dogName;
flags8[7] = bunnyName;
BitsByte flags9 = new BitsByte();
flags9[0] = false;
flags9[1] = false;
flags9[2] = false;
flags9[3] = false;
flags9[4] = false;
flags9[5] = false;
flags9[6] = false;
flags9[7] = false;
BitsByte flags10 = new BitsByte();
flags10[0] = false;
flags10[1] = false;
flags10[2] = AcidRainEvent.OldDukeHasBeenEncountered;
flags10[3] = false;
flags10[4] = false;
flags10[5] = false;
flags10[6] = false;
flags10[7] = false;
BitsByte flags11 = new BitsByte();
flags11[0] = false;
flags11[1] = HasGeneratedLuminitePlanetoids;
flags11[2] = downedPrimordialWyrm;
flags11[3] = downedExoMechs;
flags11[4] = downedAres;
flags11[5] = downedThanatos;
flags11[6] = downedArtemisAndApollo;
flags11[7] = TalkedToDraedon;
BitsByte flags12 = new BitsByte();
flags12[0] = downedCragmawMire;
flags12[1] = downedMauler;
flags12[2] = downedNuclearTerror;
flags12[3] = downedBossRush;
flags12[4] = DraedonMechdusa;
writer.Write(flags);
writer.Write(flags2);
writer.Write(flags3);
writer.Write(flags4);
writer.Write(flags5);
writer.Write(flags6);
writer.Write(flags7);
writer.Write(flags8);
writer.Write(flags9);
writer.Write(flags10);
writer.Write(flags11);
writer.Write(flags12);
RecipeUnlockHandler.SendData(writer);
writer.Write(Abyss.AbyssChasmBottom);
writer.Write(SulphurousSea.YStart);
writer.Write(AstralBiome.YStart);
writer.Write(AcidRainEvent.AccumulatedKillPoints);
writer.Write(Reforges);
writer.Write(MoneyStolenByBandit);
writer.Write(DraedonSummonCountdown);
writer.Write((int)DraedonMechToSummon);
writer.WriteVector2(DraedonSummonPosition);
writer.WriteVector2(SunkenSeaLabCenter);
writer.WriteVector2(PlanetoidLabCenter);
writer.WriteVector2(JungleLabCenter);
writer.WriteVector2(HellLabCenter);
writer.WriteVector2(IceLabCenter);
writer.WriteVector2(CavernLabCenter);
}
#endregion
#region NetReceive
public override void NetReceive(BinaryReader reader)
{
BitsByte flags = reader.ReadByte();
downedDesertScourge = flags[0];
downedHiveMind = flags[1];
downedPerforator = flags[2];
downedSlimeGod = flags[3];
downedCryogen = flags[4];
downedBrimstoneElemental = flags[5];
downedCalamitasClone = flags[6];
downedLeviathan = flags[7];
BitsByte flags2 = reader.ReadByte();
downedDoG = flags2[0];
downedPlaguebringer = flags2[1];
downedGuardians = flags2[2];
downedProvidence = flags2[3];
downedCeaselessVoid = flags2[4];
downedStormWeaver = flags2[5];
downedSignus = flags2[6];
downedYharon = flags2[7];
// Explicitly discard the now-unused vanilla boss booleans
BitsByte flags3 = reader.ReadByte();
downedCalamitas = flags3[0];
downedDragonfolly = flags3[1];
downedCrabulon = flags3[2];
downedBetsy = flags3[3];
downedRavager = flags3[4];
_ = flags3[5];
_ = flags3[6];
_ = flags3[7];
BitsByte flags4 = reader.ReadByte();
_ = flags4[0];
_ = flags4[1];
_ = flags4[2];
_ = flags4[3];
_ = flags4[4];
_ = flags4[5];
onionMode = flags4[6];
revenge = flags4[7];
BitsByte flags5 = reader.ReadByte();
downedAstrumDeus = flags5[0];
spawnedBandit = flags5[1];
spawnedCirrus = flags5[2];
AcidRainEvent.HasStartedAcidicDownpour = flags5[3];
_ = flags5[4];
downedPolterghast = flags5[5];
death = flags5[6];
downedGSS = flags5[7];
BitsByte flags6 = reader.ReadByte();
Abyss.AtLeftSideOfWorld = flags6[0];
downedAquaticScourge = flags6[1];
downedAstrumAureus = flags6[2];
_ = flags6[3];
armageddon = flags6[4];
_ = flags6[5];
_ = flags6[6];
_ = flags6[7];
BitsByte flags7 = reader.ReadByte();
BossRushEvent.BossRushActive = flags7[0];
downedBoomerDuke = flags7[1];
downedCLAM = flags7[2];
_ = flags7[3];
AcidRainEvent.AcidRainEventIsOngoing = flags7[4];
downedEoCAcidRain = flags7[5];
downedAquaticScourgeAcidRain = flags7[6];
AcidRainEvent.HasTriedToSummonOldDuke = flags7[7];
BitsByte flags8 = reader.ReadByte();
AcidRainEvent.HasBeenForceStartedByEoCDefeat = flags8[0];
_ = flags8[1];
downedSecondSentinels = flags8[2];
foundHomePermafrost = flags8[3];
downedCLAMHardMode = flags8[4];
catName = flags8[5];
dogName = flags8[6];
bunnyName = flags8[7];
BitsByte flags9 = reader.ReadByte();
_ = flags9[0];
_ = flags9[1];
_ = flags9[2];
_ = flags9[3];
_ = flags9[4];
_ = flags9[5];
_ = flags9[6];
_ = flags9[7];
BitsByte flags10 = reader.ReadByte();
_ = flags10[0];
_ = flags10[1];
AcidRainEvent.OldDukeHasBeenEncountered = flags10[2];
_ = flags10[3];
_ = flags10[4];
_ = flags10[5];
_ = flags10[6];
_ = flags10[7];
BitsByte flags11 = reader.ReadByte();
_ = flags11[0];
HasGeneratedLuminitePlanetoids = flags11[1];
downedPrimordialWyrm = flags11[2];
downedExoMechs = flags11[3];
downedAres = flags11[4];
downedThanatos = flags11[5];
downedArtemisAndApollo = flags11[6];
TalkedToDraedon = flags11[7];
BitsByte flags12 = reader.ReadByte();
downedCragmawMire = flags12[0];
downedMauler = flags12[1];
downedNuclearTerror = flags12[2];
downedBossRush = flags12[3];
DraedonMechdusa = flags12[4];
RecipeUnlockHandler.ReceiveData(reader);
Abyss.AbyssChasmBottom = reader.ReadInt32();
SulphurousSea.YStart = reader.ReadInt32();
AstralBiome.YStart = reader.ReadInt32();
AcidRainEvent.AccumulatedKillPoints = reader.ReadInt32();
Reforges = reader.ReadInt32();
MoneyStolenByBandit = reader.ReadInt32();
DraedonSummonCountdown = reader.ReadInt32();
DraedonMechToSummon = (ExoMech)reader.ReadInt32();
DraedonSummonPosition = reader.ReadVector2();
SunkenSeaLabCenter = reader.ReadVector2();
PlanetoidLabCenter = reader.ReadVector2();
JungleLabCenter = reader.ReadVector2();
HellLabCenter = reader.ReadVector2();
IceLabCenter = reader.ReadVector2();
CavernLabCenter = reader.ReadVector2();
}
#endregion
}
}