From bd9b6d4f7a0ee9687177f58cf4ad96e4f1e1ce3c Mon Sep 17 00:00:00 2001 From: Andrew Marheine Date: Mon, 3 Feb 2020 17:47:35 -0600 Subject: [PATCH 1/2] Projectile damage adjustments. --- BossDamageValues2.txt | 533 +++++++++--------- CalPlayer/CalamityPlayer.cs | 28 +- CalamityMod.cs | 419 +++++++------- NPCs/BrimstoneElemental/BrimstoneElemental.cs | 2 +- NPCs/CalamityGlobalAI.cs | 207 +++++-- NPCs/Crabulon/CrabulonIdle.cs | 7 +- NPCs/NormalNPCs/KingSlimeJewel.cs | 4 +- NPCs/Perforator/PerforatorBodyLarge.cs | 6 +- NPCs/Perforator/PerforatorBodyMedium.cs | 6 +- NPCs/Perforator/PerforatorBodySmall.cs | 6 +- 10 files changed, 676 insertions(+), 542 deletions(-) diff --git a/BossDamageValues2.txt b/BossDamageValues2.txt index e862351bd1..364a835adb 100644 --- a/BossDamageValues2.txt +++ b/BossDamageValues2.txt @@ -7,14 +7,14 @@ King Slime N - 40 E - 67 R - 80 -D - 89 +D - 88 Projectile damage: Crown Jewel Ruby Bolt N - NA E - NA R - 44 -D - 50 +D - 48 DESERT SCOURGE @@ -23,7 +23,7 @@ Desert Scourge Head N - 30 E - 66 R - 79 -D - 88 +D - 87 Body N - 16 E - 27 @@ -70,7 +70,7 @@ Sand Blast N - NA E - NA R - 60 -D - 69 +D - 67 EYE OF CTHULHU @@ -78,13 +78,13 @@ Contact damage: Eye of Cthulhu N - 15 (phase 1), 23 (phase 2) E - 30 (phase 1), 36 (phase 2), 40 (berserk phase, below 4%) -R - 37 (phase 1), 44 (phase 2), 51 (final phase, below 50%) -D - 42 (phase 1), 50 (phase 2), 58 (final phase, below 70%) +R - 37 (phase 1), 45 (phase 2), 52 (final phase, below 50%) +D - 58 Servant of Cthulhu N - 12 E - 24 R - 30 -D - 34 +D - 33 CRABULON @@ -93,24 +93,24 @@ Crabulon N - 40 E - 64 R - 76 -D - 85 +D - 84 Crab Shroom N - 25 E - 50 R - 62 -D - 71 +D - 70 Projectile damage: Mushroom -N - 28 -E - 44 -R - 55 -D - 63 +N - 32 +E - 48 +R - 60 +D - 67 Mushmash (used when Crabulon slams down) N - 40 E - 80 -R - 100 -D - 115 +R - 96 +D - 105 EATER OF WORLDS @@ -118,8 +118,8 @@ Contact damage: Eater of Worlds Head N - 22 E - 48 -R - 60 (normal), 66 (less than 40% of EoW parts left), 72 (less than 10% of EoW parts left) -D - 74 (normal), 81 (less than 33% of EoW parts left) +R - 60 (normal), 65 (less than 40% of EoW parts left), 71 (less than 10% of EoW parts left) +D - 72 (normal), 79 (less than 33% of EoW parts left) Body N - 13 E - 20 @@ -129,7 +129,7 @@ Tail N - 11 E - 17 R - 21 -D - 24 +D - 23 Vile Spit N - NA E - 65 @@ -141,7 +141,7 @@ Cursed Flame N - NA E - NA R - 60 -D - 69 +D - 68 BRAIN OF CTHULHU @@ -150,19 +150,19 @@ Brain of Cthulhu N - 30 E - 54 R - 64 (normal), 76 (final phase, below 30%) -D - 71 (normal), 85 (final phase, below 50%) +D - 84 Creeper N - 20 E - 40 R - 50 -D - 57 +D - 56 Projectile damage: Blood Geyser N - NA E - NA R - 60 -D - 69 +D - 67 HIVE MIND @@ -171,24 +171,24 @@ Hive Mind N - 20 (phase 1), 35 (phase 2) E - 32 (phase 1), 63 (phase 2) R - 40 (phase 1), 75 (phase 2) -D - 46 (phase 1), 84 (phase 2) +D - 44 (phase 1), 83 (phase 2) Dank Creeper N - 25 E - 50 R - 62 -D - 71 +D - 70 Projectile damage: Shaderain N - 36 E - 56 -R - 70 -D - 80 +R - 67 +D - 73 Vile Clot N - 30 E - 48 R - 48 -D - 55 +D - 48 PERFORATORS @@ -197,12 +197,12 @@ Perforator Hive N - 30 E - 48 R - 60 -D - 69 +D - 67 Perf Large Head N - 45 E - 90 R - 108 -D - 120 +D - 118 Body N - 24 E - 38 @@ -217,7 +217,7 @@ Perf Medium Head N - 35 E - 70 R - 84 -D - 94 +D - 92 Body N - 21 E - 33 @@ -232,7 +232,7 @@ Perf Small Head N - 30 E - 60 R - 72 -D - 80 +D - 79 Body N - 18 E - 28 @@ -249,12 +249,12 @@ Blood Geyser/Ichor Shot N - 36 E - 56 R - 70 -D - 80 +D - 78 Blood Clot N - 30 E - 48 R - 48 -D - 55 +D - 48 QUEEN BEE @@ -263,19 +263,19 @@ Queen Bee N - 30 E - 54 R - 64 to 88 (depending on life) -D - 98 +D - 97 Bee N - 20 (large), 15 (small) E - 24 (large), 18 (small) R - 30 (large), 22 (small) -D - 34 (large), 25 (small) +D - 33 (large), 25 (small) Projectile damage: Stinger N - 22 E - 44 R - 56 (target is not poison immune), 72 (target is poison immune) -D - 64 (target is not poison immune), 82 (target is poison immune) +D - 64 (target is not poison immune), 80 (target is poison immune) SKELETRON @@ -284,24 +284,24 @@ Skeletron Head N - 32 E - 70 (normal), 91 (spin) R - 84 (normal), 109 (spin) -D - 94 (normal), 122 (spin) +D - 92 (normal), 120 (spin) Hand N - 20 E - 44 R - 55 -D - 63 +D - 61 Projectile damage: Skull N - NA E - 68 R - 84 -D - 96 +D - 92 Shadowflames N - NA E - NA R - 76 -D - 87 +D - 84 SLIME GOD @@ -310,39 +310,39 @@ Slime God Core N - 40 E - 80 R - 96 -D - 107 +D - 105 Ebonian Slime God N - 45 (not split), 40 (split) E - 76 (not split), 68 (split) R - 91 (not split), 81 (split) -D - 101 (not split), 90 (split) +D - 100 (not split), 89 (split) Crimulan Slime God N - 50 (not split), 45 (split) E - 85 (not split), 76 (split) R - 102 (not split), 91 (split) -D - 114 (not split), 101 (split) +D - 112 (not split), 100 (split) Corrupt Slime Spawn N - 40 (wings), 30 (no wings) E - 80 (wings), 60 (no wings) R - 96 (wings), 60 (no wings) -D - 107 (wings), 60 (no wings) +D - 105 (wings), 60 (no wings) Crimson Slime Spawn N - 45 (spikes), 35 (no spikes) E - 90 (spikes), 70 (no spikes) R - 108 (spikes), 70 (no spikes) -D - 120 (spikes), 70 (no spikes) +D - 118 (spikes), 70 (no spikes) Projectile damage: Abyss Ball Volley N - 42 (purple), 38 (red) E - 68 (purple), 64 (red) -R - 85 (purple), 80 (red) -D - 97 (purple), 92 (red) +R - 81 (purple), 76 (red) +D - 89 (purple), 84 (red) Abyss Mine N - NA E - 96 (purple), 88 (red) -R - 120 (purple), 110 (red) -D - 138 (purple), 126 (red) +R - 115 (purple), 105 (red) +D - 126 (purple), 116 (red) WALL OF FLESH @@ -351,7 +351,7 @@ Wall of Flesh N - 50 E - 150 R - 172 -D - 187 +D - 186 Hungry N - 30 to 75 (depending on Wall of Flesh life) E - 60 to 150 (depending on Wall of Flesh life) @@ -361,24 +361,24 @@ Hungry 2 N - 30 E - 60 R - 72 -D - 80 +D - 79 Leech Head N - 26 E - 52 R - 62 -D - 69 +D - 68 Projectile damage: Eye Laser N - 22 to 30 (depending on life) E - 44 to 60 (depending on life) R - 68 -D - 78 +D - 76 Death Laser N - NA E - NA R - 88 -D - 101 +D - 96 CRYOGEN @@ -387,39 +387,39 @@ Cryogen N - 50 (normal), 75 (derp out phase) E - 90 (normal), 135 (derp out phase) R - 103 (normal), 155 (derp out phase) -D - 112 (normal), 168 (derp out phase) +D - 111 (normal), 167 (derp out phase) Ice Shield N - 50 E - 100 R - 115 -D - 125 +D - 124 Cryocore N - 35 (small), 40 (large) E - 70 (small), 80 (large) R - 84 (small), 96 (large) -D - 94 (small), 107 (large) +D - 92 (small), 105 (large) Aurora Spirit N - 40 E - 80 R - 96 -D - 107 +D - 105 Projectile damage: Ice Bomb N - NA E - 100 -R - 125 -D - 143 +R - 120 +D - 132 Ice Blast N - 46 E - 80 -R - 100 -D - 115 +R - 96 +D - 105 Ice Rain N - 52 E - 92 -R - 115 -D - 132 +R - 110 +D - 121 THE TWINS @@ -428,34 +428,34 @@ Spazmatism N - 50 (phase 1), 75 (phase 2) E - 85 (phase 1), 127 (phase 2) R - 97 (phase 1), 146 (phase 2) -D - 105 (phase 1), 159 (phase 2) +D - 105 (phase 1), 157 (phase 2) Retinazer N - 45 (phase 1), 67 (phase 2) E - 76 (phase 1), 114 (phase 2) R - 87 (phase 1), 131 (phase 2) -D - 94 (phase 1), 142 (phase 2) +D - 94 (phase 1), 141 (phase 2) Projectile damage: Eye Laser N - 40 E - 76 R - 92 -D - 105 +D - 100 Death Laser N - 50 (normal), 36 (rapid fire) E - 92 (normal), 68 (rapid fire) R - 112 (normal), 84 (rapid fire) -D - 128 (normal), 96 (rapid fire) +D - 124 (normal), 92 (rapid fire) Homing Dart N - NA E - NA R - 120 -D - 138 +D - 132 Cursed Flame N - 50 E - 88 R - 108 -D - 124 +D - 120 Cursed Flamethrower N - 60 E - 108 @@ -465,12 +465,12 @@ Shadow Flamethrower N - NA E - NA R - 132 -D - 151 +D - 144 Shadow Flame N - NA E - NA R - 124 -D - 142 +D - 136 AQUATIC SCOURGE @@ -479,34 +479,34 @@ Aquatic Scourge Head N - 80 E - 160 R - 184 -D - 200 +D - 198 Body N - 65 (toothy), 55 (not toothy) E - 110 (toothy), 93 (not toothy) R - 126 (toothy), 106 (not toothy) -D - 137 (toothy), 115 (not toothy) +D - 136 (toothy), 115 (not toothy) Tail N - 45 E - 76 R - 91 -D - 101 +D - 100 Projectile damage: Sand Blast N - 56 E - 92 R - 115 -D - 132 +D - 128 Sand Tooth N - 60 E - 100 -R - 125 -D - 143 +R - 120 +D - 132 Sand Poison Cloud N - 66 E - 112 -R - 140 -D - 161 +R - 128 +D - 138 THE DESTROYER @@ -515,49 +515,49 @@ The Destroyer Head N - 70 E - 280 R - 308 -D - 326 +D - 324 Body N - 55 E - 93 R - 111 -D - 124 +D - 122 Tail N - 40 E - 68 R - 81 -D - 90 +D - 89 Probe N - 50 E - 80 R - 96 -D - 107 +D - 105 Projectile damage: Death Laser N - 44 E - 72 R - 92 -D - 105 +D - 100 Frost Beam N - NA E - NA R - 100 -D - 115 +D - 108 Homing Laser N - NA E - NA R - 108 -D - 124 +D - 116 Scrap N - NA E - NA R - 92 -D - 105 +D - 100 Probe Laser N - 50 E - 88 R - 88 -D - 101 +D - 88 BRIMSTONE ELEMENTAL @@ -566,24 +566,29 @@ Brimstone Elemental N - 60 E - 96 R - 115 -D - 128 +D - 126 Projectile damage: Brimstone Hellfireball N - 70 E - 112 -R - 140 -D - 161 +R - 128 +D - 138 Brimstone Barrage N - 60 E - 100 -R - 125 -D - 143 +R - 105 +D - 108 Brimstone Hellblast N - 60 E - 100 -R - 125 -D - 143 +R - 105 +D - 108 +Brimstone Ray +N - NA +E - NA +R - 184 +D - 198 SKELETRON PRIME @@ -592,22 +597,22 @@ Skeletron Prime N - 47 (normal), 94 (spin) E - 79 (normal), 158 (spin) R - 90 (normal), 181 (spin) -D - 98 (normal), 197 (spin) +D - 97 (normal), 195 (spin) Vice N - 52 E - 88 R - 105 -D - 117 +D - 116 Saw N - 56 E - 95 R - 114 -D - 127 +D - 125 Cannon N - 30 E - 51 R - 61 -D - 68 +D - 67 Laser N - 29 E - 49 @@ -619,7 +624,7 @@ Death Laser N - 50 E - 100 R - 124 -D - 142 +D - 136 Bomb (why the fuck do these exist) N - 40 E - 40 @@ -629,17 +634,17 @@ Missile N - NA E - NA R - 132 -D - 151 +D - 144 Skull N - NA E - NA R - 112 -D - 128 +D - 124 Homing Missile N - NA E - NA R - 132 -D - 151 +D - 144 CALAMITAS CLONE @@ -648,59 +653,59 @@ Calamitas N - 55 (phase 1), 70 (phase 2) E - 88 (phase 1), 112 (phase 2) R - 101 (phase 1), 128 (phase 2) -D - 110 (phase 1), 139 (phase 2) +D - 109 (phase 1), 138 (phase 2) Cataclysm N - 60 E - 120 R - 138 -D - 150 +D - 148 Catastrophe N - 65 E - 130 R - 149 -D - 162 +D - 161 Soul Seeker N - 40 E - 80 R - 96 -D - 107 +D - 105 Life Seeker N - 30 E - 60 R - 72 -D - 80 +D - 79 Projectile damage: Brimstone Laser N - 70 (normal or phase 2), 48 (rapid fire) E - 112 (normal or phase 2), 80 (rapid fire) -R - 140 (normal or phase 2), 100 (rapid fire) -D - 161 (normal or phase 2), 115 (rapid fire) +R - 128 (normal or phase 2), 92 (rapid fire) +D - 138 (normal or phase 2), 99 (rapid fire) Brimstone Hellfireball/Explosion N - 84 E - 136 -R - 170 -D - 195 +R - 156 +D - 168 Brimstone Flamethrower N - 76 E - 120 -R - 150 -D - 172 +R - 138 +D - 148 Brimstone Ball N - 72 E - 116 -R - 145 -D - 166 +R - 133 +D - 143 Soul Seeker Barrage N - 60 E - 100 -R - 125 -D - 143 +R - 105 +D - 108 Life Seeker Laser N - 50 E - 88 R - 88 -D - 101 +D - 88 PLANTERA @@ -709,7 +714,7 @@ Plantera N - 50 (phase 1), 70 (phase 2) E - 100 (phase 1), 140 (phase 2) R - 132 (phase 1), 185 (phase 2) -D - 143 (phase 1), 201 (phase 2) +D - 142 (phase 1), 199 (phase 2) Hook N - 60 E - 120 @@ -719,7 +724,7 @@ Tentacle N - 60 E - 120 R - 138 -D - 150 +D - 148 Spore N - 70 E - 126 @@ -731,22 +736,22 @@ Seed N - 44 E - 76 R - 96 -D - 110 +D - 108 Poison Seed N - 54 E - 96 R - 120 -D - 138 +D - 132 Thorn Ball N - 62 E - 108 R - 136 -D - 156 +D - 148 Spore Gas N - NA E - NA R - 140 -D - 161 +D - 152 LEVIATHAN AND SIREN @@ -755,44 +760,44 @@ Leviathan N - 90 E - 153 R - 175 -D - 190 +D - 189 Siren N - 70 E - 119 R - 136 -D - 148 +D - 147 Ice Shield N - 55 E - 110 R - 126 -D - 137 +D - 136 Bubble N - 100 E - 140 R - 161 -D - 175 +D - 173 Aquatic Aberration N - 60 E - 120 R - 138 -D - 150 +D - 148 Parasea N - 50 E - 100 R - 115 -D - 125 +D - 124 Projectile damage: Leviathan Bomb N - 80 E - 132 -R - 165 -D - 189 +R - 151 +D - 163 Water Spear/Frost Mist/Siren Song N - 64 E - 104 -R - 130 -D - 149 +R - 119 +D - 128 ASTRUM AUREUS @@ -801,7 +806,7 @@ Astrum Aureus N - 80 E - 136 R - 156 -D - 170 +D - 168 Aureus Spawn N - NA E - NA @@ -812,8 +817,8 @@ Projectile damage: Astral Laser/Astral Flame N - 74 E - 128 -R - 160 -D - 184 +R - 147 +D - 158 GOLEM @@ -822,34 +827,34 @@ Golem Body N - 72 E - 115 R - 132 (head attached), 197 (head free) -D - 143 (head attached), 214 (head free) +D - 142 (head attached), 213 (head free) Head N - 64 (attached), 80 (free) E - 102 (attached), 128 (free) R - 117 (attached), 147 (free) -D - 127 (attached), 160 (free) +D - 126 (attached), 158 (free) Fist N - 59 E - 94 R - 108 -D - 117 +D - 116 Projectile damage: Fireball N - 36 to 58 (depending on life) E - 72 to 116 (depending on life) R - 148 -D - 170 +D - 160 Laser N - 56 E - 112 R - 140 -D - 161 +D - 152 Inferno Fireball/Explosion N - NA E - NA R - 160 -D - 184 +D - 176 PLAGUEBRINGER GOLIATH @@ -858,17 +863,17 @@ Plaguebringer Goliath N - 100 E - 180 R - 207 -D - 225 +D - 223 Plaguebringer N - 70 E - 140 R - 161 -D - 175 +D - 173 Plague Homing Missile N - 90 E - 180 R - 207 -D - 225 +D - 223 Plague Mine N - NA E - 200 @@ -878,24 +883,24 @@ Plague Charger N - 60 (small), 65 (large) E - 120 (small), 130 (large) R - 138 (small), 149 (large) -D - 150 (small), 162 (large) +D - 148 (small), 161 (large) Projectile damage: Plague Stinger N - 80 (goliath), 52 (shade) -E - 128 to 152 (goliath, depending on life), 104 (shade) -R - 160 to 190 (goliath, depending on life), 130 (shade) -D - 184 to 218 (goliath, depending on life), 149 (shade) +E - 128 to 148 (goliath, depending on life), 104 (shade) +R - 147 to 170 (goliath, depending on life), 130 (shade) +D - 183 (goliath), 149 (shade) Plague Missile N - 100 (goliath), 66 (shade) -E - 160 to 184 (goliath, depending on life), 132 (shade) -R - 200 to 230 (goliath, depending on life), 165 (shade) -D - 230 to 264 (goliath, depending on life), 189 (shade) +E - 160 to 180 (goliath, depending on life), 132 (shade) +R - 184 to 207 (goliath, depending on life), 165 (shade) +D - 223 (goliath), 189 (shade) Plague Nuke Barrage N - 120 E - 192 -R - 240 -D - 276 +R - 220 +D - 238 DUKE FISHRON @@ -904,29 +909,29 @@ Duke Fishron N - 100 (phase 1), 120 (phase 2) E - 140 (phase 1), 201 (phase 2), 184 (phase 3) R - 161 (phase 1), 231 (phase 2), 211 (phase 3) -D - 175 (phase 1), 251 (phase 2), 229 (phase 3) +D - 173 (phase 1), 249 (phase 2), 228 (phase 3) Sharkron N - 100 (small), 120 (large) E - 150 (small), 180 (large) R - 172 (small), 207 (large) -D - 187 (small), 225 (large) +D - 186 (small), 223 (large) Bubble N - 100 E - 140 R - 161 -D - 175 +D - 173 Projectile damage: Sharknado N - 90 E - 100 -R - 125 -D - 143 +R - 115 +D - 124 Cthulhunado N - 160 E - 200 -R - 250 -D - 287 +R - 230 +D - 248 RAVAGER @@ -935,12 +940,12 @@ Ravager N - 120 E - 192 R - 220 -D - 239 +D - 238 Claws N - 80 E - 160 R - 184 -D - 200 +D - 198 Rock Pillar N - 120 E - 200 @@ -957,32 +962,32 @@ Laser N - 90 E - 180 R - 180 -D - 207 +D - 180 Fireball N - 80 E - 160 R - 160 -D - 184 +D - 160 Falling Fire N - 70 E - 140 R - 140 -D - 161 +D - 140 Homing Dart N - 80 E - 160 R - 160 -D - 184 +D - 160 Homing Nuke N - 120 E - 180 -R - 225 -D - 258 +R - 207 +D - 223 Blue Flame N - 90 E - 180 R - 180 -D - 207 +D - 180 LUNATIC CULTIST @@ -996,12 +1001,12 @@ Dragon Head N - 80 E - 120 R - 138 -D - 150 +D - 148 Squid Head N - 90 E - 180 R - 207 -D - 225 +D - 223 Ancient Doom N - 30 E - 45 @@ -1011,34 +1016,34 @@ Ancient Light N - 120 E - 180 R - 207 -D - 225 +D - 223 Projectile damage: Clone Fireball N - 36 E - 72 R - 108 -D - 124 +D - 120 Fireball N - 60 E - 80 R - 120 -D - 138 +D - 132 Ice Mist N - 70 E - 100 R - 152 -D - 174 +D - 164 Lightning N - 90 E - 120 R - 180 -D - 207 +D - 196 Ancient Doom Shot N - 90 E - 180 R - 200 -D - 230 +D - 220 ASTRUM DEUS @@ -1047,7 +1052,7 @@ Astrum Deus Head N - 100 (non-boss), 120 (boss) E - 200 (non-boss), 240 (boss) R - 220 (non-boss), 264 (boss) -D - 233 (non-boss), 279 (boss) +D - 232 (non-boss), 278 (boss) Body N - 85 (non-boss), 100 (boss) E - 144 (non-boss), 170 (boss) @@ -1063,18 +1068,18 @@ Projectile damage: Astral Laser N - 90 E - 152 -R - 190 -D - 218 +R - 174 +D - 188 Deus Mine N - 120 E - 180 -R - 225 -D - 258 +R - 207 +D - 223 Astrum Deus Probe Laser N - 90 E - 152 R - 152 -D - 174 +D - 152 MOON LORD @@ -1095,17 +1100,17 @@ Deathray N - 150 (moon lord), 100 (true eye) E - 300 (moon lord), 200 (true eye) R - 380 (moon lord), NA -D - 437 (moon lord), NA +D - 420 (moon lord), NA Sphere N - 100 (moon lord), 110 (true eye) E - 200 (moon lord), 220 (true eye) R - 260 (moon lord), NA -D - 299 (moon lord), NA +D - 284 (moon lord), NA Bolt/Eye N - 60 (moon lord), 70 (true eye) E - 120 (moon lord), 140 (true eye) R - 160 (moon lord), NA -D - 184 (moon lord), NA +D - 176 (moon lord), NA PROFANED GUARDIANS @@ -1114,29 +1119,29 @@ Profaned Guardian Boss N - 140 E - 224 R - 246 -D - 260 +D - 259 Defender N - 110 E - 176 R - 202 -D - 220 +D - 218 Healer N - 90 E - 144 R - 165 -D - 179 +D - 178 Projectile damage: Profaned Spear N - 120 E - 200 -R - 250 -D - 287 +R - 220 +D - 232 Flare Dust N - 140 E - 220 -R - 275 -D - 316 +R - 242 +D - 255 Anti-heal Orb (ignores defense and DR) N - 32 E - 32 @@ -1150,19 +1155,19 @@ Bumblebirb N - 160 (normal), 240 (charge) E - 256 (normal), 384 (charge) R - 281 (normal), 422 (charge) -D - 297 (normal), 447 (charge) +D - 296 (normal), 445 (charge) Bumblebirb Small N - 110 (normal), 165 (charge) E - 220 (normal), 330 (charge) R - 242 (normal), 363 (charge) -D - 256 (normal), 384 (charge) +D - 255 (normal), 382 (charge) Projectile damage: Red Feather N - 120 E - 200 -R - 250 -D - 287 +R - 220 +D - 232 PROVIDENCE @@ -1176,24 +1181,24 @@ Profaned Guardian Offense N - 120 E - 240 R - 264 -D - 279 +D - 278 Defense N - 100 E - 200 R - 220 -D - 233 +D - 232 Projectile damage: Holy Blast/Holy Spear N - 130 E - 208 -R - 260 -D - 299 +R - 228 +D - 241 Holy Fire/Holy Bomb/Holy Flare N - 120 E - 192 -R - 240 -D - 276 +R - 220 +D - 238 Anti-heal Flame (ignores defense and DR) N - 100 E - 150 @@ -1207,18 +1212,18 @@ D - NA Molten Blast/Molten Blob N - 110 E - 168 -R - 210 -D - 241 +R - 193 +D - 208 Crystal Shards N - 140 E - 228 -R - 285 -D - 327 +R - 250 +D - 264 Holy Ray N - 200 E - 400 -R - 500 -D - 575 +R - 440 +D - 464 CEASELESS VOID @@ -1227,7 +1232,7 @@ Ceaseless Void N - 150 E - 300 R - 330 -D - 349 +D - 348 Dark Energy N - 120 E - 240 @@ -1238,8 +1243,8 @@ Projectile damage: Homing Laser/Dark Energy Ball N - 120 E - 200 -R - 250 -D - 287 +R - 230 +D - 248 STORM WEAVER @@ -1248,7 +1253,7 @@ Storm Weaver Head N - 140 (phase 1), 180 (phase 2) E - 280 (phase 1), 360 (phase 2) R - 308 (phase 1), 396 (phase 2) -D - 326 (phase 1), 419 (phase 2) +D - 324 (phase 1), 417 (phase 2) Body N - 100 (phase 1), 120 (phase 2) E - 170 (phase 1), 204 (phase 2) @@ -1270,12 +1275,12 @@ Lightning N - 150 E - 248 R - 248 -D - 285 +D - 248 Probe Laser N - 120 E - 200 R - 200 -D - 230 +D - 200 SIGNUS @@ -1284,12 +1289,12 @@ Signus N - 175 E - 297 R - 326 -D - 345 +D - 344 Cosmic Lantern N - 110 E - 220 R - 242 -D - 256 +D - 255 Cosmic Mine N - NA E - NA @@ -1300,18 +1305,18 @@ Projectile damage: Cosmic Flame Burst N - 130 E - 208 -R - 260 -D - 299 +R - 228 +D - 241 Homing Scythe N - 120 E - 192 -R - 240 -D - 276 +R - 211 +D - 222 Essence Dust N - 140 E - 240 -R - 300 -D - 345 +R - 264 +D - 278 POLTERGHAST @@ -1320,29 +1325,29 @@ Polterghast N - 150 (phase 1), 180 (phase 2), 210 (phase 3) E - 240 (phase 1), 288 (phase 2), 336 (phase 3) R - 264 (phase 1), 316 (phase 2), 369 (phase 3) -D - 279 (phase 1), 334 (phase 2), 391 (phase 3) +D - 278 (phase 1), 334 (phase 2), 389 (phase 3) Clone N - 210 E - 336 R - 369 -D - 391 +D - 389 Projectile damage: Phantom Shot N - 120 (blue), 130 (red) E - 192 (blue), 212 (red) -R - 240 (blue), 265 (red) -D - 276 (blue), 304 (red) +R - 211 (blue), 233 (red) +D - 222 (blue), 245 (red) Phantom Blast N - 140 (blue), 150 (red) E - 240 (blue), 260 (red) -R - 300 (blue), 325 (red) -D - 345 (blue), 373 (red) +R - 264 (blue), 286 (red) +D - 278 (blue), 301 (red) Phantom Mine N - 150 E - 248 -R - 310 -D - 356 +R - 272 +D - 287 DEVOURER OF GODS @@ -1356,17 +1361,17 @@ Body N - 180 (phase 1), 220 (phase 2) E - 306 (phase 1), 374 (phase 2) R - 336 (phase 1), 411 (phase 2) -D - 356 (phase 1), 435 (phase 2) +D - 354 (phase 1), 433 (phase 2) Tail N - 150 (phase 1), 180 (phase 2) E - 255 (phase 1), 306 (phase 2) R - 280 (phase 1), 336 (phase 2) -D - 296 (phase 1), 356 (phase 2) +D - 295 (phase 1), 354 (phase 2) Cosmic Guardian Head N - 180 E - 360 R - 396 -D - 419 +D - 417 Body N - 130 E - 260 @@ -1382,13 +1387,13 @@ Projectile damage: Nebula Shot N - 140 E - 232 -R - 290 -D - 333 +R - 255 +D - 269 Laser Wall/God Slayer Fireball N - 160 E - 276 -R - 345 -D - 396 +R - 303 +D - 320 YHARON @@ -1397,44 +1402,44 @@ Yharon N - 330 (normal), 363 (phase 2, low HP) E - 528 (normal), 580 (phase 2, low HP) R - 554 (normal), 609 (phase 2, low HP) -D - 570 (normal), 627 (phase 2, low HP) +D - 570 (normal), 626 (phase 2, low HP) Detonating Flame N - 100 (ranged flame), 220 (melee flame) E - 200 (ranged flame), 440 (melee flame) R - 220 (ranged flame), 462 (melee flame) -D - 233 (ranged flame), 475 (melee flame) +D - 232 (ranged flame), 475 (melee flame) Projectile damage: Flare Bomb N - 180 (normal), 312 (on death) E - 300 (normal), 548 (on death) -R - 375 (normal), 685 (on death) -D - 431 (normal), 787 (on death) +R - 330 (normal), 602 (on death) +D - 348 (normal), 635 (on death) Flarenado N - 200 E - 340 -R - 425 -D - 488 +R - 374 +D - 394 Infernado N - 300 E - 520 -R - 650 -D - 747 +R - 546 +D - 561 Flare Dust (type 1 only does damage when it explodes, type 2 does damage at all times) -N - 180 (normal), 250 (type 2, phase 2), 312 (type 2, phase 2, low HP) -E - 300 (normal), 440 (type 2, phase 2), 548 (type 2, phase 2, low HP) -R - 375 (normal), 550 (type 2, phase 2), 685 (type 2, phase 2, low HP) -D - 431 (normal), 632 (type 2, phase 2), 787 (type 2, phase 2, low HP) +N - 180 (normal), 250 (type 2, phase 2), 274 (type 2, phase 2, low HP) +E - 300 (normal), 440 (type 2, phase 2), 484 (type 2, phase 2, low HP) +R - 375 (normal), 462 (type 2, phase 2), 508 (type 2, phase 2, low HP) +D - 375 (normal), 475 (type 2, phase 2), 522 (type 2, phase 2, low HP) Splitting Fireballs (these are phase 2 only) -N - 250 (normal), 312 (low HP) -E - 440 (normal), 548 (low HP) -R - 550 (normal), 685 (low HP) -D - 632 (normal), 787 (low HP) +N - 250 (normal), 274 (low HP) +E - 440 (normal), 484 (low HP) +R - 462 (normal), 508 (low HP) +D - 475 (normal), 522 (low HP) Detonating Flame Fireball N - 180 E - 300 R - 300 -D - 345 +D - 300 SUPREME CALAMITAS @@ -1443,16 +1448,16 @@ SCal N - 350 E - 560 R - 588 -D - 605 +D - 604 Projectile damage: All projectiles in bullet hell 1 N - 500 E - 800 -R - 1000 -D - 1150 +R - 840 +D - 864 All other projectiles N - 400 E - 600 -R - 750 -D - 862 +R - 630 +D - 648 diff --git a/CalPlayer/CalamityPlayer.cs b/CalPlayer/CalamityPlayer.cs index e2a625f1f4..4feb51c0e2 100644 --- a/CalPlayer/CalamityPlayer.cs +++ b/CalPlayer/CalamityPlayer.cs @@ -5404,8 +5404,32 @@ namespace CalamityMod.CalPlayer } if (CalamityWorld.revenge) { - if (CalamityMod.revengeanceProjectileBuffList.Contains(proj.type)) - damage = (int)((double)damage * 1.25); + double damageMultiplier = 1D; + if (CalamityMod.revengeanceProjectileBuffList25Percent.Contains(proj.type)) + { + damageMultiplier += 0.25; + } + else if (CalamityMod.revengeanceProjectileBuffList20Percent.Contains(proj.type)) + { + damageMultiplier += 0.2; + } + else if (CalamityMod.revengeanceProjectileBuffList15Percent.Contains(proj.type)) + { + damageMultiplier += 0.15; + } + else if (CalamityMod.revengeanceProjectileBuffList10Percent.Contains(proj.type)) + { + damageMultiplier += 0.1; + } + else if (CalamityMod.revengeanceProjectileBuffList5Percent.Contains(proj.type)) + { + damageMultiplier += 0.05; + } + + if (CalamityWorld.death) + damageMultiplier += (damageMultiplier - 1D) * 0.6; + + damage = (int)(damage * damageMultiplier); } // Reduce damage from vanilla traps diff --git a/CalamityMod.cs b/CalamityMod.cs index 99a69f24b1..fadeee88b7 100644 --- a/CalamityMod.cs +++ b/CalamityMod.cs @@ -163,8 +163,12 @@ namespace CalamityMod public static List revengeanceEnemyBuffList15Percent; public static List revengeanceEnemyBuffList10Percent; public static List revengeanceEnemyBuffList5Percent; - public static List revengeanceProjectileBuffList; - public static List revengeanceLifeStealExceptionList; + public static List revengeanceProjectileBuffList25Percent; + public static List revengeanceProjectileBuffList20Percent; + public static List revengeanceProjectileBuffList15Percent; + public static List revengeanceProjectileBuffList10Percent; + public static List revengeanceProjectileBuffList5Percent; + public static List revengeanceLifeStealExceptionList; public static List movementImpairImmuneList; public static List trapProjectileList; public static List scopedWeaponList; @@ -352,8 +356,12 @@ namespace CalamityMod revengeanceEnemyBuffList15Percent = null; revengeanceEnemyBuffList10Percent = null; revengeanceEnemyBuffList5Percent = null; - revengeanceProjectileBuffList = null; - revengeanceLifeStealExceptionList = null; + revengeanceProjectileBuffList25Percent = null; + revengeanceProjectileBuffList20Percent = null; + revengeanceProjectileBuffList15Percent = null; + revengeanceProjectileBuffList10Percent = null; + revengeanceProjectileBuffList5Percent = null; + revengeanceLifeStealExceptionList = null; movementImpairImmuneList = null; trapProjectileList = null; scopedWeaponList = null; @@ -1546,152 +1554,143 @@ namespace CalamityMod ModContent.NPCType() }; - revengeanceProjectileBuffList = new List() + revengeanceProjectileBuffList25Percent = new List() { - ProjectileID.Sharknado, - ProjectileID.Cthulunado, - ProjectileID.DD2BetsyFireball, - ProjectileID.DD2BetsyFlameBreath, - ProjectileID.SandBallFalling, ProjectileID.AshBallFalling, - ProjectileID.DemonSickle, ProjectileID.EbonsandBallFalling, ProjectileID.PearlSandBallFalling, - ProjectileID.Boulder, - ProjectileID.PoisonDartTrap, - ProjectileID.SpikyBallTrap, - ProjectileID.SpearTrap, - ProjectileID.FlamethrowerTrap, - ProjectileID.FlamesTrap, ProjectileID.CrimsandBallFalling, - ProjectileID.Fireball, - ProjectileID.PaladinsHammerHostile, - ProjectileID.FlamingWood, - ProjectileID.FlamingScythe, - ProjectileID.FrostWave, - ProjectileID.Present, - ProjectileID.Spike, - ProjectileID.SaucerDeathray, - ProjectileID.NebulaBolt, - ProjectileID.NebulaSphere, - ProjectileID.NebulaLaser, - ProjectileID.StardustSoldierLaser, - ProjectileID.VortexLaser, - ProjectileID.VortexVortexLightning, - ProjectileID.VortexLightning, - ProjectileID.VortexAcid, ProjectileID.GeyserTrap, - ProjectileID.SandnadoHostile, - ModContent.ProjectileType(), - ModContent.ProjectileType(), ModContent.ProjectileType(), - ModContent.ProjectileType(), - - ModContent.ProjectileType(), - - ModContent.ProjectileType(), - ModContent.ProjectileType(), - - ModContent.ProjectileType(), - ModContent.ProjectileType(), - ModContent.ProjectileType(), - ModContent.ProjectileType(), - - ModContent.ProjectileType(), - ModContent.ProjectileType(), - ModContent.ProjectileType(), - - ModContent.ProjectileType(), - ModContent.ProjectileType(), - - ModContent.ProjectileType(), - ModContent.ProjectileType(), - ModContent.ProjectileType(), - ModContent.ProjectileType(), - ModContent.ProjectileType(), - - ModContent.ProjectileType(), - ModContent.ProjectileType(), - ModContent.ProjectileType(), - ModContent.ProjectileType(), - - ModContent.ProjectileType(), - ModContent.ProjectileType(), - ModContent.ProjectileType(), - ModContent.ProjectileType(), - - ModContent.ProjectileType(), - ModContent.ProjectileType(), - - ModContent.ProjectileType(), - ModContent.ProjectileType(), - ModContent.ProjectileType(), - ModContent.ProjectileType(), - - ModContent.ProjectileType(), - - ModContent.ProjectileType(), - ModContent.ProjectileType(), - - ModContent.ProjectileType(), - ModContent.ProjectileType(), - - ModContent.ProjectileType(), - - ModContent.ProjectileType(), - ModContent.ProjectileType(), - ModContent.ProjectileType(), - ModContent.ProjectileType(), - ModContent.ProjectileType(), - ModContent.ProjectileType(), - ModContent.ProjectileType(), - ModContent.ProjectileType(), - ModContent.ProjectileType(), - ModContent.ProjectileType(), - ModContent.ProjectileType(), - - ModContent.ProjectileType(), - ModContent.ProjectileType(), - - ModContent.ProjectileType(), - ModContent.ProjectileType(), - ModContent.ProjectileType(), - - ModContent.ProjectileType(), - ModContent.ProjectileType(), - ModContent.ProjectileType(), - ModContent.ProjectileType(), - ModContent.ProjectileType(), - ModContent.ProjectileType(), - ModContent.ProjectileType(), - - ModContent.ProjectileType(), - ModContent.ProjectileType(), - ModContent.ProjectileType(), - - ModContent.ProjectileType(), - ModContent.ProjectileType(), - ModContent.ProjectileType(), - ModContent.ProjectileType(), - ModContent.ProjectileType(), - ModContent.ProjectileType(), - ModContent.ProjectileType(), - - ModContent.ProjectileType(), - ModContent.ProjectileType(), - ModContent.ProjectileType(), - ModContent.ProjectileType(), - ModContent.ProjectileType(), - - ModContent.ProjectileType(), - ModContent.ProjectileType(), - ModContent.ProjectileType() + ModContent.ProjectileType(), + ModContent.ProjectileType() }; - revengeanceLifeStealExceptionList = new List() + revengeanceProjectileBuffList20Percent = new List() + { + ProjectileID.PoisonDartTrap, + ProjectileID.DemonSickle, + ProjectileID.SandnadoHostile, + ProjectileID.DD2BetsyFireball, + ProjectileID.DD2BetsyFlameBreath, + ModContent.ProjectileType(), + ModContent.ProjectileType(), + ModContent.ProjectileType(), + ModContent.ProjectileType(), + ModContent.ProjectileType(), + ModContent.ProjectileType(), + ModContent.ProjectileType(), + ModContent.ProjectileType(), + ModContent.ProjectileType(), + ModContent.ProjectileType() + }; + + revengeanceProjectileBuffList15Percent = new List() + { + ProjectileID.SpikyBallTrap, + ProjectileID.SpearTrap, + ProjectileID.FlamethrowerTrap, + ProjectileID.FlamesTrap, + ProjectileID.Fireball, + ProjectileID.PaladinsHammerHostile, + ProjectileID.FlamingWood, + ProjectileID.FlamingScythe, + ProjectileID.FrostWave, + ProjectileID.Present, + ProjectileID.Spike, + ProjectileID.SaucerDeathray, + ProjectileID.NebulaBolt, + ProjectileID.NebulaSphere, + ProjectileID.NebulaLaser, + ProjectileID.StardustSoldierLaser, + ProjectileID.VortexLaser, + ProjectileID.VortexVortexLightning, + ProjectileID.VortexLightning, + ProjectileID.VortexAcid, + ProjectileID.Sharknado, + ProjectileID.Cthulunado, + ModContent.ProjectileType(), + ModContent.ProjectileType(), + ModContent.ProjectileType(), + ModContent.ProjectileType(), + ModContent.ProjectileType(), + ModContent.ProjectileType(), + ModContent.ProjectileType(), + ModContent.ProjectileType(), + ModContent.ProjectileType(), + ModContent.ProjectileType(), + ModContent.ProjectileType(), + ModContent.ProjectileType(), + ModContent.ProjectileType(), + ModContent.ProjectileType(), + ModContent.ProjectileType(), + ModContent.ProjectileType(), + ModContent.ProjectileType(), + ModContent.ProjectileType(), + ModContent.ProjectileType(), + ModContent.ProjectileType(), + ModContent.ProjectileType(), + ModContent.ProjectileType(), + ModContent.ProjectileType(), + ModContent.ProjectileType(), + ModContent.ProjectileType(), + ModContent.ProjectileType(), + ModContent.ProjectileType(), + ModContent.ProjectileType(), + ModContent.ProjectileType(), + ModContent.ProjectileType(), + ModContent.ProjectileType(), + ModContent.ProjectileType() + }; + + revengeanceProjectileBuffList10Percent = new List() + { + ProjectileID.Boulder, + ModContent.ProjectileType(), + ModContent.ProjectileType(), + ModContent.ProjectileType(), + ModContent.ProjectileType(), + ModContent.ProjectileType(), + ModContent.ProjectileType(), + ModContent.ProjectileType(), + ModContent.ProjectileType(), + ModContent.ProjectileType(), + ModContent.ProjectileType(), + ModContent.ProjectileType(), + ModContent.ProjectileType(), + ModContent.ProjectileType(), + ModContent.ProjectileType(), + ModContent.ProjectileType(), + ModContent.ProjectileType(), + ModContent.ProjectileType(), + ModContent.ProjectileType(), + ModContent.ProjectileType(), + ModContent.ProjectileType(), + ModContent.ProjectileType(), + ModContent.ProjectileType(), + ModContent.ProjectileType(), + ModContent.ProjectileType() + }; + + revengeanceProjectileBuffList5Percent = new List() + { + ModContent.ProjectileType(), + ModContent.ProjectileType(), + ModContent.ProjectileType(), + ModContent.ProjectileType(), + ModContent.ProjectileType(), + ModContent.ProjectileType(), + ModContent.ProjectileType(), + ModContent.ProjectileType(), + ModContent.ProjectileType(), + ModContent.ProjectileType(), + ModContent.ProjectileType() + }; + + revengeanceLifeStealExceptionList = new List() { NPCID.Probe, NPCID.MoonLordFreeEye, @@ -2542,78 +2541,78 @@ namespace CalamityMod revengeanceEnemyBuffList15Percent.Add(thorium.NPCType("Aquaius")); revengeanceEnemyBuffList15Percent.Add(thorium.NPCType("Aquaius2")); - revengeanceProjectileBuffList.Add(thorium.ProjectileType("GrandThunderBirdZap")); - revengeanceProjectileBuffList.Add(thorium.ProjectileType("ThunderGust")); - revengeanceProjectileBuffList.Add(thorium.ProjectileType("BubbleBomb")); - revengeanceProjectileBuffList.Add(thorium.ProjectileType("QueenJellyArm")); - revengeanceProjectileBuffList.Add(thorium.ProjectileType("QueenTorrent")); - revengeanceProjectileBuffList.Add(thorium.ProjectileType("ViscountRipple")); - revengeanceProjectileBuffList.Add(thorium.ProjectileType("ViscountRipple2")); - revengeanceProjectileBuffList.Add(thorium.ProjectileType("ViscountBlood")); - revengeanceProjectileBuffList.Add(thorium.ProjectileType("ViscountStomp")); - revengeanceProjectileBuffList.Add(thorium.ProjectileType("ViscountStomp2")); - revengeanceProjectileBuffList.Add(thorium.ProjectileType("ViscountRockFall")); - revengeanceProjectileBuffList.Add(thorium.ProjectileType("GraniteCharge")); - revengeanceProjectileBuffList.Add(thorium.ProjectileType("BuriedShock")); - revengeanceProjectileBuffList.Add(thorium.ProjectileType("BuriedDagger")); - revengeanceProjectileBuffList.Add(thorium.ProjectileType("BuriedArrow")); - revengeanceProjectileBuffList.Add(thorium.ProjectileType("BuriedArrow2")); - revengeanceProjectileBuffList.Add(thorium.ProjectileType("BuriedArrowF")); - revengeanceProjectileBuffList.Add(thorium.ProjectileType("BuriedArrowP")); - revengeanceProjectileBuffList.Add(thorium.ProjectileType("BuriedArrowC")); - revengeanceProjectileBuffList.Add(thorium.ProjectileType("BuriedMagic")); - revengeanceProjectileBuffList.Add(thorium.ProjectileType("BuriedMagicPop")); - revengeanceProjectileBuffList.Add(thorium.ProjectileType("MainBeamOuter")); - revengeanceProjectileBuffList.Add(thorium.ProjectileType("MainBeam")); - revengeanceProjectileBuffList.Add(thorium.ProjectileType("MainBeamCheese")); - revengeanceProjectileBuffList.Add(thorium.ProjectileType("VaporizeBlast")); - revengeanceProjectileBuffList.Add(thorium.ProjectileType("GravitonSurge")); - revengeanceProjectileBuffList.Add(thorium.ProjectileType("Vaporize")); - revengeanceProjectileBuffList.Add(thorium.ProjectileType("GravitonCharge")); - revengeanceProjectileBuffList.Add(thorium.ProjectileType("GravitySpark")); - revengeanceProjectileBuffList.Add(thorium.ProjectileType("DoomBeholderBeam")); - revengeanceProjectileBuffList.Add(thorium.ProjectileType("VoidLaserPro")); - revengeanceProjectileBuffList.Add(thorium.ProjectileType("BeholderBeam")); - revengeanceProjectileBuffList.Add(thorium.ProjectileType("BlizzardBarrage")); - revengeanceProjectileBuffList.Add(thorium.ProjectileType("FrostSurge")); - revengeanceProjectileBuffList.Add(thorium.ProjectileType("FrostSurgeR")); - revengeanceProjectileBuffList.Add(thorium.ProjectileType("BlizzardCascade")); - revengeanceProjectileBuffList.Add(thorium.ProjectileType("BlizzardBoom")); - revengeanceProjectileBuffList.Add(thorium.ProjectileType("BlizzardFang")); - revengeanceProjectileBuffList.Add(thorium.ProjectileType("FrostMytePro")); - revengeanceProjectileBuffList.Add(thorium.ProjectileType("IceAnomaly")); - revengeanceProjectileBuffList.Add(thorium.ProjectileType("LichGaze")); - revengeanceProjectileBuffList.Add(thorium.ProjectileType("LichGazeB")); - revengeanceProjectileBuffList.Add(thorium.ProjectileType("LichFlareSpawn")); - revengeanceProjectileBuffList.Add(thorium.ProjectileType("LichFlare")); - revengeanceProjectileBuffList.Add(thorium.ProjectileType("LichPulse")); - revengeanceProjectileBuffList.Add(thorium.ProjectileType("LichMatter")); - revengeanceProjectileBuffList.Add(thorium.ProjectileType("SoulRenderLich")); - revengeanceProjectileBuffList.Add(thorium.ProjectileType("LichFlareDeathD")); - revengeanceProjectileBuffList.Add(thorium.ProjectileType("LichFlareDeathU")); - revengeanceProjectileBuffList.Add(thorium.ProjectileType("Whirlpool")); - revengeanceProjectileBuffList.Add(thorium.ProjectileType("AbyssionSpit")); - revengeanceProjectileBuffList.Add(thorium.ProjectileType("AbyssionSpit2")); - revengeanceProjectileBuffList.Add(thorium.ProjectileType("AquaRipple")); - revengeanceProjectileBuffList.Add(thorium.ProjectileType("AbyssalStrike2")); - revengeanceProjectileBuffList.Add(thorium.ProjectileType("OldGodSpit")); - revengeanceProjectileBuffList.Add(thorium.ProjectileType("OldGodSpit2")); - revengeanceProjectileBuffList.Add(thorium.ProjectileType("WaterPulse")); - revengeanceProjectileBuffList.Add(thorium.ProjectileType("TyphoonBlastHostile")); - revengeanceProjectileBuffList.Add(thorium.ProjectileType("TyphoonBlastHostileSmaller")); - revengeanceProjectileBuffList.Add(thorium.ProjectileType("AquaBarrage")); - revengeanceProjectileBuffList.Add(thorium.ProjectileType("DeathRaySpawnR")); - revengeanceProjectileBuffList.Add(thorium.ProjectileType("DeathRaySpawnL")); - revengeanceProjectileBuffList.Add(thorium.ProjectileType("DeathRaySpawn")); - revengeanceProjectileBuffList.Add(thorium.ProjectileType("OmniDeath")); - revengeanceProjectileBuffList.Add(thorium.ProjectileType("OmniSphereOrb")); - revengeanceProjectileBuffList.Add(thorium.ProjectileType("FlameLash")); - revengeanceProjectileBuffList.Add(thorium.ProjectileType("FlamePulse")); - revengeanceProjectileBuffList.Add(thorium.ProjectileType("FlamePulseTorn")); - revengeanceProjectileBuffList.Add(thorium.ProjectileType("FlameNova")); - revengeanceProjectileBuffList.Add(thorium.ProjectileType("MoltenFury")); - revengeanceProjectileBuffList.Add(thorium.ProjectileType("RealityFury")); - revengeanceProjectileBuffList.Add(thorium.ProjectileType("UFOBlast")); + revengeanceProjectileBuffList25Percent.Add(thorium.ProjectileType("GrandThunderBirdZap")); + revengeanceProjectileBuffList25Percent.Add(thorium.ProjectileType("ThunderGust")); + revengeanceProjectileBuffList25Percent.Add(thorium.ProjectileType("BubbleBomb")); + revengeanceProjectileBuffList25Percent.Add(thorium.ProjectileType("QueenJellyArm")); + revengeanceProjectileBuffList25Percent.Add(thorium.ProjectileType("QueenTorrent")); + revengeanceProjectileBuffList20Percent.Add(thorium.ProjectileType("ViscountRipple")); + revengeanceProjectileBuffList20Percent.Add(thorium.ProjectileType("ViscountRipple2")); + revengeanceProjectileBuffList20Percent.Add(thorium.ProjectileType("ViscountBlood")); + revengeanceProjectileBuffList20Percent.Add(thorium.ProjectileType("ViscountStomp")); + revengeanceProjectileBuffList20Percent.Add(thorium.ProjectileType("ViscountStomp2")); + revengeanceProjectileBuffList20Percent.Add(thorium.ProjectileType("ViscountRockFall")); + revengeanceProjectileBuffList20Percent.Add(thorium.ProjectileType("GraniteCharge")); + revengeanceProjectileBuffList20Percent.Add(thorium.ProjectileType("BuriedShock")); + revengeanceProjectileBuffList20Percent.Add(thorium.ProjectileType("BuriedDagger")); + revengeanceProjectileBuffList20Percent.Add(thorium.ProjectileType("BuriedArrow")); + revengeanceProjectileBuffList20Percent.Add(thorium.ProjectileType("BuriedArrow2")); + revengeanceProjectileBuffList20Percent.Add(thorium.ProjectileType("BuriedArrowF")); + revengeanceProjectileBuffList20Percent.Add(thorium.ProjectileType("BuriedArrowP")); + revengeanceProjectileBuffList20Percent.Add(thorium.ProjectileType("BuriedArrowC")); + revengeanceProjectileBuffList20Percent.Add(thorium.ProjectileType("BuriedMagic")); + revengeanceProjectileBuffList20Percent.Add(thorium.ProjectileType("BuriedMagicPop")); + revengeanceProjectileBuffList20Percent.Add(thorium.ProjectileType("MainBeamOuter")); + revengeanceProjectileBuffList20Percent.Add(thorium.ProjectileType("MainBeam")); + revengeanceProjectileBuffList20Percent.Add(thorium.ProjectileType("MainBeamCheese")); + revengeanceProjectileBuffList20Percent.Add(thorium.ProjectileType("VaporizeBlast")); + revengeanceProjectileBuffList20Percent.Add(thorium.ProjectileType("GravitonSurge")); + revengeanceProjectileBuffList20Percent.Add(thorium.ProjectileType("Vaporize")); + revengeanceProjectileBuffList20Percent.Add(thorium.ProjectileType("GravitonCharge")); + revengeanceProjectileBuffList20Percent.Add(thorium.ProjectileType("GravitySpark")); + revengeanceProjectileBuffList15Percent.Add(thorium.ProjectileType("DoomBeholderBeam")); + revengeanceProjectileBuffList15Percent.Add(thorium.ProjectileType("VoidLaserPro")); + revengeanceProjectileBuffList15Percent.Add(thorium.ProjectileType("BeholderBeam")); + revengeanceProjectileBuffList15Percent.Add(thorium.ProjectileType("BlizzardBarrage")); + revengeanceProjectileBuffList15Percent.Add(thorium.ProjectileType("FrostSurge")); + revengeanceProjectileBuffList15Percent.Add(thorium.ProjectileType("FrostSurgeR")); + revengeanceProjectileBuffList15Percent.Add(thorium.ProjectileType("BlizzardCascade")); + revengeanceProjectileBuffList15Percent.Add(thorium.ProjectileType("BlizzardBoom")); + revengeanceProjectileBuffList15Percent.Add(thorium.ProjectileType("BlizzardFang")); + revengeanceProjectileBuffList15Percent.Add(thorium.ProjectileType("FrostMytePro")); + revengeanceProjectileBuffList15Percent.Add(thorium.ProjectileType("IceAnomaly")); + revengeanceProjectileBuffList15Percent.Add(thorium.ProjectileType("LichGaze")); + revengeanceProjectileBuffList15Percent.Add(thorium.ProjectileType("LichGazeB")); + revengeanceProjectileBuffList15Percent.Add(thorium.ProjectileType("LichFlareSpawn")); + revengeanceProjectileBuffList15Percent.Add(thorium.ProjectileType("LichFlare")); + revengeanceProjectileBuffList15Percent.Add(thorium.ProjectileType("LichPulse")); + revengeanceProjectileBuffList15Percent.Add(thorium.ProjectileType("LichMatter")); + revengeanceProjectileBuffList15Percent.Add(thorium.ProjectileType("SoulRenderLich")); + revengeanceProjectileBuffList15Percent.Add(thorium.ProjectileType("LichFlareDeathD")); + revengeanceProjectileBuffList15Percent.Add(thorium.ProjectileType("LichFlareDeathU")); + revengeanceProjectileBuffList15Percent.Add(thorium.ProjectileType("Whirlpool")); + revengeanceProjectileBuffList15Percent.Add(thorium.ProjectileType("AbyssionSpit")); + revengeanceProjectileBuffList15Percent.Add(thorium.ProjectileType("AbyssionSpit2")); + revengeanceProjectileBuffList15Percent.Add(thorium.ProjectileType("AquaRipple")); + revengeanceProjectileBuffList15Percent.Add(thorium.ProjectileType("AbyssalStrike2")); + revengeanceProjectileBuffList15Percent.Add(thorium.ProjectileType("OldGodSpit")); + revengeanceProjectileBuffList15Percent.Add(thorium.ProjectileType("OldGodSpit2")); + revengeanceProjectileBuffList15Percent.Add(thorium.ProjectileType("WaterPulse")); + revengeanceProjectileBuffList15Percent.Add(thorium.ProjectileType("TyphoonBlastHostile")); + revengeanceProjectileBuffList15Percent.Add(thorium.ProjectileType("TyphoonBlastHostileSmaller")); + revengeanceProjectileBuffList15Percent.Add(thorium.ProjectileType("AquaBarrage")); + revengeanceProjectileBuffList15Percent.Add(thorium.ProjectileType("DeathRaySpawnR")); + revengeanceProjectileBuffList15Percent.Add(thorium.ProjectileType("DeathRaySpawnL")); + revengeanceProjectileBuffList15Percent.Add(thorium.ProjectileType("DeathRaySpawn")); + revengeanceProjectileBuffList15Percent.Add(thorium.ProjectileType("OmniDeath")); + revengeanceProjectileBuffList15Percent.Add(thorium.ProjectileType("OmniSphereOrb")); + revengeanceProjectileBuffList15Percent.Add(thorium.ProjectileType("FlameLash")); + revengeanceProjectileBuffList15Percent.Add(thorium.ProjectileType("FlamePulse")); + revengeanceProjectileBuffList15Percent.Add(thorium.ProjectileType("FlamePulseTorn")); + revengeanceProjectileBuffList15Percent.Add(thorium.ProjectileType("FlameNova")); + revengeanceProjectileBuffList15Percent.Add(thorium.ProjectileType("MoltenFury")); + revengeanceProjectileBuffList15Percent.Add(thorium.ProjectileType("RealityFury")); + revengeanceProjectileBuffList15Percent.Add(thorium.ProjectileType("UFOBlast")); } } #endregion diff --git a/NPCs/BrimstoneElemental/BrimstoneElemental.cs b/NPCs/BrimstoneElemental/BrimstoneElemental.cs index 1c03180a2d..d1f83a433e 100644 --- a/NPCs/BrimstoneElemental/BrimstoneElemental.cs +++ b/NPCs/BrimstoneElemental/BrimstoneElemental.cs @@ -40,7 +40,7 @@ namespace CalamityMod.NPCs.BrimstoneElemental npc.height = 150; npc.defense = 15; npc.value = Item.buyPrice(0, 12, 0, 0); - npc.LifeMaxNERB(26000, 35708, 6500000); + npc.LifeMaxNERB(30000, 41000, 6500000); if (CalamityWorld.downedProvidence && !CalamityWorld.bossRushActive) { npc.damage *= 3; diff --git a/NPCs/CalamityGlobalAI.cs b/NPCs/CalamityGlobalAI.cs index a325c089c6..283aedd183 100644 --- a/NPCs/CalamityGlobalAI.cs +++ b/NPCs/CalamityGlobalAI.cs @@ -1430,7 +1430,9 @@ namespace CalamityMod.NPCs float num418 = CalamityWorld.bossRushActive ? 18f : 12f; int num419 = 15; - int num420 = ProjectileID.CursedFlameHostile; + if (death) + num419 += 2; + int num420 = ProjectileID.CursedFlameHostile; num351 = (float)Math.Sqrt((double)(num349 * num349 + num350 * num350)); num351 = num418 / num351; num349 *= num351; @@ -2983,6 +2985,8 @@ namespace CalamityMod.NPCs num626 *= num627; int damage = Main.player[npc.target].buffImmune[BuffID.Poisoned] ? 18 : 14; + if (death) + damage += 2; int type = ProjectileID.Stinger; int projectile = Projectile.NewProjectile(vector78.X, vector78.Y, num625, num626, type, damage, 0f, Main.myPlayer, 0f, 0f); Main.projectile[projectile].timeLeft = 300; @@ -3188,7 +3192,9 @@ namespace CalamityMod.NPCs num151 = 5f; int num152 = 19; - int num153 = ProjectileID.Shadowflames; + if (death) + num152 += 2; + int num153 = ProjectileID.Shadowflames; Vector2 value19 = Main.player[npc.target].Center - npc.Center; value19.Normalize(); @@ -3331,7 +3337,9 @@ namespace CalamityMod.NPCs num163 = vector19.X; num164 = vector19.Y; int num166 = 21; - int num167 = ProjectileID.Skull; + if (death) + num166 += 2; + int num167 = ProjectileID.Skull; vector18 += vector19 * 5f; int num168 = Projectile.NewProjectile(vector18.X, vector18.Y, num163, num164, num167, num166, 0f, Main.myPlayer, -1f, 0f); Main.projectile[num168].timeLeft = 300; @@ -4187,7 +4195,9 @@ namespace CalamityMod.NPCs velocity *= 1.5f; int damage = phase2 ? 22 : 17; - int projectileType = phase2 ? ProjectileID.DeathLaser : ProjectileID.EyeLaser; + if (death) + damage += 2; + int projectileType = phase2 ? ProjectileID.DeathLaser : ProjectileID.EyeLaser; vector38 = new Vector2(npc.position.X + (float)npc.width * 0.5f, npc.position.Y + (float)npc.height * 0.5f); num357 = Main.player[npc.target].position.X + (float)Main.player[npc.target].width * 0.5f - vector38.X; @@ -4389,8 +4399,11 @@ namespace CalamityMod.NPCs else projectileType = ProjectileID.SaucerScrap; - // Get target vector - Vector2 vector = new Vector2(npc.position.X + (float)npc.width * 0.5f, npc.position.Y + (float)(npc.height / 2)); + if (death) + damage += 2; + + // Get target vector + Vector2 vector = new Vector2(npc.position.X + (float)npc.width * 0.5f, npc.position.Y + (float)(npc.height / 2)); float num6 = Main.player[npc.target].position.X + (float)Main.player[npc.target].width * 0.5f - vector.X; float num7 = Main.player[npc.target].position.Y + (float)Main.player[npc.target].height * 0.5f - vector.Y; float num8 = (float)Math.Sqrt((double)(num6 * num6 + num7 * num7)); @@ -4873,7 +4886,9 @@ namespace CalamityMod.NPCs { float num389 = CalamityWorld.bossRushActive ? 12f : 10.5f; int num390 = 23; - int num391 = ProjectileID.EyeLaser; + if (death) + num390 += 2; + int num391 = ProjectileID.EyeLaser; num387 = (float)Math.Sqrt((double)(num385 * num385 + num386 * num386)); num387 = num389 / num387; @@ -5095,7 +5110,9 @@ namespace CalamityMod.NPCs npc.localAI[1] = 0f; float num404 = CalamityWorld.bossRushActive ? 12f : 10f; int num405 = 28; - int num406 = ProjectileID.DeathLaser; + if (death) + num405 += 3; + int num406 = ProjectileID.DeathLaser; num403 = (float)Math.Sqrt((double)(num401 * num401 + num402 * num402)); num403 = num404 / num403; @@ -5188,7 +5205,9 @@ namespace CalamityMod.NPCs npc.localAI[1] = 0f; float num414 = CalamityWorld.bossRushActive ? 11f : 9f; int num415 = 21; - int num416 = ProjectileID.DeathLaser; + if (death) + num415 += 2; + int num416 = ProjectileID.DeathLaser; num413 = (float)Math.Sqrt((double)(num411 * num411 + num412 * num412)); num413 = num414 / num413; @@ -5285,7 +5304,9 @@ namespace CalamityMod.NPCs float num353 = 6f; int num354 = 30; - int num355 = ModContent.ProjectileType(); + if (death) + num354 += 3; + int num355 = ModContent.ProjectileType(); vector34 = new Vector2(npc.position.X + (float)npc.width * 0.5f, npc.position.Y + (float)npc.height * 0.5f); num349 = Main.player[npc.target].position.X + (float)Main.player[npc.target].width * 0.5f - vector34.X; @@ -5564,7 +5585,9 @@ namespace CalamityMod.NPCs { float num430 = CalamityWorld.bossRushActive ? 20f : 15f; int num431 = 27; - int num432 = ProjectileID.CursedFlameHostile; + if (death) + num431 += 3; + int num432 = ProjectileID.CursedFlameHostile; num429 = (float)Math.Sqrt((double)(num427 * num427 + num428 * num428)); num429 = num430 / num429; @@ -5821,7 +5844,9 @@ namespace CalamityMod.NPCs float num446 = CalamityWorld.bossRushActive ? 9f : 6f; int num447 = 33; - int num448 = ModContent.ProjectileType(); + if (death) + num447 += 3; + int num448 = ModContent.ProjectileType(); vector46 = new Vector2(npc.position.X + (float)npc.width * 0.5f, npc.position.Y + (float)npc.height * 0.5f); num443 = Main.player[npc.target].position.X + (float)(Main.player[npc.target].width / 2) - vector46.X; @@ -6102,7 +6127,9 @@ namespace CalamityMod.NPCs { float num430 = 16f; int num431 = 31; - int num432 = ModContent.ProjectileType(); + if (death) + num431 += 3; + int num432 = ModContent.ProjectileType(); float num429 = (float)Math.Sqrt((double)(num427 * num427 + num428 * num428)); num429 = num430 / num429; @@ -6298,7 +6325,9 @@ namespace CalamityMod.NPCs double offsetAngle; float velocity = CalamityWorld.bossRushActive ? 6.5f : 5f; int damage = 31; - int i; + if (death) + damage += 3; + int i; for (i = 0; i < 6; i++) { offsetAngle = startAngle + deltaAngle * (i + i * i) / 2f + 32f * i; // Used to be 32 @@ -6322,7 +6351,9 @@ namespace CalamityMod.NPCs npc.localAI[2] = 0f; float num502 = CalamityWorld.bossRushActive ? 12f : 8f; int num503 = 33; - int num504 = ProjectileID.RocketSkeleton; + if (death) + num503 += 3; + int num504 = ProjectileID.RocketSkeleton; Vector2 value19 = Main.player[npc.target].Center - npc.Center; value19.Normalize(); value19 *= num502; @@ -6427,7 +6458,9 @@ namespace CalamityMod.NPCs double offsetAngle; float velocity = CalamityWorld.bossRushActive ? 6.5f : 5f; int damage = 31; - int i; + if (death) + damage += 3; + int i; for (i = 0; i < 6; i++) { offsetAngle = startAngle + deltaAngle * (i + i * i) / 2f + 32f * i; // Used to be 32 @@ -6615,7 +6648,9 @@ namespace CalamityMod.NPCs num161 = value.Y; int num163 = 28; - int num164 = ProjectileID.Skull; + if (death) + num163 += 3; + int num164 = ProjectileID.Skull; vector16 += value * 5f; int num165 = Projectile.NewProjectile(vector16.X, vector16.Y, num160, num161, num164, num163, 0f, Main.myPlayer, -1f, 0f); Main.projectile[num165].timeLeft = 180; @@ -6704,7 +6739,9 @@ namespace CalamityMod.NPCs velocity = velocity.RotatedBy((Main.rand.NextDouble() - 0.5) * 0.78539818525314331, default); velocity *= CalamityWorld.bossRushActive ? 7.5f : 5f; int damage = 33; - float delayBeforeHoming = CalamityWorld.bossRushActive ? 30f : 45f; + if (death) + damage += 3; + float delayBeforeHoming = CalamityWorld.bossRushActive ? 30f : 45f; Projectile.NewProjectile(npc.Center.X + Main.rand.Next(npc.width / 2), npc.Center.Y + 4f, velocity.X, velocity.Y, ProjectileID.SaucerMissile, damage, 0f, Main.myPlayer, 0f, delayBeforeHoming); } @@ -6732,8 +6769,10 @@ namespace CalamityMod.NPCs public static bool BuffedPrimeLaserAI(NPC npc, Mod mod) { - // Set direction - npc.spriteDirection = -(int)npc.ai[0]; + bool death = CalamityWorld.death || CalamityWorld.bossRushActive; + + // Set direction + npc.spriteDirection = -(int)npc.ai[0]; // Despawn if head is gone if (!Main.npc[(int)npc.ai[1]].active || Main.npc[(int)npc.ai[1]].aiStyle != 32) @@ -6858,7 +6897,9 @@ namespace CalamityMod.NPCs npc.localAI[0] = 0f; float num509 = CalamityWorld.bossRushActive ? 13f : 11f; int num510 = 31; - int num511 = ProjectileID.DeathLaser; + if (death) + num510 += 3; + int num511 = ProjectileID.DeathLaser; num508 = num509 / num508; num506 *= num508; num507 *= num508; @@ -6954,7 +6995,9 @@ namespace CalamityMod.NPCs double offsetAngle; float velocity = CalamityWorld.bossRushActive ? 6.5f : 5f; int damage = 31; - int i; + if (death) + damage += 3; + int i; for (i = 0; i < 6; i++) { offsetAngle = startAngle + deltaAngle * (i + i * i) / 2f + 32f * i; // Used to be 32 @@ -6973,7 +7016,9 @@ namespace CalamityMod.NPCs public static bool BuffedPrimeCannonAI(NPC npc, Mod mod) { - npc.spriteDirection = -(int)npc.ai[0]; + bool death = CalamityWorld.death || CalamityWorld.bossRushActive; + + npc.spriteDirection = -(int)npc.ai[0]; if (!Main.npc[(int)npc.ai[1]].active || Main.npc[(int)npc.ai[1]].aiStyle != 32) { @@ -7133,7 +7178,9 @@ namespace CalamityMod.NPCs npc.localAI[0] = 0f; float num495 = CalamityWorld.bossRushActive ? 12f : 8f; int num496 = 33; - int num497 = ProjectileID.RocketSkeleton; + if (death) + num496 += 3; + int num497 = ProjectileID.RocketSkeleton; num494 = num495 / num494; num492 *= num494; num493 *= num494; @@ -7203,7 +7250,9 @@ namespace CalamityMod.NPCs npc.localAI[0] = 0f; float num502 = CalamityWorld.bossRushActive ? 12f : 8f; int num503 = 33; - int num504 = ProjectileID.RocketSkeleton; + if (death) + num503 += 3; + int num504 = ProjectileID.RocketSkeleton; Vector2 value19 = Main.player[npc.target].Center - npc.Center; value19.Normalize(); value19 *= num502; @@ -8143,6 +8192,9 @@ namespace CalamityMod.NPCs } } + if (death) + damage += 3; + if (enrage) damage *= 2; @@ -8254,6 +8306,8 @@ namespace CalamityMod.NPCs vector93.Y += num744 * 3f; int damage = 30; + if (death) + damage += 3; int numProj = 2; int spread = 2 + tentacleScale; // 3 to 10, wider spread is harder to avoid @@ -8292,7 +8346,9 @@ namespace CalamityMod.NPCs vector93.Y += num744 * 3f; int damage = 35; - int numProj = 4; + if (death) + damage += 3; + int numProj = 4; int spread = 30; if (nearbyActiveTiles <= 300) @@ -8769,9 +8825,13 @@ namespace CalamityMod.NPCs vector82.X += num674 * 3f; vector82.Y += num675 * 3f; - if (Main.netMode != NetmodeID.MultiplayerClient) + int damage = 35; + if (death) + damage += 3; + + if (Main.netMode != NetmodeID.MultiplayerClient) { - int num677 = Projectile.NewProjectile(vector82.X, vector82.Y, num674, num675, ProjectileID.EyeBeam, 35, 0f, Main.myPlayer, 0f, 0f); + int num677 = Projectile.NewProjectile(vector82.X, vector82.Y, num674, num675, ProjectileID.EyeBeam, damage, 0f, Main.myPlayer, 0f, 0f); Main.projectile[num677].timeLeft = 480; } } @@ -8889,8 +8949,12 @@ namespace CalamityMod.NPCs velocityY *= 2f; } - int proj = Projectile.NewProjectile(npc.Center.X + (float)Main.rand.Next(-spawnX, spawnX), npc.Center.Y + (float)(npc.height / 2) * 0.8f, - velocityX, velocityY, ProjectileID.Fireball, 37, 0f, Main.myPlayer, 0f, 0f); + int damage = 37; + if (death) + damage += 3; + + int proj = Projectile.NewProjectile(npc.Center.X + (float)Main.rand.Next(-spawnX, spawnX), npc.Center.Y + (float)(npc.height / 2) * 0.8f, + velocityX, velocityY, ProjectileID.Fireball, damage, 0f, Main.myPlayer, 0f, 0f); Main.projectile[proj].timeLeft = 240; } } @@ -9055,8 +9119,12 @@ namespace CalamityMod.NPCs num656 *= num658; num657 *= num658; - if (Main.netMode != NetmodeID.MultiplayerClient) - Projectile.NewProjectile(vector81.X, vector81.Y, num656, num657, ProjectileID.Fireball, 37, 0f, Main.myPlayer, 0f, 0f); + int damage = 37; + if (death) + damage += 3; + + if (Main.netMode != NetmodeID.MultiplayerClient) + Projectile.NewProjectile(vector81.X, vector81.Y, num656, num657, ProjectileID.Fireball, damage, 0f, Main.myPlayer, 0f, 0f); } } @@ -9105,8 +9173,12 @@ namespace CalamityMod.NPCs num664 *= num666; num665 *= num666; - if (Main.netMode != NetmodeID.MultiplayerClient) - Projectile.NewProjectile(vector82.X, vector82.Y, num664, num665, ProjectileID.Fireball, 37, 0f, Main.myPlayer, 0f, 0f); + int damage = 37; + if (death) + damage += 3; + + if (Main.netMode != NetmodeID.MultiplayerClient) + Projectile.NewProjectile(vector82.X, vector82.Y, num664, num665, ProjectileID.Fireball, damage, 0f, Main.myPlayer, 0f, 0f); } // Lasers @@ -9122,7 +9194,9 @@ namespace CalamityMod.NPCs npc.ai[2] = 0f; int num670 = 35; - int num671 = ProjectileID.EyeBeam; + if (death) + num670 += 3; + int num671 = ProjectileID.EyeBeam; if (npc.localAI[1] == 0f) { @@ -9424,9 +9498,13 @@ namespace CalamityMod.NPCs num710 *= num711; int projectileType = phase3 ? ProjectileID.InfernoHostileBolt : ProjectileID.Fireball; - if (Main.netMode != NetmodeID.MultiplayerClient) + int damage = 40; + if (death) + damage += 4; + + if (Main.netMode != NetmodeID.MultiplayerClient) { - int proj = Projectile.NewProjectile(vector88.X, vector88.Y, num709, num710, projectileType, 40, 0f, Main.myPlayer, 0f, 0f); + int proj = Projectile.NewProjectile(vector88.X, vector88.Y, num709, num710, projectileType, damage, 0f, Main.myPlayer, 0f, 0f); if (projectileType == ProjectileID.InfernoHostileBolt) { Main.projectile[proj].timeLeft = 300; @@ -9465,9 +9543,13 @@ namespace CalamityMod.NPCs vector89.X += num717 * 3f; vector89.Y += num718 * 3f; + int damage = 35; + if (death) + damage += 3; + if (Main.netMode != NetmodeID.MultiplayerClient) { - int num720 = Projectile.NewProjectile(vector89.X, vector89.Y, num717, num718, ProjectileID.EyeBeam, 35, 0f, Main.myPlayer, 0f, 0f); + int num720 = Projectile.NewProjectile(vector89.X, vector89.Y, num717, num718, ProjectileID.EyeBeam, damage, 0f, Main.myPlayer, 0f, 0f); Main.projectile[num720].timeLeft = enrage ? 480 : 300; } } @@ -10566,6 +10648,13 @@ namespace CalamityMod.NPCs int fireballDamage = isCultist ? 30 : 27; int lightningDamage = 45; + if (death) + { + iceMistDamage += 3; + fireballDamage += 3; + lightningDamage += 4; + } + int iceMistFireRate = 60 - (phase2 ? 5 : 0) - (phase3 ? 5 : 0) - @@ -11651,13 +11740,17 @@ namespace CalamityMod.NPCs npc.localAI[1] = 0.25f + Vector2.UnitY.RotatedBy((double)(npc.ai[1] * 6.28318548f / 60f), default).Y * 0.25f; if (npc.ai[1] >= num1496) { + int damage = 50; + if (death) + damage += 5; + flag110 = true; if (Main.netMode != NetmodeID.MultiplayerClient) { for (int num1501 = 0; num1501 < 4; num1501++) { Vector2 vector255 = new Vector2(0f, -num1499).RotatedBy((double)(1.57079637f * (float)num1501), default); - Projectile.NewProjectile(npc.Center.X, npc.Center.Y, vector255.X, vector255.Y, ProjectileID.AncientDoomProjectile, 50, 0f, Main.myPlayer, 0f, 0f); + Projectile.NewProjectile(npc.Center.X, npc.Center.Y, vector255.X, vector255.Y, ProjectileID.AncientDoomProjectile, damage, 0f, Main.myPlayer, 0f, 0f); } } } @@ -12279,6 +12372,10 @@ namespace CalamityMod.NPCs if (calamityGlobalNPC.newAI[0] == 1f || death) rotation -= 60f; + int damage = 95; + if (death) + damage += 10; + if (num1207 == 180f && Main.netMode != NetmodeID.MultiplayerClient) { npc.TargetClosest(false); @@ -12290,7 +12387,7 @@ namespace CalamityMod.NPCs num1225 = 1f; vector200 = vector200.RotatedBy((double)(-(double)num1225 * 6.28318548f / 6f), default); - Projectile.NewProjectile(npc.Center.X, npc.Center.Y, vector200.X, vector200.Y, ProjectileID.PhantasmalDeathray, 95, 0f, Main.myPlayer, num1225 * 6.28318548f / rotation, (float)npc.whoAmI); + Projectile.NewProjectile(npc.Center.X, npc.Center.Y, vector200.X, vector200.Y, ProjectileID.PhantasmalDeathray, damage, 0f, Main.myPlayer, num1225 * 6.28318548f / rotation, (float)npc.whoAmI); npc.ai[2] = (vector200.ToRotation() + 9.424778f) * num1225; npc.netUpdate = true; } @@ -12378,12 +12475,16 @@ namespace CalamityMod.NPCs if (num1207 == num1208 - 35f) Main.PlaySound(4, (int)npc.position.X, (int)npc.position.Y, 6, 1f, 0f); + int damage = 40; + if (death) + damage += 4; + if ((num1207 == num1208 - 14f || num1207 == num1208 - 7f || num1207 == num1208) && Main.netMode != NetmodeID.MultiplayerClient) { Vector2 vector203 = Utils.Vector2FromElipse(npc.localAI[0].ToRotationVector2(), value19 * npc.localAI[1]); float velocity = CalamityWorld.bossRushActive ? 9f : 6.75f; Vector2 vector204 = Vector2.Normalize(v4) * velocity; - Projectile.NewProjectile(npc.Center.X + vector203.X, npc.Center.Y + vector203.Y, vector204.X, vector204.Y, ProjectileID.PhantasmalBolt, 40, 0f, Main.myPlayer, 0f, 0f); + Projectile.NewProjectile(npc.Center.X + vector203.X, npc.Center.Y + vector203.Y, vector204.X, vector204.Y, ProjectileID.PhantasmalBolt, damage, 0f, Main.myPlayer, 0f, 0f); } } @@ -12543,7 +12644,11 @@ namespace CalamityMod.NPCs float num1188 = 6.28318548f * (num1178 % (float)(num1186 * num1187)) / (float)(num1186 * num1187) - 1.57079637f; npc.localAI[0] = new Vector2((float)Math.Cos((double)num1188) * vector165.X, (float)Math.Sin((double)num1188) * vector165.Y).ToRotation(); - if (num1178 % (float)num1187 == 0f) + int damage = 40; + if (death) + damage += 4; + + if (num1178 % (float)num1187 == 0f) { Vector2 value11 = new Vector2(1f * -num1177, 3f); Vector2 vector168 = Utils.Vector2FromElipse(npc.localAI[0].ToRotationVector2(), vector165 * npc.localAI[1]); @@ -12551,7 +12656,7 @@ namespace CalamityMod.NPCs float velocity = CalamityWorld.bossRushActive ? 12f : 9f; Vector2 vector170 = Vector2.Normalize(vector168) * velocity; float ai = (6.28318548f * (float)Main.rand.NextDouble() - 3.14159274f) / 30f + 0.0174532924f * num1177; - Projectile.NewProjectile(vector169.X, vector169.Y, vector170.X, vector170.Y, ProjectileID.PhantasmalEye, 40, 0f, Main.myPlayer, 0f, ai); + Projectile.NewProjectile(vector169.X, vector169.Y, vector170.X, vector170.Y, ProjectileID.PhantasmalEye, damage, 0f, Main.myPlayer, 0f, ai); } } else @@ -12594,14 +12699,18 @@ namespace CalamityMod.NPCs num1180 = 1; int num1190 = (int)num1178 - 30; - if (num1190 % 30 == 0 && Main.netMode != NetmodeID.MultiplayerClient) + int damage = 65; + if (death) + damage += 6; + + if (num1190 % 30 == 0 && Main.netMode != NetmodeID.MultiplayerClient) { Vector2 vector173 = new Vector2(5f * num1177, -8f); int num1191 = num1190 / 30; vector173.X += ((float)num1191 - 3.5f) * num1177 * 3f; vector173.Y += ((float)num1191 - 4.5f) * 1f; vector173 *= 1.2f; - Projectile.NewProjectile(npc.Center.X, npc.Center.Y, vector173.X, vector173.Y, ProjectileID.PhantasmalSphere, 65, 1f, Main.myPlayer, 0f, (float)npc.whoAmI); + Projectile.NewProjectile(npc.Center.X, npc.Center.Y, vector173.X, vector173.Y, ProjectileID.PhantasmalSphere, damage, 1f, Main.myPlayer, 0f, (float)npc.whoAmI); } Vector2 vector174 = Vector2.SmoothStep(value12, value12 + value13, (num1178 - 30f) / 180f) - npc.Center; @@ -12696,12 +12805,16 @@ namespace CalamityMod.NPCs if (num1178 == num1179 - 35f) Main.PlaySound(4, (int)npc.position.X, (int)npc.position.Y, 6, 1f, 0f); - if ((num1178 == num1179 - 14f || num1178 == num1179 - 7f || num1178 == num1179) && Main.netMode != NetmodeID.MultiplayerClient) + int damage = 40; + if (death) + damage += 4; + + if ((num1178 == num1179 - 14f || num1178 == num1179 - 7f || num1178 == num1179) && Main.netMode != NetmodeID.MultiplayerClient) { Vector2 vector181 = Utils.Vector2FromElipse(npc.localAI[0].ToRotationVector2(), vector165 * npc.localAI[1]); float velocity = CalamityWorld.bossRushActive ? 9f : 6.75f; Vector2 vector182 = Vector2.Normalize(v) * velocity; - Projectile.NewProjectile(npc.Center.X + vector181.X, npc.Center.Y + vector181.Y, vector182.X, vector182.Y, ProjectileID.PhantasmalBolt, 40, 0f, Main.myPlayer, 0f, 0f); + Projectile.NewProjectile(npc.Center.X + vector181.X, npc.Center.Y + vector181.Y, vector182.X, vector182.Y, ProjectileID.PhantasmalBolt, damage, 0f, Main.myPlayer, 0f, 0f); } } diff --git a/NPCs/Crabulon/CrabulonIdle.cs b/NPCs/Crabulon/CrabulonIdle.cs index 5bee8ece5c..139d55dfd1 100644 --- a/NPCs/Crabulon/CrabulonIdle.cs +++ b/NPCs/Crabulon/CrabulonIdle.cs @@ -143,22 +143,19 @@ namespace CalamityMod.NPCs.Crabulon npc.ai[3] = 0f; } float num353 = 10f; - int num354 = expertMode ? 11 : 14; + int num354 = expertMode ? 12 : 16; int num355 = ModContent.ProjectileType(); Main.PlaySound(2, (int)npc.position.X, (int)npc.position.Y, 42); if (CalamityWorld.bossRushActive) { - num354 += 3; num353 += 3f; } if ((double)npc.life < (double)npc.lifeMax * 0.5 || death) { - num354++; num353 += 1f; } if ((double)npc.life < (double)npc.lifeMax * 0.1 || death) { - num354++; num353 += 1f; } vector34 = new Vector2(npc.position.X + (float)npc.width * 0.5f, npc.position.Y + (float)npc.height * 0.5f); @@ -388,7 +385,7 @@ namespace CalamityMod.NPCs.Crabulon if (Main.netMode != NetmodeID.MultiplayerClient) Projectile.NewProjectile((int)npc.Center.X, (int)npc.Center.Y + 20, 0f, 0f, ModContent.ProjectileType(), 20, 0f, Main.myPlayer, 0f, 0f); - int num354 = expertMode ? 11 : 14; + int num354 = expertMode ? 12 : 16; if (npc.ai[2] % 2f == 0f && (double)npc.life < (double)npc.lifeMax * 0.5 && revenge) { if (Main.netMode != NetmodeID.MultiplayerClient) diff --git a/NPCs/NormalNPCs/KingSlimeJewel.cs b/NPCs/NormalNPCs/KingSlimeJewel.cs index 37a2b2a871..19e61f9f78 100644 --- a/NPCs/NormalNPCs/KingSlimeJewel.cs +++ b/NPCs/NormalNPCs/KingSlimeJewel.cs @@ -113,7 +113,9 @@ namespace CalamityMod.NPCs.NormalNPCs float num509 = CalamityWorld.bossRushActive ? 18f : 9f; int num510 = 11; - int num511 = ProjectileID.RubyBolt; + if (CalamityWorld.death) + num510 += 1; + int num511 = ProjectileID.RubyBolt; num508 = num509 / num508; num506 *= num508; diff --git a/NPCs/Perforator/PerforatorBodyLarge.cs b/NPCs/Perforator/PerforatorBodyLarge.cs index db6de7f303..e4fa230413 100644 --- a/NPCs/Perforator/PerforatorBodyLarge.cs +++ b/NPCs/Perforator/PerforatorBodyLarge.cs @@ -71,14 +71,12 @@ namespace CalamityMod.NPCs.Perforator { float num941 = revenge ? 9f : 8f; Vector2 vector104 = new Vector2(npc.position.X + (float)npc.width * 0.5f, npc.position.Y + (float)(npc.height / 2)); - float num942 = Main.player[npc.target].position.X + (float)Main.player[npc.target].width * 0.5f - vector104.X + (float)Main.rand.Next(-20, 21); - float num943 = Main.player[npc.target].position.Y + (float)Main.player[npc.target].height * 0.5f - vector104.Y + (float)Main.rand.Next(-20, 21); + float num942 = Main.player[npc.target].position.X + (float)Main.player[npc.target].width * 0.5f - vector104.X; + float num943 = Main.player[npc.target].position.Y + (float)Main.player[npc.target].height * 0.5f - vector104.Y; float num944 = (float)Math.Sqrt((double)(num942 * num942 + num943 * num943)); num944 = num941 / num944; num942 *= num944; num943 *= num944; - num942 += (float)Main.rand.Next(-50, 51) * 0.05f; - num943 += (float)Main.rand.Next(-50, 51) * 0.05f; int num945 = expertMode ? 12 : 15; int num946 = ModContent.ProjectileType(); vector104.X += num942 * 5f; diff --git a/NPCs/Perforator/PerforatorBodyMedium.cs b/NPCs/Perforator/PerforatorBodyMedium.cs index 78ba9d013a..22692952ee 100644 --- a/NPCs/Perforator/PerforatorBodyMedium.cs +++ b/NPCs/Perforator/PerforatorBodyMedium.cs @@ -70,14 +70,12 @@ namespace CalamityMod.NPCs.Perforator { float num941 = revenge ? 9f : 8f; Vector2 vector104 = new Vector2(npc.position.X + (float)npc.width * 0.5f, npc.position.Y + (float)(npc.height / 2)); - float num942 = Main.player[npc.target].position.X + (float)Main.player[npc.target].width * 0.5f - vector104.X + (float)Main.rand.Next(-20, 21); - float num943 = Main.player[npc.target].position.Y + (float)Main.player[npc.target].height * 0.5f - vector104.Y + (float)Main.rand.Next(-20, 21); + float num942 = Main.player[npc.target].position.X + (float)Main.player[npc.target].width * 0.5f - vector104.X; + float num943 = Main.player[npc.target].position.Y + (float)Main.player[npc.target].height * 0.5f - vector104.Y; float num944 = (float)Math.Sqrt((double)(num942 * num942 + num943 * num943)); num944 = num941 / num944; num942 *= num944; num943 *= num944; - num942 += (float)Main.rand.Next(-50, 51) * 0.05f; - num943 += (float)Main.rand.Next(-50, 51) * 0.05f; int num945 = expertMode ? 12 : 15; int num946 = ModContent.ProjectileType(); vector104.X += num942 * 5f; diff --git a/NPCs/Perforator/PerforatorBodySmall.cs b/NPCs/Perforator/PerforatorBodySmall.cs index 5474a83174..8388c04689 100644 --- a/NPCs/Perforator/PerforatorBodySmall.cs +++ b/NPCs/Perforator/PerforatorBodySmall.cs @@ -70,14 +70,12 @@ namespace CalamityMod.NPCs.Perforator { float num941 = revenge ? 9f : 8f; Vector2 vector104 = new Vector2(npc.position.X + (float)npc.width * 0.5f, npc.position.Y + (float)(npc.height / 2)); - float num942 = Main.player[npc.target].position.X + (float)Main.player[npc.target].width * 0.5f - vector104.X + (float)Main.rand.Next(-20, 21); - float num943 = Main.player[npc.target].position.Y + (float)Main.player[npc.target].height * 0.5f - vector104.Y + (float)Main.rand.Next(-20, 21); + float num942 = Main.player[npc.target].position.X + (float)Main.player[npc.target].width * 0.5f - vector104.X; + float num943 = Main.player[npc.target].position.Y + (float)Main.player[npc.target].height * 0.5f - vector104.Y; float num944 = (float)Math.Sqrt((double)(num942 * num942 + num943 * num943)); num944 = num941 / num944; num942 *= num944; num943 *= num944; - num942 += (float)Main.rand.Next(-50, 51) * 0.05f; - num943 += (float)Main.rand.Next(-50, 51) * 0.05f; int num945 = expertMode ? 12 : 15; int num946 = ModContent.ProjectileType(); vector104.X += num942 * 5f; From fe438418978f08c8bbea8753f4081c4068b89df6 Mon Sep 17 00:00:00 2001 From: Andrew Marheine Date: Mon, 3 Feb 2020 19:00:18 -0600 Subject: [PATCH 2/2] P90 Acid Round nerf. Changes to lore items, except Moon Lord. Skeletron Death Mode 4 arm change. --- CalPlayer/CalamityPlayer.cs | 43 ++++++++++++------- CalPlayer/CalamityPlayerMiscEffects.cs | 48 ++++++++++------------ Items/LoreItems/KnowledgeCryogen.cs | 2 +- Items/LoreItems/KnowledgeDestroyer.cs | 2 +- Items/LoreItems/KnowledgeEyeofCthulhu.cs | 8 ++-- Items/LoreItems/KnowledgeKingSlime.cs | 2 +- Items/LoreItems/KnowledgeSkeletronPrime.cs | 2 +- Items/LoreItems/KnowledgeTwins.cs | 2 +- NPCs/CalamityGlobalAI.cs | 29 +++++++++---- 9 files changed, 83 insertions(+), 55 deletions(-) diff --git a/CalPlayer/CalamityPlayer.cs b/CalPlayer/CalamityPlayer.cs index 4feb51c0e2..6dc02f7e33 100644 --- a/CalPlayer/CalamityPlayer.cs +++ b/CalPlayer/CalamityPlayer.cs @@ -2967,7 +2967,20 @@ namespace CalamityMod.CalPlayer ((deepDiver && Collision.DrownCollision(player.position, player.width, player.height, player.gravDir)) ? 0.15f : 0f) + (rogueStealthMax > 0f ? (rogueStealth >= rogueStealthMax ? rogueStealth * 0.05f : rogueStealth * 0.025f) : 0f); - if (abyssalDivingSuit && !Collision.DrownCollision(player.position, player.width, player.height, player.gravDir)) + if (destroyerLore) + { + runAccMult *= 0.95f; + } + if (twinsLore) + { + if (player.statLife < (int)(player.statLifeMax2 * 0.5)) + runAccMult *= 0.95f; + } + if (skeletronPrimeLore) + { + runAccMult *= 0.95f; + } + if (abyssalDivingSuit && !Collision.DrownCollision(player.position, player.width, player.height, player.gravDir)) { runAccMult *= 0.4f; runSpeedMult *= 0.4f; @@ -4780,7 +4793,7 @@ namespace CalamityMod.CalPlayer if (auricSet) { if (silvaThrowing && proj.Calamity().rogue && - crit && player.statLife > (int)((double)player.statLifeMax2 * 0.5)) + crit && player.statLife > (int)(player.statLifeMax2 * 0.5)) { damageMult += 0.25; } @@ -4887,7 +4900,7 @@ namespace CalamityMod.CalPlayer damageMult += 0.5; } } - damage = (int)((double)damage * damageMult); + damage = (int)(damage * damageMult); if (oldDie) { @@ -4909,7 +4922,7 @@ namespace CalamityMod.CalPlayer } if (proj.type == ModContent.ProjectileType()) { - int defenseAdd = (int)((double)target.defense * 0.05 * ((double)proj.damage / 50.0) * acidRoundMultiplier); //100 defense * 0.05 = 5 + int defenseAdd = (int)((double)target.defense * 0.05 * ((double)proj.damage / 50D) * acidRoundMultiplier); //100 defense * 0.05 = 5 damage += defenseAdd; } if (uberBees && (proj.type == ProjectileID.GiantBee || proj.type == ProjectileID.Bee || proj.type == ProjectileID.Wasp || proj.type == ModContent.ProjectileType())) @@ -4957,7 +4970,7 @@ namespace CalamityMod.CalPlayer (heldItem.melee || heldItem.ranged || heldItem.magic || heldItem.Calamity().rogue) && heldItem.hammer == 0 && heldItem.pick == 0 && heldItem.axe == 0 && heldItem.useStyle != 0) { - damage = (int)((double)damage * 0.75); + damage = (int)(damage * 0.75); } } } @@ -4966,22 +4979,24 @@ namespace CalamityMod.CalPlayer switch (proj.type) { case ProjectileID.CrystalShard: - damage = (int)((double)damage * 0.6); + damage = (int)(damage * 0.6); break; case ProjectileID.ChlorophyteBullet: - damage = (int)((double)damage * 0.8); + damage = (int)(damage * 0.8); break; case ProjectileID.HallowStar: - damage = (int)((double)damage * 0.7); + damage = (int)(damage * 0.7); break; } if (proj.type == ModContent.ProjectileType()) - damage = (int)((double)damage * 0.8); - } + damage = (int)(damage * 0.8); + else if (proj.type == ModContent.ProjectileType() && heldItem.type == ModContent.ItemType()) + damage = (int)(damage * 0.5); + } if (proj.type == ProjectileID.SpectreWrath && player.ghostHurt) - damage = (int)((double)damage * 0.7); + damage = (int)(damage * 0.7); if (yharonLore) - damage = (int)((double)damage * 0.75); + damage = (int)(damage * 0.75); #endregion if (tarraMage && crit && proj.magic) @@ -5116,7 +5131,7 @@ namespace CalamityMod.CalPlayer value15.Normalize(); value15 *= (float)Main.rand.Next(70, 101) * 0.1f; int fire = Projectile.NewProjectile(target.position.X + (float)(target.width / 2), target.position.Y + (float)(target.height / 2), - value15.X, value15.Y, 15, (int)((double)damage * 0.5), 0f, player.whoAmI, 0f, 0f); + value15.X, value15.Y, 15, (int)(damage * 0.5), 0f, player.whoAmI, 0f, 0f); Main.projectile[fire].magic = false; Main.projectile[fire].netUpdate = true; } @@ -5258,7 +5273,7 @@ namespace CalamityMod.CalPlayer { if (isTrueMelee) { - int stressGain = (int)((double)damage * 0.1); + int stressGain = (int)(damage * 0.1); int stressMaxGain = 10; if (stressGain < 1) { diff --git a/CalPlayer/CalamityPlayerMiscEffects.cs b/CalPlayer/CalamityPlayerMiscEffects.cs index 686e16671f..2a961141ba 100644 --- a/CalPlayer/CalamityPlayerMiscEffects.cs +++ b/CalPlayer/CalamityPlayerMiscEffects.cs @@ -1213,7 +1213,6 @@ namespace CalamityMod.CalPlayer if (modPlayer.destroyerLore) { player.pickSpeed -= 0.05f; - player.moveSpeed -= 0.025f; } if (modPlayer.aquaticScourgeLore) { @@ -1239,7 +1238,6 @@ namespace CalamityMod.CalPlayer if (modPlayer.skeletronPrimeLore) { player.armorPenetration += 5; - player.moveSpeed -= 0.025f; } if (modPlayer.leviathanAndSirenLore) { @@ -2656,7 +2654,7 @@ namespace CalamityMod.CalPlayer if (modPlayer.manaOverloader) { player.magicDamage += 0.06f; - if (player.statMana < (int)((double)player.statManaMax2 * 0.1)) + if (player.statMana < (int)(player.statManaMax2 * 0.1)) player.ghostHeal = true; } @@ -2669,23 +2667,21 @@ namespace CalamityMod.CalPlayer modPlayer.throwingDamage += 0.05f; } - if (player.statLife < (int)((double)player.statLifeMax2 * 0.5)) - player.moveSpeed -= 0.025f; - else + if (player.statLife >= (int)(player.statLifeMax2 * 0.5)) player.statDefense -= 10; } if (modPlayer.rBrain) { - if (player.statLife <= (int)((double)player.statLifeMax2 * 0.75)) + if (player.statLife <= (int)(player.statLifeMax2 * 0.75)) player.allDamage += 0.1f; - if (player.statLife <= (int)((double)player.statLifeMax2 * 0.5)) + if (player.statLife <= (int)(player.statLifeMax2 * 0.5)) player.moveSpeed -= 0.05f; } if (modPlayer.bloodyWormTooth) { - if (player.statLife < (int)((double)player.statLifeMax2 * 0.5)) + if (player.statLife < (int)(player.statLifeMax2 * 0.5)) { player.meleeDamage += 0.1f; player.meleeSpeed += 0.1f; @@ -2710,7 +2706,7 @@ namespace CalamityMod.CalPlayer { player.armorPenetration += 10; player.noKnockback = true; - if (player.statLife > (int)((double)player.statLifeMax2 * 0.25)) + if (player.statLife > (int)(player.statLifeMax2 * 0.25)) { player.hasPaladinShield = true; if (player.whoAmI != Main.myPlayer && player.miscCounter % 10 == 0) @@ -2727,15 +2723,15 @@ namespace CalamityMod.CalPlayer } } - if (player.statLife <= (int)((double)player.statLifeMax2 * 0.5)) + if (player.statLife <= (int)(player.statLifeMax2 * 0.5)) player.AddBuff(62, 5, true); - if (player.statLife <= (int)((double)player.statLifeMax2 * 0.15)) + if (player.statLife <= (int)(player.statLifeMax2 * 0.15)) player.endurance += 0.05f; } else if (modPlayer.fBulwark) { player.noKnockback = true; - if (player.statLife > (int)((double)player.statLifeMax2 * 0.25)) + if (player.statLife > (int)(player.statLifeMax2 * 0.25)) { player.hasPaladinShield = true; if (player.whoAmI != Main.myPlayer && player.miscCounter % 10 == 0) @@ -2752,9 +2748,9 @@ namespace CalamityMod.CalPlayer } } - if (player.statLife <= (int)((double)player.statLifeMax2 * 0.5)) + if (player.statLife <= (int)(player.statLifeMax2 * 0.5)) player.AddBuff(62, 5, true); - if (player.statLife <= (int)((double)player.statLifeMax2 * 0.15)) + if (player.statLife <= (int)(player.statLifeMax2 * 0.15)) player.endurance += 0.05f; } @@ -2765,27 +2761,27 @@ namespace CalamityMod.CalPlayer player.buffImmune[46] = true; player.buffImmune[47] = true; - if (player.statLife > (int)((double)player.statLifeMax2 * 0.75)) + if (player.statLife > (int)(player.statLifeMax2 * 0.75)) player.allDamage += 0.1f; - if (player.statLife < (int)((double)player.statLifeMax2 * 0.25)) + if (player.statLife < (int)(player.statLifeMax2 * 0.25)) player.statDefense += 10; } if (modPlayer.vexation) { - if (player.statLife < (int)((double)player.statLifeMax2 * 0.5)) + if (player.statLife < (int)(player.statLifeMax2 * 0.5)) player.allDamage += 0.2f; } if (modPlayer.ataxiaBlaze) { - if (player.statLife <= (int)((double)player.statLifeMax2 * 0.5)) + if (player.statLife <= (int)(player.statLifeMax2 * 0.5)) player.AddBuff(BuffID.Inferno, 2); } if (modPlayer.bloodflareThrowing) { - if (player.statLife > (int)((double)player.statLifeMax2 * 0.8)) + if (player.statLife > (int)(player.statLifeMax2 * 0.8)) { modPlayer.throwingCrit += 5; player.statDefense += 30; @@ -2796,9 +2792,9 @@ namespace CalamityMod.CalPlayer if (modPlayer.bloodflareSummon) { - if (player.statLife >= (int)((double)player.statLifeMax2 * 0.9)) + if (player.statLife >= (int)(player.statLifeMax2 * 0.9)) player.minionDamage += 0.1f; - else if (player.statLife <= (int)((double)player.statLifeMax2 * 0.5)) + else if (player.statLife <= (int)(player.statLifeMax2 * 0.5)) player.statDefense += 20; if (modPlayer.bloodflareSummonTimer > 0) @@ -2822,7 +2818,7 @@ namespace CalamityMod.CalPlayer player.kbGlove = true; player.meleeDamage += 0.05f; player.lavaMax += 240; - if (player.statLife <= (int)((double)player.statLifeMax2 * 0.5)) + if (player.statLife <= (int)(player.statLifeMax2 * 0.5)) player.allDamage += 0.1f; } @@ -2835,7 +2831,7 @@ namespace CalamityMod.CalPlayer if (modPlayer.deepDiver) { player.allDamage += 0.15f; - player.statDefense += (int)((double)player.statDefense * 0.15); + player.statDefense += (int)(player.statDefense * 0.15); player.moveSpeed += 0.15f; } @@ -2851,12 +2847,12 @@ namespace CalamityMod.CalPlayer if (player.statDefense < 100) player.allDamage += 0.15f; - if (player.statLife <= (int)((double)player.statLifeMax2 * 0.15)) + if (player.statLife <= (int)(player.statLifeMax2 * 0.15)) { player.endurance += 0.1f; player.allDamage += 0.2f; } - else if (player.statLife <= (int)((double)player.statLifeMax2 * 0.5)) + else if (player.statLife <= (int)(player.statLifeMax2 * 0.5)) { player.endurance += 0.05f; player.allDamage += 0.1f; diff --git a/Items/LoreItems/KnowledgeCryogen.cs b/Items/LoreItems/KnowledgeCryogen.cs index a590f251a0..3657563409 100644 --- a/Items/LoreItems/KnowledgeCryogen.cs +++ b/Items/LoreItems/KnowledgeCryogen.cs @@ -11,7 +11,7 @@ namespace CalamityMod.Items.LoreItems DisplayName.SetDefault("Cryogen"); Tooltip.SetDefault("The archmage's prison.\n" + "I am unsure if it has grown weaker over the decades of imprisonment.\n" + - "Place in your inventory to gain a frost dash that freezes enemies, at the cost of slightly reduced defense."); + "Place in your inventory to gain a frost dash that freezes enemies, at the cost of slightly reduced defense due to your brittle body."); } public override void SetDefaults() diff --git a/Items/LoreItems/KnowledgeDestroyer.cs b/Items/LoreItems/KnowledgeDestroyer.cs index 9c5220ff66..b6ada6db02 100644 --- a/Items/LoreItems/KnowledgeDestroyer.cs +++ b/Items/LoreItems/KnowledgeDestroyer.cs @@ -12,7 +12,7 @@ namespace CalamityMod.Items.LoreItems Tooltip.SetDefault("A machine brought to life by the mighty souls of warriors, and built to excavate massive tunnels in planets to gather resources.\n" + "Could have proven useful if Draedon didn't have an obsession with turning everything into a tool of destruction.\n" + "Place in your inventory to gain a boost to your pick speed.\n" + - "However, your movement speed is decreased slightly due to you feeling heavier."); + "However, your max acceleration is decreased slightly due to you feeling heavier."); } public override void SetDefaults() diff --git a/Items/LoreItems/KnowledgeEyeofCthulhu.cs b/Items/LoreItems/KnowledgeEyeofCthulhu.cs index 36d7784c40..52b3701e59 100644 --- a/Items/LoreItems/KnowledgeEyeofCthulhu.cs +++ b/Items/LoreItems/KnowledgeEyeofCthulhu.cs @@ -11,7 +11,7 @@ namespace CalamityMod.Items.LoreItems Tooltip.SetDefault("That eye...how peculiar.\n" + "I sensed it watching you more intensely as you grew stronger.\n" + "Place in your inventory for night vision at night.\n" + - "However, this effect does not trigger while underground."); + "However, your vision is reduced during the day."); } public override void SetDefaults() @@ -29,8 +29,10 @@ namespace CalamityMod.Items.LoreItems public override void UpdateInventory(Player player) { - if (!Main.dayTime && (player.ZoneOverworldHeight || player.ZoneSkyHeight)) - player.nightVision = true; + if (!Main.dayTime) + player.nightVision = true; + else + player.blind = true; } } } diff --git a/Items/LoreItems/KnowledgeKingSlime.cs b/Items/LoreItems/KnowledgeKingSlime.cs index 1396908fe6..09c90c6b64 100644 --- a/Items/LoreItems/KnowledgeKingSlime.cs +++ b/Items/LoreItems/KnowledgeKingSlime.cs @@ -11,7 +11,7 @@ namespace CalamityMod.Items.LoreItems Tooltip.SetDefault("Only a fool could be caught by this pitiful excuse for a hunter.\n" + "Unfortunately, our world has no shortage of those.\n" + "Place in your inventory to gain a slight movement speed and jump boost.\n" + - "However, your defense will be reduced."); + "However, your defense is slightly reduced due to your gelatinous body."); } public override void SetDefaults() diff --git a/Items/LoreItems/KnowledgeSkeletronPrime.cs b/Items/LoreItems/KnowledgeSkeletronPrime.cs index 62c7a379af..c1a135434d 100644 --- a/Items/LoreItems/KnowledgeSkeletronPrime.cs +++ b/Items/LoreItems/KnowledgeSkeletronPrime.cs @@ -12,7 +12,7 @@ namespace CalamityMod.Items.LoreItems Tooltip.SetDefault("What a silly and pointless contraption for something created with the essence of pure terror.\n" + "Draedon obviously took several liberties with its design...I am not impressed.\n" + "Place in your inventory to gain a boost to your armor penetration.\n" + - "However, your movement speed is decreased due to you feeling heavier."); + "However, your max acceleration is decreased due to you feeling heavier."); } public override void SetDefaults() diff --git a/Items/LoreItems/KnowledgeTwins.cs b/Items/LoreItems/KnowledgeTwins.cs index f942dd878b..98c266f75a 100644 --- a/Items/LoreItems/KnowledgeTwins.cs +++ b/Items/LoreItems/KnowledgeTwins.cs @@ -13,7 +13,7 @@ namespace CalamityMod.Items.LoreItems "These creatures did not belong in this world, it's best to be rid of them.\n" + "Place in your inventory to gain invisibility and rogue bonuses at night.\n" + "However, your defense is reduced while above 50% life due to you feeling softer.\n" + - "Your movement speed is reduced while below 50% life due to you feeling heavier."); + "Your max acceleration is reduced while below 50% life due to you feeling heavier."); } public override void SetDefaults() diff --git a/NPCs/CalamityGlobalAI.cs b/NPCs/CalamityGlobalAI.cs index 283aedd183..75ade721ae 100644 --- a/NPCs/CalamityGlobalAI.cs +++ b/NPCs/CalamityGlobalAI.cs @@ -3125,14 +3125,23 @@ namespace CalamityMod.NPCs int num155 = NPC.NewNPC((int)(npc.position.X + (float)(npc.width / 2)), (int)npc.position.Y + npc.height / 2, NPCID.SkeletronHand, npc.whoAmI, 0f, 0f, 0f, 0f, 255); Main.npc[num155].ai[0] = -1f; + + if (death) + Main.npc[num155].Calamity().newAI[0] = -1f; + Main.npc[num155].ai[1] = (float)npc.whoAmI; + Main.npc[num155].ai[3] = (death ? -75f : 0f); Main.npc[num155].target = npc.target; Main.npc[num155].netUpdate = true; num155 = NPC.NewNPC((int)(npc.position.X + (float)(npc.width / 2)), (int)npc.position.Y + npc.height / 2, NPCID.SkeletronHand, npc.whoAmI, 0f, 0f, 0f, 0f, 255); Main.npc[num155].ai[0] = 1f; - Main.npc[num155].ai[1] = (float)npc.whoAmI; - Main.npc[num155].ai[3] = 150f; + + if (death) + Main.npc[num155].Calamity().newAI[0] = -1f; + + Main.npc[num155].ai[1] = (float)npc.whoAmI; + Main.npc[num155].ai[3] = (death ? 75f : 150f); Main.npc[num155].target = npc.target; Main.npc[num155].netUpdate = true; } @@ -3523,7 +3532,13 @@ namespace CalamityMod.NPCs public static bool BuffedSkeletronHandAI(NPC npc, bool enraged, Mod mod) { - npc.spriteDirection = -(int)npc.ai[0]; + CalamityGlobalNPC calamityGlobalNPC = npc.Calamity(); + + float yMultiplier = 1f; + if (calamityGlobalNPC.newAI[0] != 0f) + yMultiplier = calamityGlobalNPC.newAI[0]; + + npc.spriteDirection = -(int)npc.ai[0]; if (!Main.npc[(int)npc.ai[1]].active || Main.npc[(int)npc.ai[1]].aiStyle != 11) { npc.ai[2] += 10f; @@ -3543,7 +3558,7 @@ namespace CalamityMod.NPCs { float maxX = CalamityWorld.bossRushActive ? 6f : 7f; float maxY = CalamityWorld.bossRushActive ? 4.5f : 5f; - if (npc.position.Y > Main.npc[(int)npc.ai[1]].position.Y - 100f) + if (npc.position.Y > Main.npc[(int)npc.ai[1]].position.Y - 100f * yMultiplier) { if (npc.velocity.Y > 0f) npc.velocity.Y *= 0.96f; @@ -3551,7 +3566,7 @@ namespace CalamityMod.NPCs if (npc.velocity.Y > maxY) npc.velocity.Y = maxY; } - else if (npc.position.Y < Main.npc[(int)npc.ai[1]].position.Y - 100f) + else if (npc.position.Y < Main.npc[(int)npc.ai[1]].position.Y - 100f * yMultiplier) { if (npc.velocity.Y < 0f) npc.velocity.Y *= 0.96f; @@ -3591,7 +3606,7 @@ namespace CalamityMod.NPCs float maxX = CalamityWorld.bossRushActive ? 6f : 7f; float maxY = CalamityWorld.bossRushActive ? 2f : 2.5f; - if (npc.position.Y > Main.npc[(int)npc.ai[1]].position.Y + 230f) + if (npc.position.Y > Main.npc[(int)npc.ai[1]].position.Y + 230f * yMultiplier) { if (npc.velocity.Y > 0f) npc.velocity.Y *= 0.92f; @@ -3599,7 +3614,7 @@ namespace CalamityMod.NPCs if (npc.velocity.Y > maxY) npc.velocity.Y = maxY; } - else if (npc.position.Y < Main.npc[(int)npc.ai[1]].position.Y + 230f) + else if (npc.position.Y < Main.npc[(int)npc.ai[1]].position.Y + 230f * yMultiplier) { if (npc.velocity.Y < 0f) npc.velocity.Y *= 0.92f;