Author SHA1 Message Date
Ozzatron 4a85d6ff25 Unique labeling for Archipelago Randomizer 2026-01-13 21:24:17 -05:00
Ozzatron 3366c3677c 2.0.7.2 version bump 2025-11-28 12:24:13 -05:00
Cameron Ewell 1470f3d182 Merge: Flo + Lion + Tomat liquid rendering fixes
This PR enables the unsafe flag which blocks in-game building.
2025-11-28 12:20:36 -05:00
Flowaria 652e22593b Added Base System for Modifying WaterFallAlpha 2025-11-28 10:32:13 +09:00
Flowaria 31d2915039 Cleaning CalamityWaterLoader methods 2025-11-28 10:07:58 +09:00
Flowaria 525155bedc merge flo's 2025-11-27 16:17:38 -06:00
Stephen Thiebaud 457e06c281 Merge branch 'LiquidEditFixes' into tomatliquidfix
# Conflicts:
#	Systems/CalamityModWaterStyle.cs
2025-11-27 16:10:28 -06:00
Lion8cake 66e7303dc3 attempted fixes with vertex colors and slope rendering 2025-11-28 02:32:27 +11:00
Lion8cake c30911b523 Slight touch ups 2025-11-28 01:45:58 +11:00
Lion8cake 71dbc6c6f1 Future proofed some IL edits 2025-11-27 23:59:30 +11:00
Lion8cake 1baa63fdd2 Fixed Lava droplets being super bright for no reason 2025-11-27 22:38:32 +11:00
Lion8cake 62375b4308 Fixed Lavafall Coloring to not be overly bright for 0 reason 2025-11-27 22:22:20 +11:00
Lion8cake cf3930b0c8 Capture and normal rendering fixes
CONTAINS UNSAFE/POINTERS, IF CALAMITY RULES THIS AS A NO-GO, THIS IS WHERE IT WAS INTRODUCED
2025-11-27 21:55:49 +11:00
Lion8cake ce51e8dfc4 Fixed CalamityModWaterStyle crashing the game 2025-11-27 20:21:23 +11:00
Lion8cake 87035e58ae Fixed IL code for stopping lava retro rendering 2025-11-27 19:48:21 +11:00
Flowaria 13abe40eac Fixed Type Casting Exception on CalamityModWaterStyle 2025-11-27 00:37:03 -05:00
Ozzatron 6cf126ce7c 2.0.7.1 version bump 2025-11-26 21:18:47 -05:00
CongratsIsTrash 68b083b840 Fixed VCMM message spam 2025-11-26 17:06:10 -05:00
Altixal 9513ea5d79 Version 2.0.7 2025-11-27 02:38:12 +07:00
Altixal 7e59c44200 double correct 2025-11-27 02:37:26 +07:00
CongratsIsTrash 7a82749230 Correct loot rule 2025-11-26 14:29:39 -05:00
CongratsIsTrash 5d15472cb7 Sweeping changes to crate loot
Including removal of most biome-specific material drops
Includes the Hardmode ore crate bug fix at long last
Also adds alternative Auric Ore obtainment method
2025-11-26 14:16:59 -05:00
CongratsIsTrash 1eff672eaa Merged the three interlude configs 2025-11-26 05:54:35 -05:00
Altixal 12de8fd6be merge gore 2025-11-26 07:54:58 +07:00
Altixal b78a390734 fixed drill containment unit running CanUseItem by frame 2025-11-26 07:54:43 +07:00
Altixal abe6152413 living fire tile drop fix 2025-11-26 07:54:27 +07:00
Altixal ac09e91246 scope fix 2025-11-26 07:47:57 +07:00
Altixal 4bc5a8171b Plagued 'Bed' fixes 2025-11-26 07:45:51 +07:00
Altixal f77d99a414 Lantern Center syncing 2025-11-26 07:45:19 +07:00
Flowaria 6cc141c960 Fixed LiquidDrawColors IL Edit 2025-11-25 09:02:19 +09:00
CongratsIsTrash 8413d077d9 Fixed rippers persisting forever if Revengeance is toggled off while they are active 2025-11-24 18:10:51 -05:00
CongratsIsTrash 3c83fb6fa4 The public shall no longer suffer through Oblivion
Also Skeletron Prime no longer spawns Probes, and fixed him not spinning on the first spin attack
2025-11-23 23:45:22 -05:00
CongratsIsTrash 6146d72cdf GFB Aquatic Scourge poisoning nerf 2025-11-23 10:36:27 -05:00
CongratsIsTrash bd9799620c Fixed Rusty Beacon Prototype not being classified as a sentry 2025-11-23 09:52:50 -05:00
CongratsIsTrash c87e464c76 Fixed Mining armor's set bonus cooldown not working 2025-11-22 23:09:45 -05:00
CongratsIsTrash 00c90ece12 Removed Yharon plushie message localization 2025-11-22 17:00:05 -05:00
CongratsIsTrash a059666398 Added VCMM status message config 2025-11-22 16:24:43 -05:00
CongratsIsTrash 8b93e4977e Split client and server configs 2025-11-22 16:08:16 -05:00
CongratsIsTrash faf3d7caf4 Shredder is also missing ammo saving tooltip 2025-11-22 12:14:59 -05:00
CongratsIsTrash 4cb248c6ae Removed all vanilla item auto-use tweaks 2025-11-22 11:43:31 -05:00
CongratsIsTrash 1d9878d635 Betsy's Curse no longer reduces enemy DR 2025-11-22 11:07:52 -05:00
CongratsIsTrash 557d69fe3d Fixed Draedon's Forge recipe unlock not being triggered when used with Magic Storage 2025-11-22 10:29:16 -05:00
CongratsIsTrash 263135bd59 Fixed some buffs having corners on their buff icon 2025-11-22 10:23:25 -05:00
CongratsIsTrash ee235b4b73 Fixed Fiery Draconid buff still giving life regen 2025-11-22 10:21:34 -05:00
CongratsIsTrash e08e70e1d6 Fixed GSD not properly cleansing debuffs or preventing negative life regen 2025-11-22 10:19:35 -05:00
CongratsIsTrash 5c9ba01271 Fixed Infinity and Svantechnical not stating their chance to not consume ammo in their tooltips 2025-11-22 10:12:13 -05:00
CongratsIsTrash 7c7838aa5f Fixed Infinity and Svantechnical right clicks breaking certain bullets 2025-11-22 10:09:15 -05:00
Altixal 338d5b42d3 cleanup on aisle local variable 2025-11-22 12:59:43 +07:00
Altixal 6494ca4332 Manual fixes to the rewrite 2025-11-22 12:56:28 +07:00
Lion8cake 31d48648ab Liquid Edits Rewrite (#52)
Technically a half reimplementation of the BiomeLava mod.
2025-11-22 12:55:56 +07:00
CongratsIsTrash e0b9447404 Unstrawberried Brimstone Witch 2025-11-22 00:32:49 -05:00
CongratsIsTrash 3645027006 Deerclops screenshake is now affected by our screenshake config 2025-11-22 00:18:55 -05:00
CongratsIsTrash 73bab6264e Fixed Skyline Wings horizontal flight speed being hardcapped 2025-11-22 00:16:17 -05:00
CongratsIsTrash 21085e9590 Added new donor town NPC names 2025-11-22 00:13:43 -05:00
CongratsIsTrash 0549b604f2 Fixed Wulfrum Treasure Pinger lighting 2025-11-22 00:07:56 -05:00
CongratsIsTrash 4c045bbda2 Fixed a boatload of holdouts not having owner checks for multiplayer 2025-11-22 00:01:58 -05:00
CongratsIsTrash af0952f5c9 Fixed Draedon bursting into gores even if not attacked 2025-11-21 23:52:17 -05:00
CongratsIsTrash 3497995c10 Merge branch '1.4.4-release-deshayy-hotfix' of https://github.com/CalamityTeam/CalamityMod into 1.4.4-release-deshayy-hotfix 2025-11-21 23:46:49 -05:00
CongratsIsTrash 077d9c74f1 Fixed Brimflame Frenzy using the wrong sound 2025-11-21 23:46:26 -05:00
CongratsIsTrash 6f955e7c3a Fixed structures not being properly protected from Fargo's Mutant items 2025-11-21 23:45:20 -05:00
CongratsIsTrash 1ccd3d6a9f Fixed Vivid Clarity explosions having wrong damage type 2025-11-21 23:43:41 -05:00
Altixal 884b179d7e manually edited donator list in CalamityLists 2025-11-22 11:42:07 +07:00
CongratsIsTrash 2fb7067af2 Fixed stray pixel in Photosynthesis 2025-11-21 23:41:26 -05:00
Altixal 064215c68e Merge branch '1.4.4-release-deshayy-hotfix' of https://github.com/CalamityTeam/CalamityMod into 1.4.4-release-deshayy-hotfix 2025-11-22 11:40:48 +07:00
CongratsIsTrash 60bc158271 Restored Sans Undertale with different dedication 2025-11-22 11:40:43 +07:00
CongratsIsTrash 9f54c4e321 Fixed Abyssal Warhammer missing pixels 2025-11-21 23:40:15 -05:00
CongratsIsTrash 314368ae17 Removed remaining instances from repo 2025-11-22 11:40:14 +07:00
CongratsIsTrash 934a5f6e21 Fixed typo in text when unable to decrypt a schematic 2025-11-21 23:39:11 -05:00
CongratsIsTrash 5ffa1e3123 Fixed VHex lasting half the intended duration on enemies 2025-11-21 23:35:09 -05:00
CongratsIsTrash 7a0d2bb3ed Removed a period from Plague Reaper armor tooltip 2025-11-21 23:34:16 -05:00
CongratsIsTrash b9ddd9607b Fixed Harvest Staff not having minion targeting 2025-11-21 23:33:37 -05:00
CongratsIsTrash 9050179251 Fixed Gauss Dagger not requiring the schematic to craft 2025-11-21 23:32:18 -05:00
CongratsIsTrash 911f1770c7 Fixed Dragon Rage spawning fireballs every eleven hits instead of ten 2025-11-21 23:31:30 -05:00
CongratsIsTrash eb42b0d07c Fixed Astral Infection giving 5% flight time 2025-11-21 23:30:26 -05:00
CongratsIsTrash 7a88f40069 Fixed jelly auras not triggering with Display Vanilla Cooldowns config disabled 2025-11-21 23:29:24 -05:00
CongratsIsTrash 54a0de8b4f All sentries have "Summons a sentry" tooltip line 2025-11-21 23:23:34 -05:00
CongratsIsTrash 96fdde5282 Vents no longer fire steam while a boss is alive 2025-11-21 23:11:23 -05:00
CongratsIsTrash c715526f07 Striking Moment no longer gets removed if not holding Brand of the Inferno or Sergeant United Shield 2025-11-21 23:09:56 -05:00
CongratsIsTrash 86d6167403 Pharaoh's set returns to pyramids 2025-11-21 23:08:55 -05:00
CongratsIsTrash b8bfef18ce Reverted Gold Chest Meteorite Bar fix 2025-11-21 23:06:15 -05:00
CongratsIsTrash 92bd7c4b3b Updated Thank You for all dev changes 2025-11-21 23:02:05 -05:00
CongratsIsTrash 4e376c42f4 Removed Seared Pan 2025-11-21 22:59:57 -05:00
Ozzatron 99f42f147b Public 2.0.6.2 release, merge of public repo commits 2025-11-01 18:15:01 -04:00
Ozzatron 49a0540563 Version bump to 2.0.6.2. Last patch release for TML 1.4.4. 2025-11-01 17:56:23 -04:00
Flowaria 8f8afa5ad8 Using Straightforward tooltip for SpawnBlockers 2025-11-01 17:46:25 -04:00
Flowaria 6721d44429 SpawnBlocker effect now sync properly 2025-11-01 17:46:25 -04:00
DimHaze d3b11c5c25 Fixed enjoying rage benefits from Gael's greatsword without holding it 2025-11-01 00:31:33 -04:00
DimHaze 61d1ca439c fixed reflect dodges using a wrong incoming damage 2025-11-01 00:31:02 -04:00
DimHaze da19025a1b fixed world ore type-based systems never worked 2025-11-01 00:31:02 -04:00
DimHaze db16ba4bf6 fixed the visuals of Auralis' aurora never worked 2025-11-01 00:31:02 -04:00
DimHaze 95a21d01ed fixed frame 1 was never shown in wings of rebirth's animation 2025-11-01 00:31:02 -04:00
Ozzatron cfc9ddcd28 Version bump to 2.0.6.1 (sadly required) 2025-10-30 19:06:44 -04:00
CongratsIsTrash 11369d5ddd Fixed Difficulty Indicator text going beyond the bounds of the box 2025-10-29 10:04:17 -04:00
CongratsIsTrash 3fc0cb5bf8 Updated donor list
- Reorganized the former donor list
- Removed "Toasty" as per what happened to them
- Fix: "Commander Frostbite" had been spelled with 3 m's
2025-10-27 21:40:12 -04:00
CongratsIsTrash 9f56a9bb7b Fixed stealth bar saying stealth increases crit 2025-10-27 15:25:31 -04:00
CongratsIsTrash dc911ca222 Fixed mistakes I made with donor names 2025-10-27 13:53:16 -04:00
CongratsIsTrash 3daaa41dfd Oops it's Angel Wings 2025-10-27 13:35:58 -04:00
CongratsIsTrash d4e9139620 Apparently "Vorbis" is in the donor list twice 2025-10-27 13:06:42 -04:00
CongratsIsTrash 7b672358f4 Updated donor Town NPC names 2025-10-27 13:04:10 -04:00
CongratsIsTrash f19c45b13e Updated Brimstone Witch donor list 2025-10-27 12:51:06 -04:00
CongratsIsTrash 896991796d Updated Thank You
Welcome Big E
Welcome back Done and Tomat
Angel is now Sunny
Hello-goodbye Mihaii
Farewell enamoured and Hugekraken
2025-10-27 12:34:50 -04:00
CongratsIsTrash c4893f5717 Fixed Chalice causing more things to not proc 2025-10-26 21:27:20 -04:00
CongratsIsTrash 07bd5eea0d Fixed cooldown end sounds being audible through the entire world 2025-10-26 21:23:34 -04:00
CongratsIsTrash d6bd9c6053 Several boss fixes:
- Hive Mind and Perforators only appear on Boss Checklist in worlds of their respective evil
- Fixed Primordial Wyrm not being marked as defeated
- Fixed SCal being able to fire projectiles in the one frame between bros dying and phase transition
2025-10-26 21:20:04 -04:00
CongratsIsTrash 7752d55e5a Fixed Lava Slime config 2025-10-26 21:06:39 -04:00
CongratsIsTrash e2a160834b 1 - Fixed Coin of Deceit tooltip
2 - Fixed Glorious End wall clipping
3 - Fixed the return of Celestial Starboard stunted dash bug
2025-10-26 20:59:45 -04:00
CongratsIsTrash 2161d19801 Fixed Sup Slaughterer bug 2025-10-26 20:37:29 -04:00
CongratsIsTrash 5cb32fddab Fixed Buzzkill firing multiple saws in multiplayer 2025-10-26 20:35:55 -04:00
CongratsIsTrash c74b3a721c Fixed Flight Bar config item icon 2025-10-26 20:33:17 -04:00
CongratsIsTrash 5979138139 Removed the Drunk Princess game tip 2025-10-26 20:32:29 -04:00
Ozzatron 24a11d2c99 remove name change because that's not how that works 2025-10-26 19:08:49 -04:00
Ozzatron 8d27082ff1 version bump, title change for temporary preview build 2025-10-26 19:04:27 -04:00
Ozzatron 0d3eb42855 delete broken & unnecessary IL edit 2025-10-26 19:04:15 -04:00
Ozzatron 760b782620 What a Calamity Hotfix merge (actually this time) 2025-06-01 15:20:16 -04:00
Ozzatron 290358cbd7 What a Calamity Hotfix merge to public release branch 2025-06-01 15:12:25 -04:00
Ozzatron 29e78c5acf Change Cyborg donor name XL-39 Nemesis to Nemesis at donor request 2025-06-01 14:51:22 -04:00
Ozzatron b587969326 1 - Fix Calamitas' donor name recital. (INTERIM)
2 - Add all $10 and higher donor names to a separate list, included in the name recital.
2025-06-01 14:49:55 -04:00
Ozzatron cc99a85545 Add Bandit name Ishmael for donor (interim) 2025-06-01 14:07:00 -04:00
Ozzatron a0eb720838 Port recent NPC Patreon names to hotfix 2025-06-01 13:58:59 -04:00
Altixal a8f7f2173c oh wait its here too 2025-06-01 23:38:31 +07:00
Altixal f51931abe3 miniboss demotions 2025-06-01 23:38:01 +07:00
GinYuH e24ffff4ca remove lillies' dedicated rarity 2025-06-01 00:44:02 -07:00
GinYuH 2c1f8b7e85 sylvestaff sound updates 2025-05-31 21:54:37 -07:00
CongratsIsTrash 0ed53298dc Old Fashioned resprite 2025-06-01 00:16:03 -04:00
CongratsIsTrash 9cda8f5fd2 Thank You dev changes 2025-05-31 18:38:09 -04:00
Ozzatron b0fa931331 Add new Patreon link to GitHub 2025-05-30 21:03:47 -04:00
apotofkoolaid c70ff68e06 Sulphurous Sea Rain theme code for interim
It appears this will make its way in v2.0.5 as well, given it's already in the release candidate. It's newly added music, so this should be added to its changelogs.
2025-05-30 16:03:00 -05:00
CongratsIsTrash 95c7e0d10d Fixed Sylvestaff displaying 0 mana cost in its tooltip 2025-05-30 15:01:56 -04:00
Ozzatron d6e458a8da Version bump to 2.0.5 (Permanently discarding 4th number) 2025-05-30 12:40:45 -04:00
Ozzatron 2a975285d2 Remove old Patreon from README and GitHub funding hook (interim) 2025-05-30 12:25:25 -04:00
CongratsIsTrash 8c388f1139 Fuck me I forgot player Laceration draw effects 2025-05-29 22:13:28 -04:00
CongratsIsTrash 39ee2da83c Changed texture to Sylvestaff 2025-05-29 22:10:12 -04:00
CongratsIsTrash b2234be806 Super Slau uses Galac Sing for consistency with public elemental set 2025-05-29 22:10:12 -04:00
CongratsIsTrash 91eacad29c Sup Sl tol clr 2025-05-29 22:10:12 -04:00
CongratsIsTrash 5bed03090f Rewritten tooltips 2025-05-29 22:10:12 -04:00
CongratsIsTrash b22a4ac55a Superradiant Slaughterer
Plus apparently some Speed Blaster adjustments that also got made on the Buzzkill rework branch?
2025-05-29 22:10:12 -04:00
CongratsIsTrash 6f2c7e4bf5 Buzzkill 2025-05-29 22:10:12 -04:00
CongratsIsTrash 3bd4d03f11 Princess no longer misgenders Bandit 2025-05-29 21:58:30 -04:00
CongratsIsTrash 7ffce47503 Also made it not use mana from spawning holdout 2025-05-28 21:24:04 -04:00
CongratsIsTrash 0e6174ba7a Two Sylvestaff fixes
1 - Fixed the weapon not consuming mana
2 - Fixed being able to spam the weapon to fire rays faster than intended
2025-05-28 21:16:52 -04:00
Lucille Karma 5f256bf463 Sylvestaff (#89)
Replacement for Fabstaff
2025-05-28 20:32:23 -04:00
GinYuH c790146d36 removed stink potion sell for consistency 2025-05-28 15:57:44 -07:00
GinYuH af2a977101 Wings of Rebirth sprites 2025-05-28 16:13:19 -04:00
GinYuH 1452ccfb3e Wings of Rebirth code 2025-05-28 16:13:19 -04:00
Altixal cb741f19bb Removed trace comments 2025-05-28 13:13:10 +07:00
Altixal 02cb78eb60 Merge branch '1.4.4-interim' of https://github.com/CalamityTeam/CalamityMod into 1.4.4-interim 2025-05-28 12:40:22 +07:00
Altixal e066ecd597 OUR mod. 2025-05-28 12:40:18 +07:00
CongratsIsTrash c4d71a5c80 Moved donor chat to Brimstone Witch 2025-05-28 01:38:42 -04:00
Cameron Ewell a6b8250b76 Merge (Interim branch): Cirrus erasure 2025-05-28 01:37:59 -04:00
Cameron Ewell e7674bd7df Supreme Permafrost projectile names 2025-05-28 01:37:27 -04:00
Altixal 9c734770c9 Purge of B00BA5 2025-05-28 12:35:05 +07:00
GinYuH 4ffb55706a remove haze tip 2025-05-27 22:13:22 -07:00
GinYuH 2b7fd1cd9c what + lava chicken
fixed reversions
2025-05-27 21:27:44 -07:00
CongratsIsTrash edc488c794 Fixed Purple Haze buff localization 2025-05-27 17:14:54 -04:00
GinYuH 0c23147feb No thank you! 2025-05-26 21:35:37 -07:00
Ozzatron baf68bcb91 Mirror removals of dedicated items on main branch (Scarlet Devil is preserved) 2025-05-26 21:17:22 -04:00
GinYuH a734752c8e renamed Fabsol's Vodka, princess sells boxes 2025-05-26 18:12:58 -07:00
Ozzatron d9ff93a11a Change TML build metadata author to The Calamity Dev Team 2025-05-26 20:30:59 -04:00
Ozzatron 50b34fef35 Slight update to the Old Fashioned icon by Dia 2025-05-26 20:17:01 -04:00
GinYuH 011b83a696 Milkshake, Shroom, and Candle redistribution 2025-05-26 17:16:57 -07:00
GinYuH 36eac4e986 candle localization fix 2025-05-26 17:01:18 -07:00
GinYuH 026f80d585 ...Ozzathoth. 2025-05-26 16:59:33 -07:00
GinYuH 98af1dd6b6 cirrus dress vestiges 2025-05-26 15:39:20 -07:00
GinYuH 064ecf2e77 Merge branch '1.4.4-interim' into Cirrus-erasure 2025-05-26 15:37:30 -07:00
GinYuH 538b8e6171 alicorn remnants 2025-05-26 15:32:02 -07:00
GinYuH 614d3aac4b Pot of Pain internal rename 2025-05-26 15:13:41 -07:00
GinYuH ed8b3ee389 removed Alicorn mount 2025-05-26 15:09:45 -07:00
Ozzatron b8e9d3dbc4 Replace all alcohol buff icons to not have a unified pink background. All icons by Metarex. 2025-05-26 18:06:27 -04:00
GinYuH 1ecefb06a3 coldheart hold tweaks 2025-05-26 15:02:31 -07:00
CongratsIsTrash 84bd8b5d28 Ampoule + Radiance life regen buff 2025-05-26 18:02:26 -04:00
CongratsIsTrash c7450c5b17 Fix batch #3
1 - Fixed Blazing Core and Flame-Licked Shell's parries lasting indefinitely if unequipped during the parry
2 - Fixed Radiant Ooze line life regen not scaling; includes nerf to Ampoule and Radiance life regen
3 - Fixed Gravistar Sabaton exploits from unequipping and Inner Tube
2025-05-26 18:02:26 -04:00
CongratsIsTrash 50580e3949 Mass fix batch #2
1 - Fixed Aureus Cell not granting buffs when consumed though Quick Mana
2 - Fixed Hadal Stew not giving reduced Potion Sickness when consumed though Quick Heal
3 - Fixed Red Wine's tooltip not displaying the correct heal amount with Baguette
4 - Fixed Red Wine not restoring the correct amount of health when consumed through Quick Heal with Baguette
5 - Fixed White Wine not applying its buff when consumed through Quick Mana
6 - Celestial Onion now gives Master slot, fixing issues with loadouts
7 - Fixed issues with Flight Bar drawing when the player has 0 max flight time
8 - Fixed point-blank distance check being very choppy for projectiles with extra updates
9 - Fixed Resurrection Butterfly minions disappearing when attacking; is bundled with balance changes
10 - Fixed Town NPC sells that require happiness not being sold in Remix
11 - Codebreaker can no longer be placed on Teleporters to fix game crash from breaking Teleporter with Codebreaker on it
12 - Fixed Whispering Maelstrom damage being triggered while in graze radius of graze accessories from Fargo's Souls
2025-05-26 18:02:26 -04:00
CongratsIsTrash cf793b05fc Mass fix batch #1
1 - Fixed Astral Ore oob error
2 - Fixed a grammatical error in Blast Barrel's tooltip
3 - Fixed Blood Boiler stating the wrong chance to consume HP
4 - Fixed brimstone darts having a larger hitbox than intended
4 - Fixed Brimstone Heart artery trails not appearing
5 - Fixed vanilla bug of Gold Chests being able to contain Meteorite Bars
6 - Fixed Jousting Lance damage formula
7 - Fixed Metastasis index oob error
8 - Fixed Obstructed effect not drawing when gravity is flipped
9 - Fixed exploit with Overloaded Blaster damage when piercing
10 - Fixed Statigel armor paladin minion framing
11 - Fixed SCal being able to deal contact damage on the first frame of spawning
12 - Fixed SCal being able to fire brimstone dart spreads during bros spawn animation
13 - Fixed SCal's brimstone flame skulls briefly being able to deal damage after the bullet hell ends
14 - Fixed Ultimus Cleaver being considered true melee
15 - Fixed Wulfrum Screwdriver not being considered true melee
2025-05-26 18:02:26 -04:00
CongratsIsTrash 15e967ee65 Added homing Calamity projectiles to CultistIsResistantTo 2025-05-26 18:02:26 -04:00
sunny-raindrops f9d9f9c186 Removed Cirrus flavor text for drinks 2025-05-26 18:00:27 -04:00
sunny-raindrops 854adbb767 Making all drinks craftable at kegs 2025-05-26 18:00:27 -04:00
GinYuH 6e1c917448 Removed Cirrus Couch and Dress
and TY credit, and Yharim Crystal name
2025-05-26 14:38:57 -07:00
GinYuH 792495e8f6 removed Crystal Heart Vodka 2025-05-26 14:34:02 -07:00
GinYuH 3c1a3f4a5f Supreme Ultramage Permafrost 2025-05-26 14:17:42 -07:00
GinYuH 695b638862 Removed Cirrus
22 files changed
2025-05-26 12:30:15 -07:00
Ozzatron c7c6b5e483 Add csproj file to interim branch 2025-05-26 15:09:38 -04:00
Ozzatron 0fbf36f513 Minor description updates mirrored from dev branch 2025-02-11 15:43:40 -05:00
CongratsIsTrash 972e6deccd Final compile error fixes 2025-02-11 15:43:40 -05:00
mountaindrew10 decce451ea Version bump. 2025-02-11 15:43:40 -05:00
CongratsIsTrash c848023a86 Fixed Amalgam making buff duration flicker when using infinite buff features 2025-02-11 15:43:40 -05:00
CongratsIsTrash 6c32d52106 Final stuff from me: Secret seed things
1 - Celebrationmk10 is now forced to spawn on the Jungle-side Ocean to prevent spawning in the Sulphurous Sea
2 - Moved Calamity final worldgen adjustments to happen before final secret seed adjustments and Dirtiest Block gen (also fixes Forsaken Archive not being painted in secret seeds)
3 - Gravity Normalizer now negates the low gravity of Remix surface
4 - Fixed Aerialite not spawning in Remix
5 - Fixed Cloud Elemental not spawning in Remix
6 - Fixed Armored Digger GFB drops appearing in the bestiary
7 - Fixed Jungle Temple not generating on the surface in Remix
8 - Fixed Mimic and Ice Mimic loot pools in Remix
9 - Fixed Sandstorm's Core broken localization in GFB
2025-02-11 15:43:40 -05:00
CongratsIsTrash 4cac806c32 1 - Fixed Craw Carapace line thorns damage being able to hit invincible enemies
2 - Fixed Altars not dropping items properly in multiplayer
3 - Fixed walls which spawn water desyncing in multiplayer
4 - Fixed Arid Artifact, Cosmolight, Martian Distress Remote, and Torrential Tear not working properly in multiplayer
5 - Fixed Caustic Tear status message and Draedon end monologue appearing multiple times per player in multiplayer
6 - Fixed Bandit refunding not working in multiplayer
7 - Fixed null reference exceptions with particle system in multiplayer
8 - Fixed Plantera Thorn Ball tile collision desyncing in multiplayer
9 - Fixed Spine Trees not dropping in multiplayer
10 - Fixed all Calamity wiring-activated mechanisms not working in multiplayer
2025-02-11 15:43:39 -05:00
CongratsIsTrash 113dcece34 Removed "Markie" Arms Dealer name 2025-02-11 15:43:39 -05:00
CongratsIsTrash a8cbf253c7 1 - Fixed Artemis and Apollo charge telegraphs not appearing
2 - Fixed the yoyo burst damage exploit
3 - Fixed Mining Potion and Hand of Creation tooltips
4 - Fixed Grax's tooltip
5 - Fixed Flame Waker Boots' heat debuff multiplier not applying on projectile hits
2025-02-11 15:43:39 -05:00
CongratsIsTrash 4adf1fd67f A ton of minor tooltip and localization fixes 2025-02-11 15:43:39 -05:00
mountaindrew10 8dcbe75ebc 1 - Removed Yharon plush promotional messages.
2 - Actually killed coco's feather.
2025-02-11 15:43:39 -05:00
mountaindrew10 96ac61473c Rain stoppage. 2025-02-11 15:43:39 -05:00
mountaindrew10 ee80a448ca 1 - Removed Bird/Mr.Small references.
2 - Fixed Old Duke Remix Seed enrage.
3 - Renderer Manager render state edits.
4 - Fixed lava generating in the Sunken Sea and Abyss.
5 - Fixed Brimstone Slag walls generating in incorrect locations.
6 - Mechanic Shed no longer generates in space, hopefully.
2025-02-11 15:43:39 -05:00
Ozzatron 0d37506742 Remnants compatibility for the old Sunken Sea. It will now be centered properly. 2025-02-11 15:43:38 -05:00
mountaindrew10 36bade6cf6 Abyss Layer 4 lag hell fix. 2025-02-11 15:43:38 -05:00
mountaindrew10 9be25fdb8d CalamityNetImportantNPC now uses Attribute. 2025-02-11 15:43:38 -05:00
mountaindrew10 26b06888f9 Pretty sure this is everything, once again. I'll release this in an hour or something. 2025-02-11 15:43:37 -05:00
mountaindrew10 d0d6b3f1be Pretty sure this is everything. 2025-02-11 15:43:37 -05:00
Ozzatron a07ce54783 Minor description updates mirrored from dev branch 2025-02-11 15:39:35 -05:00
Ozzatron 8690aa9883 Merge of 1.4.4-release-patches branch into 1.4.4-release.
At least one, probably three hotfix releases were carried out from this patches branch.
2025-02-11 15:33:54 -05:00
CongratsIsTrash 8debdd7b1a Final compile error fixes 2025-02-11 13:28:49 -05:00
mountaindrew10 1cc67eff0b Version bump. 2025-02-11 03:36:36 -06:00
mountaindrew10 654d96b454 Merge branch '1.4.4-release-patches' of https://github.com/CalamityTeam/CalamityMod into 1.4.4-release-patches 2025-02-11 03:34:21 -06:00
mountaindrew10 f7e7331002 1 - Removed Yharon plush promotional messages.
2 - Actually killed coco's feather.
2025-02-11 03:34:13 -06:00
CongratsIsTrash d04b128303 Fixed Amalgam making buff duration flicker when using infinite buff features 2025-02-10 18:29:57 -05:00
CongratsIsTrash f92ebe7eac Final stuff from me: Secret seed things
1 - Celebrationmk10 is now forced to spawn on the Jungle-side Ocean to prevent spawning in the Sulphurous Sea
2 - Moved Calamity final worldgen adjustments to happen before final secret seed adjustments and Dirtiest Block gen (also fixes Forsaken Archive not being painted in secret seeds)
3 - Gravity Normalizer now negates the low gravity of Remix surface
4 - Fixed Aerialite not spawning in Remix
5 - Fixed Cloud Elemental not spawning in Remix
6 - Fixed Armored Digger GFB drops appearing in the bestiary
7 - Fixed Jungle Temple not generating on the surface in Remix
8 - Fixed Mimic and Ice Mimic loot pools in Remix
9 - Fixed Sandstorm's Core broken localization in GFB
2025-01-31 13:01:05 -05:00
CongratsIsTrash dec402677e 1 - Fixed Craw Carapace line thorns damage being able to hit invincible enemies
2 - Fixed Altars not dropping items properly in multiplayer
3 - Fixed walls which spawn water desyncing in multiplayer
4 - Fixed Arid Artifact, Cosmolight, Martian Distress Remote, and Torrential Tear not working properly in multiplayer
5 - Fixed Caustic Tear status message and Draedon end monologue appearing multiple times per player in multiplayer
6 - Fixed Bandit refunding not working in multiplayer
7 - Fixed null reference exceptions with particle system in multiplayer
8 - Fixed Plantera Thorn Ball tile collision desyncing in multiplayer
9 - Fixed Spine Trees not dropping in multiplayer
10 - Fixed all Calamity wiring-activated mechanisms not working in multiplayer
2025-01-30 20:17:12 -05:00
CongratsIsTrash 970450b6a8 Removed "Markie" Arms Dealer name 2025-01-06 11:21:18 -05:00
CongratsIsTrash 31bfc927a3 1 - Fixed Artemis and Apollo charge telegraphs not appearing
2 - Fixed the yoyo burst damage exploit
3 - Fixed Mining Potion and Hand of Creation tooltips
4 - Fixed Grax's tooltip
5 - Fixed Flame Waker Boots' heat debuff multiplier not applying on projectile hits
2025-01-03 17:31:36 -05:00
CongratsIsTrash 487ed5c04a A ton of minor tooltip and localization fixes 2024-12-27 00:11:58 -05:00
mountaindrew10 d4194dfd8a Rain stoppage. 2024-12-07 17:53:58 -06:00
mountaindrew10 69e399c6b5 1 - Removed Bird/Mr.Small references.
2 - Fixed Old Duke Remix Seed enrage.
3 - Renderer Manager render state edits.
4 - Fixed lava generating in the Sunken Sea and Abyss.
5 - Fixed Brimstone Slag walls generating in incorrect locations.
6 - Mechanic Shed no longer generates in space, hopefully.
2024-12-02 13:11:17 -06:00
Ozzatron b68469ace9 Remnants compatibility for the old Sunken Sea. It will now be centered properly. 2024-11-04 15:57:27 -05:00
mountaindrew10 425dceae9a Abyss Layer 4 lag hell fix. 2024-11-01 00:39:04 -05:00
mountaindrew10 8b13708027 CalamityNetImportantNPC now uses Attribute. 2024-11-01 00:26:28 -05:00
mountaindrew10 90b92f88b0 Pretty sure this is everything, once again. I'll release this in an hour or something. 2024-10-31 23:06:03 -05:00
mountaindrew10 c140748fee Pretty sure this is everything. 2024-10-17 04:09:28 -05:00
CongratsIsTrash adb3e7b176 Fixed Spiteful Candle's tooltip 2024-06-01 20:23:54 -04:00
mountaindrew10 9267575064 Version bump 2024-06-01 20:23:54 -04:00
CongratsIsTrash ebb57d6085 Spiteful Candle buff 2024-06-01 20:23:54 -04:00
Ozzatron 71da0a35ce Reverted Pink Candle buff from 0.6% HP/s to 0.4% HP/s 2024-06-01 20:23:54 -04:00
Ozzatron 882ad61082 1 - Nerfed Yellow Candle from 1.07x to 1.04x but it ignores DR again as intended.
2 - Fixed Yellow Candle being placebo, for real this time.
2024-06-01 20:23:54 -04:00
Ozzatron 9f4d3e276f Yellow Candle now applies to projectiles, no longer restricted to Use Style 1 Broadswords. 2024-06-01 20:23:54 -04:00
Ozzatron 20b3a09285 1 - Reimplementation of Cirrus Candles as permanent buff stations.
2 - All four Candle buffs are now mutually exclusive.
3 - Unlike other buff stations, Cirrus Candles persist through death.
4 - Changed all Cirrus Candles to be Pink rarity (matching Cirrus) and cost 2 platinum, because you only need one of them.
5 - Buffed Blue Candle from 5% to 10% movement speed, wing time, and acceleration.
6 - Buffed Pink Candle from 0.4% HP/s to 0.6% HP/s
7 - Buffed Yellow Candle from 1.05x damage to 1.07x damage. No longer ignores DR, but still ignores defense.
8 - Yellow Candle is no longer a tag debuff and does not apply to enemies in any way.
9 - Purple Candle is mechanically unchanged.
2024-06-01 20:23:54 -04:00
Memes 541e6c4bf4 Removed funky line in summon weapons.
Removed weird item time manipulation line on some summons causing bugs to another mods like Summoner's Association.
2024-06-01 20:23:53 -04:00
Altixal 38103eac4c a little faster actually 2024-06-01 20:23:53 -04:00
Altixal 6ef43dd874 accidentally snuck the dll during mod load oops 2024-06-01 20:23:53 -04:00
Altixal 4825a2af20 respiteblock balancing... as a tool 2024-06-01 20:23:53 -04:00
Altixal 95bcc714a7 612 actually shows up on Respiteblock 2024-06-01 20:23:53 -04:00
serpensta 524af51892 Slab Crabs cannot spawn (#42)
Slab Crab spawn uses `OceanMonster` condition (which makes it impossible to spawn) when it should use `CaveJellyfish` condition like the other Abyssal NPCs.
2024-06-01 20:23:53 -04:00
apotofkoolaid 1ac2092af4 Safer music box locating for Cirrus' shop
This previously caused loading errors for me even though the strong reference to the music mod should've prevented that
2024-06-01 20:23:53 -04:00
mountaindrew10 382b874bac Aquatic Scourge, Brimstone Elemental, and Cal Clone targeting changes. 2024-06-01 20:23:53 -04:00
Xyk 9a5906e74a Fixed leviathan Ambergris knockback 2024-06-01 20:23:53 -04:00
mountaindrew10 e776e6d5d5 Updated Cryogen targeting. 2024-06-01 20:23:53 -04:00
mountaindrew10 8ffc6d9f8a Crab fix and targeting change. 2024-06-01 20:23:53 -04:00
Ozzatron 0a3090ea9e Disabled Gimme Swag Plushie Campaign message. Removed unused Music Mod message. 2024-06-01 20:23:52 -04:00
Ozzatron a585cf5f75 Cirrus now sells the Interlude Music Boxes. 2024-06-01 20:23:52 -04:00
mountaindrew10 fbdf94afc4 Crabulon gets the same treatment. 2024-06-01 20:23:52 -04:00
Ozzatron 778c1d0e99 minor localization fixes to config 2024-06-01 20:23:52 -04:00
NycroV fb87d3a5e1 Finalized music events + configs 2024-06-01 20:23:52 -04:00
apotofkoolaid 3660c57501 Interlude 1 file length trim 2024-06-01 20:23:52 -04:00
NycroV a0fa9c12c6 SCal Acceptance event 2024-06-01 20:23:52 -04:00
NycroV a617c82ee8 Bug fixes and event updates 2024-06-01 20:23:52 -04:00
NycroV f76473253e Music events (untested) 2024-06-01 20:23:52 -04:00
mountaindrew10 edcc4e8826 1 - Astrum Aureus walks for less time if his target is near and stays idle for less time if his target is near or hitting him.
2 - Brimstone Elemental floats around for less time if her target is near or is hitting her and teleports faster in higher difficulties.
3 - Hive Mind fires vile spits while drifting in Expert+ and fires vile spits while spinning before dashing in Master+.
2024-06-01 20:23:52 -04:00
mountaindrew10 ff434d8a80 Gave Queen Slime the same target change as King Slime, just in case. 2024-06-01 20:23:52 -04:00
mochi-angel ac87e01185 Minor localization changes 2024-06-01 20:23:51 -04:00
CongratsIsTrash e04b527c1c Astrum Deus Relic re-resprite 2024-06-01 20:23:51 -04:00
CongratsIsTrash 635166161e Okay no 80% DR is completely excessive for BR EoW 2024-06-01 20:23:51 -04:00
mountaindrew10 dd2da4035e Fixed King Slime target bugs by returning the targeting to what it used to be. 2024-06-01 20:23:51 -04:00
CongratsIsTrash 5db80ab5b6 Fixed BR Desert Scourge spawning extra Desert Nuisances at the start of the fight 2024-06-01 20:23:51 -04:00
mountaindrew10 8bd975a322 Reduced Absorber defense from 15 to 10. 2024-06-01 20:23:51 -04:00
mountaindrew10 8ba75d4665 5 seconds of immunity to immobilizing debuffs after an immobilizing debuff wears off. 2024-06-01 20:23:51 -04:00
mountaindrew10 dffc96deb7 Dark Hearts emit rain when higher up. 2024-06-01 20:23:51 -04:00
Xyk 058c8c5412 Removed Redundant Code 2024-06-01 20:23:51 -04:00
Xyk 485b15d560 Tooltips 2024-06-01 20:23:50 -04:00
Xyk a2f1c481e9 Small touch ups 2024-06-01 20:23:50 -04:00
Xyk 613dae463b Svant 2024-06-01 20:23:50 -04:00
Xyk 8e41cbb392 Shredder And Infinity P1 2024-06-01 20:23:50 -04:00
mountaindrew10 c8cf19fda1 1 - Dank Creeper Kill Yourself Ability.
2 - Hive Mind and minion targeting rework.
3 - Brain Rot infliction from Shade Nimbus and Rain is no longer ridiculous.
4 - Hive Mind and Dank Creepers inflict Brain Rot on hit.
2024-06-01 20:23:50 -04:00
mountaindrew10 efa733d40b Fixed some other strange issues with Hive Mind 2024-06-01 20:23:50 -04:00
CongratsIsTrash 4ce9c6131c Warmth Potion now reduces debuff durations instead of giving full immunity
Also reduced the volume of Greatsword of Judgement's whiterain
2024-06-01 20:23:50 -04:00
Altixal 9c820cd559 Implemented Prismatic Breaker damage class 2024-06-01 20:23:50 -04:00
Altixal 41bb121913 Dragon's Breath swap fix
it does not involve nuh uh uh this time
2024-06-01 20:23:50 -04:00
Altixal 86334227b0 Dark Master bugfixes
- Reloading mods no longer cause errors
- Swapping between items no longer make clones vomit projectiles
- Clones now inherit the player's damage and crit stats
2024-06-01 20:23:50 -04:00
Ozzatron a465241cac Added Demolitionist name Dorira for CrimsonCB (donor) 2024-06-01 20:23:49 -04:00
Cameron Ewell 5a9822a67d Remove ridiculous suggested import in Toxic Heart 2024-06-01 20:23:49 -04:00
Xyk 0348cb6717 Small updates 2024-06-01 20:23:49 -04:00
Xyk d236226156 Alchemical Flask 2024-06-01 20:23:49 -04:00
Xyk d7288484cb Toxic Heart
blood boiler life regen fixes are also here, oops
2024-06-01 20:23:49 -04:00
Altixal 2298a6cde1 cleared 2 warns on loading logs 2024-06-01 20:23:49 -04:00
Storm2103 8109f82dc1 Fixed Broken Water Filter being reset in CalamityPlayer causing it to not work 2024-06-01 20:23:49 -04:00
mountaindrew10 43d0d3f726 More Hive Mind polish 2024-06-01 20:23:49 -04:00
mountaindrew10 bcb0a0636f Ceaseless Void movement adjustments while not in succ phase, should hopefully make it more predictable and fun without being too predictable. 2024-06-01 20:23:49 -04:00
mountaindrew10 da2c458d4d Only Ceaseless Void itself inflicts Distorted now, and only while succing. 2024-06-01 20:23:49 -04:00
mountaindrew10 bea920500d Cryogen Ice Bombs cannot Glacial State stunlock you. 2024-06-01 20:23:49 -04:00
mountaindrew10 5f13039edb Minor Hive Mind edit 2024-06-01 20:23:48 -04:00
CongratsIsTrash c582ca68eb Judgement balancing 2024-06-01 20:23:48 -04:00
CongratsIsTrash 976a82eabc Statis' Blessing no longer inflicts Holy Flames
Buffed summon damage boost to compensate
2024-06-01 20:23:48 -04:00
CongratsIsTrash 6bd84f882a Cultist's ice mists can't freeze you if you're already frozen
Not like it does that much in the long run but I'd rather it exist than not
2024-06-01 20:23:48 -04:00
CongratsIsTrash 301805dbd2 Ice Golems no longer inflict Glacial State 2024-06-01 20:23:48 -04:00
mountaindrew10 a73da31470 More Hive Mind and Blob adjustments and fixes. 2024-06-01 20:23:48 -04:00
mountaindrew10 eee4304e9f Hive Mind Hive Blob teleport with the Hive Mind, Hive Blobs keep up with Hive Mind's movements, Dark Heart limit, alpha caps. 2024-06-01 20:23:48 -04:00
CongratsIsTrash 0439529eb7 Fixed Dark Heart compile error 2024-06-01 20:23:48 -04:00
mochi-angel f3984baf30 Everything but BBB 2024-06-01 20:23:48 -04:00
CongratsIsTrash c9df771d52 Nerfed some stuff that I suspected (and confirmed through testing) got overbuffed 2024-06-01 20:23:48 -04:00
CongratsIsTrash 27bbd5ca51 Fixed Bandit and Cirrus not feeling the shrooms 2024-06-01 20:23:48 -04:00
mochi-angel ea27524cc1 Post-Evil2 Mage, Ranger and Rogue 2024-06-01 20:23:47 -04:00
CongratsIsTrash 86b510620f Actually just one more 2024-06-01 20:23:47 -04:00
CongratsIsTrash 75e07238fb Some more life regen tooltips that I missed 2024-06-01 20:23:47 -04:00
CongratsIsTrash a40772fa18 Respiteblock balance 2024-06-01 20:23:47 -04:00
CongratsIsTrash edc01eb99e The Cauldron balance 2024-06-01 20:23:47 -04:00
mountaindrew10 4837b0d0a9 1 - Hive Mind adjustments (Astrum Aureus, Ceaseless Void, and Brimstone Elemental changes coming soon).
2 - Greatsword of Judgement nerf (this thing is ridiculous due to the obscene projectile and dust spam it causes and hopefully its rework is implemented soon).
2024-06-01 20:23:47 -04:00
mountaindrew10 72d04e1034 Distinct bee spawning noise for Queen Bee. 2024-06-01 20:23:47 -04:00
CongratsIsTrash 78be698597 Planar Ripper visual effects for speed boost 2024-06-01 20:23:47 -04:00
GinYuH 457d821c27 cauldron is now a holdout 2024-06-01 20:23:47 -04:00
Cameron Ewell fa8fceeb33 Fix Respiteblock holdout display name loc 2024-06-01 20:23:47 -04:00
Xyk c7de04c642 sprite fix 2024-06-01 20:23:47 -04:00
Xyk 8bc0596000 Respiteblock 2024-06-01 20:23:46 -04:00
GinYuH 6816532aae sound updates 2024-06-01 20:23:46 -04:00
GinYuH 8bcb001176 Added The Cauldron 2024-06-01 20:23:46 -04:00
Storm2103 0a15c0ec4e NEEDS MORE TESTING: fixed that annoying mp cooldown error spam by moving ascendant insignia (error only triggered once (instead of several), it would be best if it doesnt happen at all) 2024-06-01 20:23:46 -04:00
CongratsIsTrash fa5e1996e8 Small Hallowed Rune tooltip wording change 2024-06-01 20:23:46 -04:00
mountaindrew10 353a51fa2a Decreased Rev+ Queen Bee's acceleration during her regular stinger phase. 2024-06-01 20:23:46 -04:00
CongratsIsTrash be1b3d8d8f Actually was gonna make it reduce to this 2024-06-01 20:23:46 -04:00
CongratsIsTrash 71475b2955 1 - Alch Flask now reduces Plague damage instead of granting full immunity
2 - Reduced several debuff damage reducing effects
2024-06-01 20:23:46 -04:00
mountaindrew10 e7e4f48b23 Fixed King Slime out of bounds errors. 2024-06-01 20:23:46 -04:00
Xyk 5fd6676236 Old Dukes Scales Buff
Recovery time reduced by half a second, stamina recovers faster and instead of requiring you to stand still for the stronger bonus, you can get it if you press no movement keys.
2024-06-01 20:23:46 -04:00
CongratsIsTrash 4c8204bf0c Altar of the Accursed outdated tooltip fix 2024-06-01 20:23:46 -04:00
CongratsIsTrash e1be94d5c4 Added even more missing HP/s life regen tooltips 2024-06-01 20:23:46 -04:00
Altixal 93c59a4d33 flamethrower tweaks
buffed gel efficiency on early ones
(spark spreader stats net buffed accordingly to slower uses)
fixed havocs breath fire not fading properly and use anim stopgap
2024-06-01 20:23:45 -04:00
Altixal c3ba05bc8a Melee reforge fixes
Collateral: Light is no longer a T0 tool reforge
2024-06-01 20:23:45 -04:00
AquaSG ac59d25180 bordernado shader bleeding into other things fixed 2024-06-01 20:23:45 -04:00
CongratsIsTrash bd6447e294 Boss Rush no longer disables wiring 2024-06-01 20:23:45 -04:00
mountaindrew10 8983684bcd Nerfed Mythril Armor set flare damage cap from 50 to 40 and damage mult from 0.4 to 0.3 (untested, but this should help balance it more). 2024-06-01 20:23:45 -04:00
GinYuH 3487f96417 yharon now counts as an organic enemy 2024-06-01 20:23:45 -04:00
CongratsIsTrash a5f1d7f49f Realm Ravager tooltip fix 2024-06-01 20:23:45 -04:00
CongratsIsTrash 468ac6f4a2 Disabled the custom tile merging system again,
because it was repeatedly causing the mod to crash with an out of memory exception
2024-06-01 20:23:45 -04:00
Xyk 700380275d Hailstorm freeze reinstatement 2024-06-01 20:23:44 -04:00
CongratsIsTrash ec42bb9131 1 - Profaned Guardians now enrage at night instead of despawning
2 - Guardians now use their cyan glowmask at night instead of in Remix World, and glowmasks are now rainbow in GFB
3 - Guardians projectiles and shields now draw cyan at night
4 - Fixed Providence always being enraged in Remix world instead of never enraging
2024-06-01 20:23:44 -04:00
Xyk e8578d4cfb fixed sandsteam explosion dealing rogue damage 2024-06-01 20:23:44 -04:00
mountaindrew10 becd581829 Decreased Rev+ Skeletron Hand HP 2024-06-01 20:23:44 -04:00
CongratsIsTrash f39f58cd17 Actually Sulphurous Poisoned duration further nerf 2024-06-01 20:23:44 -04:00
Xyk f076ea22a4 Nerfs for Ambrosial and Radiance 2024-06-01 20:23:44 -04:00
CongratsIsTrash fb6716a873 Weak Petrification now only reduces flight time and disables extra jumps 2024-06-01 20:23:44 -04:00
CongratsIsTrash a682cd1b28 Post-Moon Lord and Provi gun + ammo balance 2024-06-01 20:23:44 -04:00
Xyk f2510baa46 Pauldron re-nerf
Pauldron hit can no longer hit the same enemy once spawned as there's a delay of 22 frames before they can hit again
2024-06-01 20:23:44 -04:00
Xyk 05f8307657 Plague on kill improvement 2024-06-01 20:23:44 -04:00
CongratsIsTrash 5e3de69244 Slagsplitter Pauldron nerf 2024-06-01 20:23:43 -04:00
mountaindrew10 10e031d725 Increased Elemental Lance use time, increased damage (untested). 2024-06-01 20:23:43 -04:00
CongratsIsTrash fc55bb6985 Post-Golem gun + ammo balancing 2024-06-01 20:23:43 -04:00
Altixal 40c1dcf870 some gun offsets 2024-06-01 20:23:43 -04:00
Altixal db84d02f82 quickfire suggestions
also fixed sorting priorities AGAIN urngiudrgnju
2024-06-01 20:23:43 -04:00
Altixal 63a735175b unified guardians boss bar 2024-06-01 20:23:43 -04:00
CongratsIsTrash 41693e0244 Updated Dryad's Tear tooltip 2024-06-01 20:23:43 -04:00
mochi-angel 3b6dd77cd3 Harvest Staff buff 2024-06-01 20:23:43 -04:00
CongratsIsTrash aec4e9fa21 Some post-Plantera gun + ammo balancing
Call me a dryad the way Dryad's Tear balancing makes me cry
2024-06-01 20:23:43 -04:00
Altixal ee2d885888 profaned shard tooltip update 2024-06-01 20:23:43 -04:00
mountaindrew10 5d504724bd Improved Rev+ Skeletron's moving away before charging, it's slower and smoother now. 2024-06-01 20:23:43 -04:00
mountaindrew10 d7c7626409 Adjusted Brain of Cthulhu Creeper aggression scaling to take enrage into account, this makes them far less aggressive while in the underground crimson. 2024-06-01 20:23:43 -04:00
mountaindrew10 2be90960f8 Fixed an Eye of Cthulhu blood shot damage issue. 2024-06-01 20:23:43 -04:00
mountaindrew10 abd97e0b6c Made Bloodletting Servants a bit lighter in terms of their base draw color and their charge telegraph. 2024-06-01 20:23:43 -04:00
mountaindrew10 df301a3682 Cut Blood Nautilus Shot projectile blood trail distance in half. 2024-06-01 20:23:42 -04:00
CongratsIsTrash fdc1eb8fc4 Desert Nuisances can no longer pick up money 2024-06-01 20:23:42 -04:00
CongratsIsTrash 80978973c3 Clock Gatlignum resprite 2024-06-01 20:23:42 -04:00
CongratsIsTrash 9ea16d8a9d Slightly decreased the Craw Carapace buff 2024-06-01 20:23:42 -04:00
CongratsIsTrash f4a7ddb20e Internally renamed King Slime's jewels 2024-06-01 20:23:42 -04:00
mountaindrew10 2f2ce3999d Rev+ Eye of Cthulhu cannot do its horizontal charge unless it is within a 10 block radius of its charge position, it also increases its velocity to move to that position if it's taking too long to reach it. 2024-06-01 20:23:42 -04:00
GinYuH e2754bf5e0 you can now place lab crates on each other
this does NOT make them count as tables for crafting
2024-06-01 20:23:42 -04:00
CongratsIsTrash 48e30df168 Removed Wind Blade rework from main branch
Hi to people who snoop around in the source I guess
2024-06-01 20:23:42 -04:00
mountaindrew10 a0e13da37b Desert Scourge vomit spam fix? 2024-06-01 20:23:42 -04:00
Xyk 2eb0a4e4e3 fixed icicle arrow tile insanity 2024-06-01 20:23:42 -04:00
Xyk 3766786473 Craw Carapace and Baroclaw buffs
Craw Carapace: damage 5% -> 8%, now deals 50 flat damage on top of spikes damage to enemies that hit you

Baroclaw: Now also has 5% dr, now deals 250 flat damage on top of spikes damage to enemies that hit you

Absorber also got the flat damage for consistency's sake but it's not very high since its common knowledge absorber is a top tier accessory already.
2024-06-01 20:23:42 -04:00
mountaindrew10 febd8cc386 Why were these set to die on contact with water given they spawn in water biomes? 2024-06-01 20:23:41 -04:00
CongratsIsTrash da3efa4a69 1 - Several ammo rebalances
2 - Remove Astrum Deus Relic tooltip
2024-06-01 20:23:41 -04:00
CongratsIsTrash 3ffaba5069 Ballistic Poison Bomb 2024-06-01 20:23:41 -04:00
mountaindrew10 4b326c0767 Fixed Deerclops Ice Spikes not dealing damage in Rev. 2024-06-01 20:23:41 -04:00
CongratsIsTrash 45fe6e5aba Per old community suggestion, Guardians no longer enrage outside the Hallow or Underworld 2024-06-01 20:23:41 -04:00
CongratsIsTrash 95e37ca9cf Fixed Hardened Honeycomb spawning twice as many projectiles as intended when hitting enemies 2024-06-01 20:23:41 -04:00
CongratsIsTrash 85c9257585 Sulphurous armor nerf 2024-06-01 20:23:41 -04:00
CongratsIsTrash 4ed05c8a64 Killing localization files with my mind 2024-06-01 20:23:41 -04:00
CongratsIsTrash 2160d2d794 Wind Blade "balance" and tooltip
Trying to balance this thing on a tier with two very true melee-unfriendly bosses is genuine torture, it'd be great if other testers could help me with this
2024-06-01 20:23:41 -04:00
Ozzatron 7aa94c1f2e Fix localization bleed in Wind Blade rework 2024-06-01 20:23:41 -04:00
Xhack 3ec4f4a059 Un-exploded the actual Wind Blade holdout and cyclone 2024-06-01 20:23:40 -04:00
Xhack 0210301424 Un-exploded the PR request 2024-06-01 20:23:39 -04:00
Xhack edce2f7c76 Updated code in accordance with change requests + retooled and re-added Wind Blade cyclone 2024-06-01 20:23:39 -04:00
Xhack 93d2e8d662 Custom use style items and projectiles; Wind Blade swing animations
IMPORTANT NOTE - In order to use a projectile that extends BaseCustomUseStyleProjectile, you have to make the item that shoots it extend CustomUseProjItem.
2024-06-01 20:23:39 -04:00
Ozzatron 678a876e21 REVERT: Frog Legs stack again. Amphibian Boots is still nerfed. 2024-06-01 20:23:39 -04:00
CongratsIsTrash 7c7d49d7d0 Fixed Bloodfire Arrows not removing health if you're on lifesteal cooldown, despite it ignoring lifesteal cooldown now 2024-06-01 20:23:39 -04:00
CongratsIsTrash 3c33a9feb2 Aerialite Dye resprite 2024-06-01 20:23:39 -04:00
CongratsIsTrash 8abca37eb2 Astrum Deus Relic resprite 2024-06-01 20:23:39 -04:00
AquaSG 3161f7961d closest npc to angle utility 2024-06-01 20:23:39 -04:00
mountaindrew10 561d325fce Fixed Brimstone Elemental's Brimstone Ray split shots dealing full Ray damage. 2024-06-01 20:23:38 -04:00
mountaindrew10 c5e9ed7ba8 Nuisance targeting updates. 2024-06-01 20:23:38 -04:00
mountaindrew10 48f05a3177 Desert Scourge targeting update. 2024-06-01 20:23:38 -04:00
mountaindrew10 69839989f7 Adjusted Desert Scourge and Nuisance movements. 2024-06-01 20:23:38 -04:00
mountaindrew10 41e3520bb5 Decreased King Slime Jewel HP values. 2024-06-01 20:23:38 -04:00
mountaindrew10 86aa00d7be Fixed Duke's map icon vanish values in Master Mode. 2024-06-01 20:23:38 -04:00
mountaindrew10 b2bf8b3f97 Master Rev+ King Slime spawns Emerald Jewel at 70%, Ruby Jewel at 50%, and Sapphire Jewel at 30%. 2024-06-01 20:23:38 -04:00
mountaindrew10 59f226739d 1 - Ruby Jewel projectile spread is larger and 1 less projectile is fired in non-Master.
2 - Sapphire Jewel stays above King Slime now and teleports with him.
2024-06-01 20:23:38 -04:00
Ozzatron 5df35a42cb Added new NPC targeting algorithm with numerous customizable options. Not used yet. 2024-06-01 20:23:38 -04:00
Ozzatron 466bd5f38e 1 - Frog Leg and upgrades no longer stack.
2 - Amphibian Boots specifically (not any others) nerfed from +1.6 jump speed to +1.0.
2024-06-01 20:23:38 -04:00
SandKingg 2be0ab55d0 Removed duplicate Harvest Staff tooltip (#41) 2024-06-01 20:23:38 -04:00
Ozzatron 5f97ee4d88 DR calcs support Hellfire in case they need to for some reason 2024-06-01 20:23:38 -04:00
CongratsIsTrash e0e633ba0f Chaos State cooldown end sound V2 2024-06-01 20:23:37 -04:00
mountaindrew10 0513e4aa24 Fixed non-Rev WoF eyes not firing lasers. 2024-06-01 20:23:37 -04:00
Altixal 7e31549238 bestiary debuff type icon resprites 2024-06-01 20:23:37 -04:00
CongratsIsTrash a2d091ae5e New Chaos State cooldown end sound 2024-06-01 20:23:37 -04:00
mountaindrew10 0035b2d304 I hate how things despawn in this game so much 2024-06-01 20:23:37 -04:00
CongratsIsTrash 5ebed72ac8 ENNWAY development absorption 2024-06-01 20:23:37 -04:00
CongratsIsTrash 48aa53353d Reverted Basher tooltip change 2024-06-01 20:23:37 -04:00
Altixal 7a67efd112 basher tooltip update 2024-06-01 20:23:37 -04:00
CongratsIsTrash d3e4542b19 Thank You shenanigans 2024-06-01 20:23:37 -04:00
Memes b5ef022814 Condemnation as a base holdout. 2024-06-01 20:23:37 -04:00
Memes 378606060c Adamantite Particle Accelerator as a base holdout. 2024-06-01 20:23:37 -04:00
mountaindrew10 362b2c5b34 Fixed Slime God Core despawn issue. 2024-06-01 20:23:37 -04:00
mountaindrew10 616c9d3306 Updated many vanilla boss player targeting behaviors (some target one player aggressively, others will swap targets, etc.). 2024-06-01 20:23:36 -04:00
GinYuH 27c55e3a16 ash wood sword counts as a wooden sword 2024-06-01 20:23:36 -04:00
tomat eaa002c438 Mergreable tile system now works with vanilla tiles. 2024-06-01 20:23:36 -04:00
Xyk 5719618bf4 electrified intensity change 2024-06-01 20:23:36 -04:00
CongratsIsTrash 32b1b21311 Increased Ink Bomb drop rates
Cuttlefish: 5% / 10% -> 10% / 20%
Colossal Squid: 20% -> 33%
2024-06-01 20:23:36 -04:00
mountaindrew10 297037eaf2 Reduced the defense provided by various accessories due to it being way too much in total (it was possible to take 1 damage from many Master Death Mode attacks, which isn't okay and means that on lower difficulties this issue is even more pronounced), especially given that these items also provide a lot of utility outside of raw defense. 2024-06-01 20:23:36 -04:00
Memes 7581a6f79e Entirely fixed MP Harvest Staff, thanks Direwolf. 2024-06-01 20:23:36 -04:00
Altixal dc74fbbeca opal 2024-06-01 20:23:36 -04:00
Altixal d1d2ca12ad so true memes (magna cannon 0 damage) 2024-06-01 20:23:36 -04:00
mountaindrew10 48ffe33eaf Reduced Purple Candle defense effectiveness increase from 15% to 10% and Blue Candle movement speed and wing time increase from 10% to 5%. 2024-06-01 20:23:36 -04:00
Ozzatron 700504bb8d Merge of 2.0.4.002 into public 1.4.4-release branch 2024-05-17 20:41:30 -04:00
Ozzatron 2916890346 Merge for 2.0.4.001 public GitHub release 2024-05-10 13:13:47 -04:00
1025 changed files with 12287 additions and 10111 deletions

No files matched your search

+1 -1
View File
@@ -1 +1 @@
patreon: Fabsol
patreon: CalamityMod
-1
View File
@@ -3,7 +3,6 @@ cronpull.sh
## Ignore Visual Studio temporary files, build results, and
## files generated by popular Visual Studio add-ons.
*.csproj
*.sln
# User-specific files
+2 -5
View File
@@ -216,8 +216,8 @@ namespace CalamityMod.Balancing
// 20% vulnerability to The Hive's bees.
NPCSpecificBalancingChanges.Add(new NPCBalancingChange(NPCID.DukeFishron, Do(new ProjectileResistBalancingRule(1.2f, ProjectileType<BasicPlagueBee>()))));
// 35% vulnerability to Resurrection Butterfly.
NPCSpecificBalancingChanges.Add(new NPCBalancingChange(NPCID.DukeFishron, Do(new ProjectileResistBalancingRule(1.35f, ProjectileType<SakuraBullet>(), ProjectileType<PurpleButterfly>()))));
// 25% vulnerability to Resurrection Butterfly.
NPCSpecificBalancingChanges.Add(new NPCBalancingChange(NPCID.DukeFishron, Do(new ProjectileResistBalancingRule(1.25f, ProjectileType<SakuraBullet>(), ProjectileType<PurpleButterfly>()))));
#endregion
#region Empress of Light
@@ -240,9 +240,6 @@ namespace CalamityMod.Balancing
// 20% resist to Nightglow.
NPCSpecificBalancingChanges.Add(new NPCBalancingChange(NPCID.CultistBoss, Do(new ProjectileResistBalancingRule(0.8f, ProjectileID.FairyQueenMagicItemShot))));
// 20% resist to Resurrection Butterfly.
NPCSpecificBalancingChanges.Add(new NPCBalancingChange(NPCID.CultistBoss, Do(new ProjectileResistBalancingRule(0.8f, ProjectileType<SakuraBullet>(), ProjectileType<PurpleButterfly>()))));
#endregion
#region Astrum Deus
+13 -3
View File
@@ -30,6 +30,7 @@ namespace CalamityMod.BiomeManagers
if (!CalamityPlayer.areThereAnyDamnBosses)
{
bool acidRain = AcidRainEvent.AcidRainEventIsOngoing;
bool normalRain = Main.cloudAlpha > 0f;
// Acid Rain themes
if (acidRain)
@@ -41,9 +42,18 @@ namespace CalamityMod.BiomeManagers
// Regular Sulphur Sea themes, when Acid Rain is not occurring
else
music = !Main.dayTime
? CalamityMod.Instance.GetMusicFromMusicMod("SulphurousSeaNight") ?? MusicID.Desert // Nighttime
: CalamityMod.Instance.GetMusicFromMusicMod("SulphurousSeaDay") ?? MusicID.Desert; // Daytime
{
if (normalRain)
{
music = CalamityMod.Instance.GetMusicFromMusicMod("SulphurousSeaRain") ?? MusicID.Desert; // Normal Rain
}
else
{
music = !Main.dayTime
? CalamityMod.Instance.GetMusicFromMusicMod("SulphurousSeaNight") ?? MusicID.Desert // Nighttime
: CalamityMod.Instance.GetMusicFromMusicMod("SulphurousSeaDay") ?? MusicID.Desert; // Daytime
}
}
}
return music;
Binary file not shown.

Before

Width:  |  Height:  |  Size: 446 B

After

Width:  |  Height:  |  Size: 367 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 674 B

After

Width:  |  Height:  |  Size: 653 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 652 B

After

Width:  |  Height:  |  Size: 663 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 674 B

After

Width:  |  Height:  |  Size: 681 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 694 B

After

Width:  |  Height:  |  Size: 712 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 720 B

After

Width:  |  Height:  |  Size: 706 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 680 B

After

Width:  |  Height:  |  Size: 700 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 661 B

After

Width:  |  Height:  |  Size: 689 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 698 B

After

Width:  |  Height:  |  Size: 705 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 702 B

After

Width:  |  Height:  |  Size: 726 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 812 B

After

Width:  |  Height:  |  Size: 792 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 691 B

After

Width:  |  Height:  |  Size: 660 B

@@ -4,7 +4,7 @@ using Terraria.ModLoader;
namespace CalamityMod.Buffs.Alcohol
{
public class FabsolVodkaBuff : ModBuff
public class PurpleHazeBuff : ModBuff
{
public override void SetStaticDefaults()
{
@@ -16,7 +16,7 @@ namespace CalamityMod.Buffs.Alcohol
public override void Update(Player player, ref int buffIndex)
{
player.Calamity().fabsolVodka = true;
player.Calamity().purpleHaze = true;
}
}
}
File renamed without changes.

Before

Width:  |  Height:  |  Size: 500 B

After

Width:  |  Height:  |  Size: 500 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 664 B

After

Width:  |  Height:  |  Size: 696 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 739 B

After

Width:  |  Height:  |  Size: 747 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 687 B

After

Width:  |  Height:  |  Size: 679 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 708 B

After

Width:  |  Height:  |  Size: 758 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 686 B

After

Width:  |  Height:  |  Size: 685 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 741 B

After

Width:  |  Height:  |  Size: 741 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 674 B

After

Width:  |  Height:  |  Size: 685 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 720 B

After

Width:  |  Height:  |  Size: 740 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 667 B

After

Width:  |  Height:  |  Size: 677 B

+74
View File
@@ -0,0 +1,74 @@
using CalamityMod.Particles;
using Microsoft.Xna.Framework;
using System;
using Terraria;
using Terraria.DataStructures;
using Terraria.ID;
using Terraria.ModLoader;
namespace CalamityMod.Buffs.DamageOverTime
{
public class HeavyBleeding : ModBuff
{
public override void SetStaticDefaults()
{
Main.debuff[Type] = true;
Main.pvpBuff[Type] = true;
Main.buffNoSave[Type] = true;
BuffID.Sets.LongerExpertDebuff[Type] = true;
}
public override void Update(Player player, ref int buffIndex)
{
player.Calamity().heavybleeding = true;
}
public override void Update(NPC npc, ref int buffIndex)
{
if (npc.Calamity().heavybleeding < npc.buffTime[buffIndex])
npc.Calamity().heavybleeding = npc.buffTime[buffIndex];
npc.DelBuff(buffIndex);
buffIndex--;
}
internal static void DrawEffects(PlayerDrawSet drawInfo)
{
Player player = drawInfo.drawPlayer;
var modPlayer = player.Calamity();
if (Main.rand.NextBool(3))
{
Vector2 randVel = new Vector2(5, 5).RotatedByRandom(100) * Main.rand.NextFloat(0.3f, 1f);
Dust dust = Dust.NewDustPerfect(modPlayer.RandomDebuffVisualSpot, 5, randVel * Main.rand.NextFloat(0.1f, 0.8f), 100, default, Main.rand.NextFloat(0.6f, 0.9f));
dust.noGravity = false;
Particle spark = new AltSparkParticle(modPlayer.RandomDebuffVisualSpot, randVel + new Vector2(0, -4), true, 12, Main.rand.NextFloat(0.25f, 0.6f), Color.DarkRed * 0.5f);
GeneralParticleHandler.SpawnParticle(spark);
}
if (Main.rand.NextBool(8))
{
Particle spark = new GlowOrbParticle(modPlayer.RandomDebuffVisualSpot, new Vector2(0, 4) * Main.rand.NextFloat(0.5f, 0.7f), true, 16, Main.rand.NextFloat(0.55f, 0.8f), Color.DarkRed * 0.8f, false, false, false);
GeneralParticleHandler.SpawnParticle(spark);
}
}
internal static void DrawEffects(NPC npc, ref Color drawColor)
{
Vector2 npcSize = npc.Center + new Vector2(Main.rand.NextFloat(-npc.width / 2, npc.width / 2), Main.rand.NextFloat(-npc.height / 2, npc.height / 2));
Vector2 randVel = new Vector2(5, 5).RotatedByRandom(100) * Main.rand.NextFloat(0.3f, 1f);
if (Main.rand.NextBool(5))
{
Particle spark = new AltSparkParticle(npcSize, randVel + new Vector2(0, -4), true, 12, Main.rand.NextFloat(0.25f, 0.6f), Color.DarkRed * 0.5f);
GeneralParticleHandler.SpawnParticle(spark);
}
else
{
Dust dust = Dust.NewDustPerfect(npcSize, 5, randVel * Main.rand.NextFloat(0.1f, 0.8f), 100, default, Main.rand.NextFloat(0.2f, 0.6f));
dust.noGravity = false;
}
if (Main.rand.NextBool(8))
{
Particle spark = new GlowOrbParticle(npcSize, new Vector2(0, 4) * Main.rand.NextFloat(0.5f, 0.7f), true, 16, Main.rand.NextFloat(0.55f, 0.8f), Color.DarkRed * 0.8f, false, false, false);
GeneralParticleHandler.SpawnParticle(spark);
}
}
}
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 638 B

+74
View File
@@ -0,0 +1,74 @@
using CalamityMod.Particles;
using Microsoft.Xna.Framework;
using System;
using Terraria;
using Terraria.DataStructures;
using Terraria.ID;
using Terraria.ModLoader;
namespace CalamityMod.Buffs.DamageOverTime
{
public class Laceration : ModBuff
{
public override void SetStaticDefaults()
{
Main.debuff[Type] = true;
Main.pvpBuff[Type] = true;
Main.buffNoSave[Type] = true;
BuffID.Sets.LongerExpertDebuff[Type] = true;
}
public override void Update(Player player, ref int buffIndex)
{
player.Calamity().laceration = true;
}
public override void Update(NPC npc, ref int buffIndex)
{
if (npc.Calamity().laceration < npc.buffTime[buffIndex])
npc.Calamity().laceration = npc.buffTime[buffIndex];
npc.DelBuff(buffIndex);
buffIndex--;
}
internal static void DrawEffects(PlayerDrawSet drawInfo)
{
Player player = drawInfo.drawPlayer;
var modPlayer = player.Calamity();
if (Main.rand.NextBool())
{
Vector2 randVel = new Vector2(6, 6).RotatedByRandom(100) * Main.rand.NextFloat(0.3f, 1f);
Dust dust = Dust.NewDustPerfect(modPlayer.RandomDebuffVisualSpot, 5, randVel * Main.rand.NextFloat(0.1f, 0.8f), 100, default, Main.rand.NextFloat(0.6f, 0.9f));
dust.noGravity = false;
Particle spark = new AltSparkParticle(modPlayer.RandomDebuffVisualSpot, randVel + new Vector2(0, -4), true, 12, Main.rand.NextFloat(0.25f, 0.6f), Color.DarkRed * 0.5f);
GeneralParticleHandler.SpawnParticle(spark);
}
if (Main.rand.NextBool(8))
{
Particle spark = new GlowOrbParticle(modPlayer.RandomDebuffVisualSpot, new Vector2(0, 4) * Main.rand.NextFloat(0.5f, 0.7f), true, 16, Main.rand.NextFloat(0.55f, 0.8f), Color.DarkRed * 0.8f, false, false, false);
GeneralParticleHandler.SpawnParticle(spark);
}
}
internal static void DrawEffects(NPC npc, ref Color drawColor)
{
Vector2 npcSize = npc.Center + new Vector2(Main.rand.NextFloat(-npc.width / 2, npc.width / 2), Main.rand.NextFloat(-npc.height / 2, npc.height / 2));
Vector2 randVel = new Vector2(6, 6).RotatedByRandom(100) * Main.rand.NextFloat(0.3f, 1f);
if (Main.rand.NextBool(3))
{
Particle spark = new AltSparkParticle(npcSize, randVel + new Vector2(0, -4), true, 12, Main.rand.NextFloat(0.25f, 0.6f), Color.DarkRed * 0.5f);
GeneralParticleHandler.SpawnParticle(spark);
}
else
{
Dust dust = Dust.NewDustPerfect(npcSize, 5, randVel * Main.rand.NextFloat(0.1f, 0.8f), 100, default, Main.rand.NextFloat(0.2f, 0.6f));
dust.noGravity = false;
}
if (Main.rand.NextBool(8))
{
Particle spark = new GlowOrbParticle(npcSize, new Vector2(0, 4) * Main.rand.NextFloat(0.5f, 0.7f), true, 16, Main.rand.NextFloat(0.55f, 0.8f), Color.DarkRed * 0.8f, false, false, false);
GeneralParticleHandler.SpawnParticle(spark);
}
}
}
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 702 B

-21
View File
@@ -1,21 +0,0 @@
using CalamityMod.Items.Mounts;
using Terraria;
using Terraria.ModLoader;
namespace CalamityMod.Buffs.Mounts
{
public class AlicornBuff : ModBuff
{
public override void SetStaticDefaults()
{
Main.buffNoTimeDisplay[Type] = true;
Main.buffNoSave[Type] = true;
}
public override void Update(Player player, ref int buffIndex)
{
player.mount.SetMount(ModContent.MountType<AlicornMount>(), player);
player.buffTime[buffIndex] = 10;
player.Calamity().fab = true;
}
}
}
Binary file not shown.

Before

Width:  |  Height:  |  Size: 698 B

+1 -1
View File
@@ -14,7 +14,7 @@ namespace CalamityMod.Buffs.Mounts
public override void Update(Player player, ref int buffIndex)
{
player.mount.SetMount(ModContent.MountType<PhuppersChair>(), player);
player.mount.SetMount(ModContent.MountType<BrimroseChair>(), player);
player.buffTime[buffIndex] = 10;
}
}
@@ -4,7 +4,7 @@ using Terraria.ModLoader;
namespace CalamityMod.Buffs.Placeables
{
public class CirrusBlueCandleBuff : ModBuff
public class BlueCandleBuff : ModBuff
{
public static float MoveSpeedBoost = 0.1f;
public static double WingTimeBoost = 0.1D;
File renamed without changes.

Before

Width:  |  Height:  |  Size: 575 B

After

Width:  |  Height:  |  Size: 575 B

@@ -4,7 +4,7 @@ using Terraria.ModLoader;
namespace CalamityMod.Buffs.Placeables
{
public class CirrusPinkCandleBuff : ModBuff
public class PinkCandleBuff : ModBuff
{
public static double PercentHealthPerSecond = 0.004D;
File renamed without changes.

Before

Width:  |  Height:  |  Size: 562 B

After

Width:  |  Height:  |  Size: 562 B

@@ -4,7 +4,7 @@ using Terraria.ModLoader;
namespace CalamityMod.Buffs.Placeables
{
public class CirrusPurpleCandleBuff : ModBuff
public class PurpleCandleBuff : ModBuff
{
public static float DefenseRatioBonus = 0.1f;
File renamed without changes.

Before

Width:  |  Height:  |  Size: 535 B

After

Width:  |  Height:  |  Size: 535 B

@@ -5,7 +5,7 @@ using static Terraria.NPC;
namespace CalamityMod.Buffs.Placeables
{
public class CirrusYellowCandleBuff : ModBuff
public class YellowCandleBuff : ModBuff
{
public static float ExtraChipDamageRatio = 0.07f;
File renamed without changes.

Before

Width:  |  Height:  |  Size: 587 B

After

Width:  |  Height:  |  Size: 587 B

+1 -1
View File
@@ -15,7 +15,7 @@ namespace CalamityMod.Buffs.Potions
public override void Update(Player player, ref int buffIndex)
{
player.Calamity().shadow = true;
if (player.yoraiz0rEye < 2 && CalamityConfig.Instance.StealthInvisibility)
if (player.yoraiz0rEye < 2 && CalamityClientConfig.Instance.StealthInvisibility)
player.yoraiz0rEye = 2;
}
}
+1 -1
View File
@@ -24,7 +24,7 @@ namespace CalamityMod.Buffs.StatBuffs
public override void ModifyBuffText(ref string buffName, ref string tip, ref int rare)
{
if (CalamityConfig.Instance.BossZen)
if (CalamityServerConfig.Instance.BossZen)
tip = tip.Replace(":", ":\n" + this.GetLocalizedValue("ZenDescription"));
}
}
-26
View File
@@ -1,26 +0,0 @@
using CalamityMod.Items.Weapons.Typeless;
using Terraria;
using Terraria.Audio;
using Terraria.ModLoader;
namespace CalamityMod.Buffs.StatBuffs
{
public class KamiBuff : ModBuff
{
public const float RunSpeedBoost = 0.15f;
public const float RunAccelerationBoost = 0.15f;
public override void SetStaticDefaults()
{
Main.debuff[Type] = false;
Main.pvpBuff[Type] = true;
Main.buffNoSave[Type] = true;
}
public override void Update(Player player, ref int buffIndex)
{
player.Calamity().kamiBoost = true;
if (player.buffTime[buffIndex] == 1)
SoundEngine.PlaySound(YanmeisKnife.ExpireSound, player.Center);
}
}
}
Binary file not shown.

Before

Width:  |  Height:  |  Size: 423 B

-30
View File
@@ -1,30 +0,0 @@
using CalamityMod.NPCs;
using Terraria;
using Terraria.ModLoader;
namespace CalamityMod.Buffs.StatDebuffs
{
public class KamiFlu : ModBuff
{
public const float MultiplicativeDamageReduction = 0.8f;
// Hard-cap for npc speed when afflicted with this debuff. Does not affect certain NPCs and does not affect any bosses (Basically only works on boss minions).
public const float MaxNPCSpeed = 16f;
public override void SetStaticDefaults()
{
Main.debuff[Type] = true;
Main.pvpBuff[Type] = true;
Main.buffNoSave[Type] = false;
}
public override void Update(NPC npc, ref int buffIndex)
{
if (npc.Calamity().kamiFlu < npc.buffTime[buffIndex])
npc.Calamity().kamiFlu = npc.buffTime[buffIndex];
if ((CalamityLists.enemyImmunityList.Contains(npc.type) || npc.boss) && npc.Calamity().debuffResistanceTimer <= 0)
npc.Calamity().debuffResistanceTimer = CalamityGlobalNPC.slowingDebuffResistanceMin + npc.Calamity().kamiFlu;
npc.DelBuff(buffIndex);
buffIndex--;
}
}
}
Binary file not shown.

Before

Width:  |  Height:  |  Size: 514 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 645 B

After

Width:  |  Height:  |  Size: 409 B

+98 -108
View File
@@ -31,6 +31,7 @@ using CalamityMod.Items.TreasureBags.MiscGrabBags;
using CalamityMod.Items.VanillaArmorChanges;
using CalamityMod.Items.Weapons.DraedonsArsenal;
using CalamityMod.Items.Weapons.Melee;
using CalamityMod.Items.Weapons.Ranged;
using CalamityMod.Items.Weapons.Rogue;
using CalamityMod.Items.Weapons.Summon;
using CalamityMod.NPCs;
@@ -44,17 +45,20 @@ using CalamityMod.Projectiles.Ranged;
using CalamityMod.Projectiles.Rogue;
using CalamityMod.Projectiles.Summon;
using CalamityMod.Projectiles.Typeless;
using CalamityMod.Systems;
using CalamityMod.Waters;
using CalamityMod.World;
using Microsoft.Xna.Framework;
using Terraria;
using Terraria.Audio;
using Terraria.DataStructures;
using Terraria.GameContent;
using Terraria.GameContent.Liquid;
using Terraria.GameInput;
using Terraria.Graphics.Shaders;
using Terraria.ID;
using Terraria.ModLoader;
using Terraria.ModLoader.IO;
using Terraria.Utilities.Terraria.Utilities;
namespace CalamityMod.CalPlayer
{
@@ -87,10 +91,7 @@ namespace CalamityMod.CalPlayer
public bool brimlashBusterBoost = false;
public int evilSmasherBoost = 0;
public int hellbornBoost = 0;
public int searedPanCounter = 0;
public int searedPanTimer = 0;
public int potionTimer = 0;
public bool cirrusDress = false;
public bool blockAllDashes = false;
public bool resetHeightandWidth = false;
public bool noLifeRegen = false;
@@ -170,7 +171,6 @@ namespace CalamityMod.CalPlayer
public bool newPrincessInventory = false;
public bool newSkeletonMerchantInventory = false;
public bool newPermafrostInventory = false;
public bool newCirrusInventory = false;
public bool newAmidiasInventory = false;
public bool newBanditInventory = false;
public bool newCalamitasInventory = false;
@@ -286,7 +286,7 @@ namespace CalamityMod.CalPlayer
public bool stealthStrikeThisFrame = false;
public bool stealthStrikeHalfCost = false;
public bool stealthStrike75Cost = false;
public bool stealthStrike85Cost = false;
public bool stealthStrike90Cost = false;
public bool wearingRogueArmor = false;
public float accStealthGenBoost = 0f;
@@ -300,7 +300,6 @@ namespace CalamityMod.CalPlayer
#region Mount
public bool onyxExcavator = false;
public bool rimehound = false;
public bool fab = false;
public bool crysthamyr = false;
public bool ExoChair = false;
public AndromedaPlayerState andromedaState;
@@ -882,6 +881,8 @@ namespace CalamityMod.CalPlayer
public bool gState = false;
public bool bBlood = false;
public bool brainRot = false;
public bool heavybleeding = false;
public bool laceration = false;
public bool elementalMix = false;
public bool icarusFolly = false;
public bool weakPetrification = false;
@@ -929,7 +930,7 @@ namespace CalamityMod.CalPlayer
public bool zen = false;
public bool isNearbyBoss = false;
public bool flaskBrimstone = false;
public bool fabsolVodka = false;
public bool purpleHaze = false;
public bool mushy = false;
public bool PinkJellyRegen = false;
public bool GreenJellyRegen = false;
@@ -986,7 +987,6 @@ namespace CalamityMod.CalPlayer
public int bloodfinTimer = 30;
public bool hallowedRegen = false;
public bool hallowedPower = false;
public bool kamiBoost = false;
public bool avertorBonus = false;
public bool divineBless = false;
public bool infiniteFlight = false;
@@ -1151,7 +1151,6 @@ namespace CalamityMod.CalPlayer
public bool omegaBlueTransformationForce;
public bool omegaBlueTransformationPower;
public bool redBow;
public bool cocosFeather;
#endregion
#region Calamitas Enchant Effects
@@ -1291,7 +1290,6 @@ namespace CalamityMod.CalPlayer
newPrincessInventory = false;
newSkeletonMerchantInventory = false;
newPermafrostInventory = false;
newCirrusInventory = false;
newAmidiasInventory = false;
newBanditInventory = false;
newCalamitasInventory = false;
@@ -1343,7 +1341,6 @@ namespace CalamityMod.CalPlayer
boost.AddWithCondition("newPrincessInventory", newPrincessInventory);
boost.AddWithCondition("newSkeletonMerchantInventory", newSkeletonMerchantInventory);
boost.AddWithCondition("newPermafrostInventory", newPermafrostInventory);
boost.AddWithCondition("newCirrusInventory", newCirrusInventory);
boost.AddWithCondition("newAmidiasInventory", newAmidiasInventory);
boost.AddWithCondition("newBanditInventory", newBanditInventory);
boost.AddWithCondition("newCalamitasInventory", newCalamitasInventory);
@@ -1433,7 +1430,6 @@ namespace CalamityMod.CalPlayer
newPrincessInventory = boost.Contains("newPrincessInventory");
newSkeletonMerchantInventory = boost.Contains("newSkeletonMerchantInventory");
newPermafrostInventory = boost.Contains("newPermafrostInventory");
newCirrusInventory = boost.Contains("newCirrusInventory");
newAmidiasInventory = boost.Contains("newAmidiasInventory");
newBanditInventory = boost.Contains("newBanditInventory");
newCalamitasInventory = boost.Contains("newCalamitasInventory");
@@ -1601,7 +1597,6 @@ namespace CalamityMod.CalPlayer
onyxExcavator = false;
rimehound = false;
fab = false;
crysthamyr = false;
ExoChair = false;
miniOldDuke = false;
@@ -1662,7 +1657,6 @@ namespace CalamityMod.CalPlayer
shadowSpeed = false;
dsSetBonus = false;
wearingRogueArmor = false;
cirrusDress = false;
blockAllDashes = false;
blazingCursorDamage = false;
@@ -1770,7 +1764,6 @@ namespace CalamityMod.CalPlayer
phantomicArtifact = false;
hallowedRegen = false;
hallowedPower = false;
kamiBoost = false;
tracersDust = false;
elysianWingsDust = false;
tracersCelestial = false;
@@ -1850,7 +1843,6 @@ namespace CalamityMod.CalPlayer
goldArmorGoldDrops = false;
miningSet = false;
miningSetCooldown = 0;
eskimoSet = false; //vanilla armor
meteorSet = false; //vanilla armor, for Space Gun nerf
@@ -1944,6 +1936,8 @@ namespace CalamityMod.CalPlayer
gState = false;
bBlood = false;
brainRot = false;
heavybleeding = false;
laceration = false;
elementalMix = false;
icarusFolly = false;
vHex = false;
@@ -1998,7 +1992,7 @@ namespace CalamityMod.CalPlayer
trippy = false;
amidiasBlessing = false;
flaskBrimstone = false;
fabsolVodka = false;
purpleHaze = false;
shine = false;
anechoicCoating = false;
mushy = false;
@@ -2191,7 +2185,6 @@ namespace CalamityMod.CalPlayer
omegaBlueTransformation = omegaBlueTransformationForce = omegaBlueTransformationPower = false;
redBow = false;
cocosFeather = false;
rageModeActive = false;
adrenalineModeActive = false;
@@ -2217,6 +2210,13 @@ namespace CalamityMod.CalPlayer
infiniteFlight = false;
noStupidNaturalARSpawns = false;
disableAnahitaSpawns = false;
disableHiveCystSpawns = false;
disableNaturalScourgeSpawns = false;
disablePerfCystSpawns = false;
disableVoodooSpawns = false;
EnchantHeldItemEffects(Player, Player.Calamity(), Player.ActiveItem());
}
#endregion
@@ -2240,13 +2240,13 @@ namespace CalamityMod.CalPlayer
#region Screen Position Movements
public override void ModifyScreenPosition()
{
if (CalamityConfig.Instance.ScreenshakePower == 0)
if (CalamityClientConfig.Instance.ScreenshakePower == 0)
return;
if (GeneralScreenShakePower > 0f)
{
Main.screenPosition += Main.rand.NextVector2Circular(GeneralScreenShakePower * CalamityConfig.Instance.ScreenshakePower, GeneralScreenShakePower * CalamityConfig.Instance.ScreenshakePower);
GeneralScreenShakePower = MathHelper.Clamp(GeneralScreenShakePower - 0.185f, 0f, 20f * CalamityConfig.Instance.ScreenshakePower);
Main.screenPosition += Main.rand.NextVector2Circular(GeneralScreenShakePower * CalamityClientConfig.Instance.ScreenshakePower, GeneralScreenShakePower * CalamityClientConfig.Instance.ScreenshakePower);
GeneralScreenShakePower = MathHelper.Clamp(GeneralScreenShakePower - 0.185f, 0f, 20f * CalamityClientConfig.Instance.ScreenshakePower);
}
}
#endregion
@@ -2367,6 +2367,8 @@ namespace CalamityMod.CalPlayer
gState = false;
bBlood = false;
brainRot = false;
heavybleeding = false;
laceration = false;
elementalMix = false;
icarusFolly = false;
vHex = false;
@@ -2419,7 +2421,6 @@ namespace CalamityMod.CalPlayer
hallowedPower = false;
onyxExcavator = false;
rimehound = false;
fab = false;
crysthamyr = false;
ExoChair = false;
abyssalDivingSuitPlates = false;
@@ -2432,7 +2433,6 @@ namespace CalamityMod.CalPlayer
rRage = false;
xRage = false;
xWrath = false;
kamiBoost = false;
graxDefense = false;
encased = false;
brutalCarnage = false;
@@ -2457,7 +2457,7 @@ namespace CalamityMod.CalPlayer
sulphurskin = false;
baguette = false;
flaskBrimstone = false;
fabsolVodka = false;
purpleHaze = false;
shine = false;
anechoicCoating = false;
mushy = false;
@@ -2648,8 +2648,6 @@ namespace CalamityMod.CalPlayer
ascendantTrail = false;
evilSmasherBoost = 0;
hellbornBoost = 0;
searedPanCounter = 0;
searedPanTimer = 0;
potionTimer = 0;
persecutedEnchantSummonTimer = 0;
momentumCapacitorTime = 0;
@@ -2671,7 +2669,7 @@ namespace CalamityMod.CalPlayer
// Respawn the player faster
// 3 seconds normally and configurable while a boss is alive between 15 and 60 seconds
int respawnTimerSet = areThereAnyDamnBosses ? (CalamityConfig.Instance.PlayerRespawnTime_BossAlive * 60) : 180;
int respawnTimerSet = areThereAnyDamnBosses ? (CalamityServerConfig.Instance.PlayerRespawnTime_BossAlive * 60) : 180;
if (Player.respawnTimer > respawnTimerSet)
Player.respawnTimer = respawnTimerSet;
}
@@ -3090,16 +3088,16 @@ namespace CalamityMod.CalPlayer
//Right click dash on Speed Blaster
if (sBlasterDashActivated == true)
{
if ((Player.controlUp || Player.controlDown || Player.controlLeft || Player.controlRight) && !Player.pulley && Player.grappling[0] == -1 && !Player.tongued && !Player.mount.Active && Player.HasCooldown(Cooldowns.SpeedBlasterBoost.ID) && Player.dashDelay == 0)
if ((Player.controlUp || Player.controlDown || Player.controlLeft || Player.controlRight) && !Player.pulley && Player.grappling[0] == -1 && !Player.tongued && !Player.mount.Active && (Player.HasCooldown(SpeedBlasterBoost.ID) || Player.HasCooldown(SuperradiantSawBoost.ID)) && Player.dashDelay == 0)
{
SpeedBlasterDashStarted = true;
}
sBlasterDashActivated = false;
}
if (Player.Calamity().SpeedBlasterDashStarted || (Player.dashDelay != 0 && Player.Calamity().LastUsedDashID == SpeedBlasterDash.ID))
if (Player.Calamity().SpeedBlasterDashStarted || (Player.dashDelay != 0 && (Player.Calamity().LastUsedDashID == SpeedBlasterDash.ID || Player.Calamity().LastUsedDashID == SuperradiantSawDash.ID)))
{
Player.Calamity().DeferredDashID = SpeedBlasterDash.ID;
Player.Calamity().DeferredDashID = Player.ActiveItem().type == ModContent.ItemType<SuperradiantSlaughterer>() ? SuperradiantSawDash.ID : SpeedBlasterDash.ID;
Player.dash = 0;
}
@@ -3343,14 +3341,14 @@ namespace CalamityMod.CalPlayer
public override void UpdateEquips()
{
// TODO -- why is boss health bar code in Player.UpdateEquips and not a ModSystem
CalamityConfig.Instance.BossHealthBarExtraInfo = shouldDrawSmallText;
CalamityClientConfig.Instance.BossHealthBarExtraInfo = shouldDrawSmallText;
// Putting this in GlobalItem will run multiple times for each slot, which this system already does, creating a slew of problems.
VanillaArmorChangeManager.ApplyPotentialEffectsTo(Player);
// If the config is enabled, vastly increase the player's base tile and wall placement speeds
// This stacks with the Brick Layer and Portable Cement Mixer
if (CalamityConfig.Instance.FasterTilePlacement)
if (CalamityServerConfig.Instance.FasterTilePlacement)
{
Player.tileSpeed += 0.5f;
Player.wallSpeed += 0.5f;
@@ -3425,58 +3423,66 @@ namespace CalamityMod.CalPlayer
{
Player.AddBuff(ModContent.BuffType<ProfanedCrystalBuff>(), 60, true);
}
if (gSabaton && Player.whoAmI == Main.myPlayer)
if (gSabaton)
{
//While holding hotkey, but before slam, bring Y velocity closer to 0
if (gSabatonHotkeyHoldTime < 60 && gSabatonHotkeyHoldTime != 0 && !gSabatonFalling)
if (Player.whoAmI == Main.myPlayer)
{
Player.velocity.Y *= (60 - (gSabatonHotkeyHoldTime / 4f)) / 60f;
}
//Play sound a bit early so it goes in time with the fall
if (gSabatonHotkeyHoldTime == 45 && !gSabatonFalling)
{
SoundEngine.PlaySound(new("CalamityMod/Sounds/Custom/GravistarCharge") { Volume = 0.3f });
}
//1 second passed, falling time
if (gSabatonHotkeyHoldTime == 60)
{
gSabatonFalling = true;
}
//Cancel fall and don't give 'on ground' effects if on rope, on mount, grappled, or tongued
if (Player.pulley || Player.mount.Active || Player.grappling[0] != -1 || Player.tongued)
{
gSabatonFall = 0;
gSabatonFalling = false;
}
if (gSabatonFalling)
{
SpawnGravistarParticle();
//Cap time converted to damage at 2 seconds
if (gSabatonFall < 120)
gSabatonFall++;
Player.maxFallSpeed = 40f;
Player.gravity = 1.3f;
//If the player can fly during the fall, the physics gets a bit funky
Player.controlJump = false;
//Check if player hit some form of solid resistance (the ground)
if (Player.oldVelocity.Y == Player.velocity.Y)
//While holding hotkey, but before slam, bring Y velocity closer to 0
if (gSabatonHotkeyHoldTime < 60 && gSabatonHotkeyHoldTime != 0 && !gSabatonFalling)
{
Player.velocity.Y *= (60 - (gSabatonHotkeyHoldTime / 4f)) / 60f;
}
//Play sound a bit early so it goes in time with the fall
if (gSabatonHotkeyHoldTime == 45 && !gSabatonFalling)
{
SoundEngine.PlaySound(new("CalamityMod/Sounds/Custom/GravistarCharge") { Volume = 0.3f });
}
//1 second passed, falling time
if (gSabatonHotkeyHoldTime == 60)
{
gSabatonFalling = true;
}
//Cancel fall and don't give 'on ground' effects if on rope, on mount, grappled, or tongued
// Also cancel fall if the player has upwards Y velocity (Goodbye Inner Tube cheese)
if ((Player.gravDir == 1 && Player.velocity.Y < 0f) || (Player.gravDir == -1 && Player.velocity.Y > 1f) || Player.pulley || Player.mount.Active || Player.grappling[0] != -1 || Player.tongued)
{
var source = Player.GetSource_Accessory(FindAccessory(ModContent.ItemType<GravistarSabaton>()));
//Spawn explosion. ai[0] is used for transferring the recorded falling time
int damage = Player.ApplyArmorAccDamageBonusesTo(Player.CalcIntDamage<MeleeDamageClass>(GravistarSabaton.SlamDamage));
Projectile.NewProjectile(source, Player.Center, Vector2.Zero, ModContent.ProjectileType<SabatonSlam>(), damage, 4f, Player.whoAmI, gSabatonFall);
gSabatonFall = 0;
gSabatonFalling = false;
//Temporary jump speed is granted for 40 frames
gSabatonTempJumpSpeed = 40;
}
if (gSabatonFalling)
{
SpawnGravistarParticle();
//Cap time converted to damage at 2 seconds
if (gSabatonFall < 120)
gSabatonFall++;
Player.maxFallSpeed = 40f;
Player.gravity = 1.3f;
//If the player can fly during the fall, the physics gets a bit funky
Player.controlJump = false;
//Check if player hit some form of solid resistance (the ground)
if (Player.oldVelocity.Y == Player.velocity.Y)
{
var source = Player.GetSource_Accessory(FindAccessory(ModContent.ItemType<GravistarSabaton>()));
//Spawn explosion. ai[0] is used for transferring the recorded falling time
int damage = Player.ApplyArmorAccDamageBonusesTo(Player.CalcIntDamage<MeleeDamageClass>(GravistarSabaton.SlamDamage));
Projectile.NewProjectile(source, Player.Center, Vector2.Zero, ModContent.ProjectileType<SabatonSlam>(), damage, 4f, Player.whoAmI, gSabatonFall);
gSabatonFall = 0;
gSabatonFalling = false;
//Temporary jump speed is granted for 40 frames
gSabatonTempJumpSpeed = 40;
}
}
}
}
else // Reset slam effect if the accessory is unequipped
{
gSabatonFall = 0;
gSabatonFalling = false;
}
}
#endregion
@@ -3600,7 +3606,7 @@ namespace CalamityMod.CalPlayer
#region PostUpdateBuffs
public override void PostUpdateBuffs()
{
if (Player.whoAmI == Main.myPlayer && CalamityConfig.Instance.VanillaCooldownDisplay)
if (Player.whoAmI == Main.myPlayer)
{
if (Player.whoAmI == Main.myPlayer && Player.potionDelay != 0)
potionSick = true;
@@ -3713,10 +3719,9 @@ namespace CalamityMod.CalPlayer
(aquaticHeartWaterBuff ? 0.15f : 0f) +
((frostFlare && Player.statLife <= (int)(Player.statLifeMax2 * 0.5)) ? 0.15f : 0f) +
(dragonScales ? 0.1f : 0f) +
(kamiBoost ? KamiBuff.RunAccelerationBoost : 0f) +
(CobaltSet ? CobaltArmorSetChange.SpeedBoostSetBonusPercentage * 0.01f : 0f) +
(silvaSet ? 0.05f : 0f) +
(blueCandle ? CirrusBlueCandleBuff.AccelerationBoost : 0f) +
(blueCandle ? BlueCandleBuff.AccelerationBoost : 0f) +
(planarSpeedBoost > 0 ? (0.01f * planarSpeedBoost) : 0f) +
(hasteLevel * 0.05f);
@@ -3728,7 +3733,6 @@ namespace CalamityMod.CalPlayer
(aquaticHeartWaterBuff ? 0.15f : 0f) +
((frostFlare && Player.statLife <= (int)(Player.statLifeMax2 * 0.5)) ? 0.15f : 0f) +
(dragonScales ? 0.1f : 0f) +
(kamiBoost ? KamiBuff.RunSpeedBoost : 0f) +
(CobaltSet ? CobaltArmorSetChange.SpeedBoostSetBonusPercentage * 0.01f : 0f) +
(silvaSet ? 0.05f : 0f) +
(planarSpeedBoost > 0 ? (0.01f * planarSpeedBoost) : 0f) +
@@ -4222,12 +4226,6 @@ namespace CalamityMod.CalPlayer
Player.body = EquipLoader.GetEquipSlot(Mod, "RedBow", EquipType.Body);
Player.head = EquipLoader.GetEquipSlot(Mod, "RedBow", EquipType.Head);
}
if (cocosFeather)
{
Player.legs = EquipLoader.GetEquipSlot(Mod, "CocosFeather", EquipType.Legs);
Player.body = EquipLoader.GetEquipSlot(Mod, "CocosFeather", EquipType.Body);
Player.head = EquipLoader.GetEquipSlot(Mod, "CocosFeather", EquipType.Head);
}
if (snowRuffianSet)
{
Player.wings = EquipLoader.GetEquipSlot(Mod, "SnowRuffianMask", EquipType.Wings);
@@ -4295,20 +4293,8 @@ namespace CalamityMod.CalPlayer
if (weakPetrification)
WeakPetrification();
// Disable vanilla dashes during god slayer dash
if (godSlayerDashHotKeyPressed)
{
// Set the player to have no registered vanilla dashes.
Player.dashType = 0;
// Prevent the possibility of Shield of Cthulhu invulnerability exploits.
Player.eocHit = -1;
if (Player.eocDash != 0)
Player.eocDash = 0;
}
// Disable vanilla dashes during god slayer dash
if (SpeedBlasterDashStarted)
// Disable vanilla dashes during God Slayer or Speed Blaster dashes
if (godSlayerDashHotKeyPressed || SpeedBlasterDashStarted)
{
// Set the player to have no registered vanilla dashes.
Player.dashType = 0;
@@ -4548,7 +4534,7 @@ namespace CalamityMod.CalPlayer
stealthStrikeThisFrame = false;
stealthStrikeHalfCost = false;
stealthStrike75Cost = false;
stealthStrike85Cost = false;
stealthStrike90Cost = false;
// stealthAcceleration only resets if you don't have either of the accelerator accessories equipped
if (!darkGodSheath && !eclipseMirror)
@@ -4735,8 +4721,8 @@ namespace CalamityMod.CalPlayer
consumptionMult = 0.5f;
else if (stealthStrike75Cost)
consumptionMult = 0.75f;
else if (stealthStrike85Cost)
consumptionMult = 0.85f;
else if (stealthStrike90Cost)
consumptionMult = 0.9f;
return rogueStealth >= rogueStealthMax * consumptionMult;
}
@@ -4763,7 +4749,7 @@ namespace CalamityMod.CalPlayer
if (rogueStealth <= 0f)
rogueStealth = 0f;
}
else if (stealthStrike85Cost)
else if (stealthStrike90Cost)
{
rogueStealth -= 0.9f * stealthToLose;
if (rogueStealth <= 0f)
@@ -4876,11 +4862,15 @@ namespace CalamityMod.CalPlayer
// Enabling the config while a player is loaded will show the timer immediately.
// But it won't start running until you save and quit and re-enter a world.
if (CalamityConfig.Instance.SpeedrunTimer)
if (CalamityClientConfig.Instance.SpeedrunTimer)
CalamityMod.SpeedrunTimer.Restart();
bool showWikiMessage = CalamityClientConfig.Instance.WikiStatusMessage;
bool showVCMMMessage = CalamityClientConfig.Instance.VCMMStatusMessage && !CalamityMod.Instance.VCMMAvailable;
bool showStartupMessages = showWikiMessage || showVCMMMessage;
// Set a random delay between 12 and 20 seconds. When this delay hits zero, startup messages display
if (CalamityConfig.Instance.WikiStatusMessage)
if (showStartupMessages)
{
startMessageDisplayDelay = Main.rand.Next(CalamityUtils.SecondsToFrames(12), CalamityUtils.SecondsToFrames(20) + 1);
}
+7 -41
View File
@@ -13,8 +13,7 @@ namespace CalamityMod.CalPlayer
{
public partial class CalamityPlayer : ModPlayer
{
public int VerticalGodslayerDashTimer;
public int VerticalSpeedBlasterDashTimer;
public int VerticalOmnidashTimer;
private string dashID; //private backing variable
@@ -22,7 +21,7 @@ namespace CalamityMod.CalPlayer
{
get
{
return (String.IsNullOrEmpty(dashID) && Player.dashType == 0 && CalamityConfig.Instance.DefaultDashEnabled) ? DefaultDash.ID : dashID; //gives default dash ONLY if no custom or vanilla dash.
return (String.IsNullOrEmpty(dashID) && Player.dashType == 0 && CalamityServerConfig.Instance.DefaultDashEnabled) ? DefaultDash.ID : dashID; //gives default dash ONLY if no custom or vanilla dash.
}
set => dashID = value;
}
@@ -104,16 +103,9 @@ namespace CalamityMod.CalPlayer
}
}
if (Player.dashDelay > 0) //Speed Blaster
{
VerticalSpeedBlasterDashTimer = 0;
LastUsedDashID = string.Empty;
return;
}
if (Player.dashDelay > 0)
{
VerticalGodslayerDashTimer = 0;
VerticalOmnidashTimer = 0;
LastUsedDashID = string.Empty;
return;
}
@@ -137,21 +129,10 @@ namespace CalamityMod.CalPlayer
// Handle mid-dash effects.
UsedDash.MidDashEffects(Player, ref dashSpeed, ref dashSpeedDecelerationFactor, ref runSpeedDecelerationFactor);
if (UsedDash.IsOmnidirectional && VerticalGodslayerDashTimer < 25)
if (UsedDash.IsOmnidirectional && VerticalOmnidashTimer < 25)
{
VerticalGodslayerDashTimer++;
if (VerticalGodslayerDashTimer >= 25)
{
Player.dashDelay = dashDelayToApply;
// Stop the player from going flying
Player.velocity *= 0.2f;
}
}
if (UsedDash.IsOmnidirectional && VerticalSpeedBlasterDashTimer < 25)
{
VerticalSpeedBlasterDashTimer++;
if (VerticalSpeedBlasterDashTimer >= 25)
VerticalOmnidashTimer++;
if (VerticalOmnidashTimer >= 25)
{
Player.dashDelay = dashDelayToApply;
// Stop the player from going flying
@@ -481,6 +462,7 @@ namespace CalamityMod.CalPlayer
if (WorldGen.SolidOrSlopedTile(upwardTilePoint.X, upwardTilePoint.Y) || WorldGen.SolidOrSlopedTile(aheadTilePoint.X, aheadTilePoint.Y))
Player.velocity.X /= 2f;
Player.timeSinceLastDashStarted = 0;
Player.dashDelay = -1;
}
@@ -489,22 +471,6 @@ namespace CalamityMod.CalPlayer
public void ModHorizontalMovement()
{
if (Player.mount.Active && Player.mount.Type == ModContent.MountType<AlicornMount>() && Math.Abs(Player.velocity.X) > Player.mount.DashSpeed - Player.mount.RunSpeed / 2f)
{
Rectangle damageHitbox = Player.getRect();
if (Player.direction == 1)
damageHitbox.Offset(Player.width - 1, 0);
damageHitbox.Width = 2;
damageHitbox.Inflate(6, 12);
float damage = Player.GetTotalDamage<SummonDamageClass>().ApplyTo(800f);
float knockback = 10f;
int NPCImmuneTime = 30;
int playerImmuneTime = 6;
DoMountDashDamage(damageHitbox, damage, knockback, NPCImmuneTime, playerImmuneTime);
}
if (Player.mount.Active && Player.mount.Type == ModContent.MountType<RimehoundMount>() && Math.Abs(Player.velocity.X) > Player.mount.RunSpeed / 2f)
{
Rectangle damageHitbox = Player.getRect();
+7 -1
View File
@@ -110,7 +110,7 @@ namespace CalamityMod.CalPlayer
}
// TODO -- rogue stealth visuals are an utter catastrophe and should be fully destroyed on next stealth rework
if (calamityPlayer.rogueStealth > 0f && calamityPlayer.rogueStealthMax > 0f && Player.townNPCs < 3f && CalamityConfig.Instance.StealthInvisibility)
if (calamityPlayer.rogueStealth > 0f && calamityPlayer.rogueStealthMax > 0f && Player.townNPCs < 3f && CalamityClientConfig.Instance.StealthInvisibility)
{
// A translucent orchid color, the rogue class color
float colorValue = calamityPlayer.rogueStealth / calamityPlayer.rogueStealthMax * 0.9f; //0 to 0.9
@@ -244,6 +244,9 @@ namespace CalamityMod.CalPlayer
if (calamityPlayer.gsInferno && drawInfo.shadow == 0f)
GodSlayerInferno.DrawEffects(drawInfo);
if (calamityPlayer.heavybleeding && drawInfo.shadow == 0f)
HeavyBleeding.DrawEffects(drawInfo);
// Holy Flames, Holy Inferno and Banishing Fire share the same visual effects
if (drawInfo.shadow == 0f && (calamityPlayer.hFlames || calamityPlayer.hInferno || calamityPlayer.banishingFire))
{
@@ -256,6 +259,9 @@ namespace CalamityMod.CalPlayer
else if (calamityPlayer.icarusFolly && drawInfo.shadow == 0f)
IcarusFolly.DrawEffects(drawInfo);
if (calamityPlayer.laceration && drawInfo.shadow == 0f)
Laceration.DrawEffects(drawInfo);
if (calamityPlayer.miracleBlight && drawInfo.shadow == 0f)
MiracleBlight.DrawEffects(drawInfo);
+58 -17
View File
@@ -45,6 +45,7 @@ using Terraria.Chat;
using Terraria.DataStructures;
using Terraria.GameContent.Events;
using Terraria.Graphics.Shaders;
using Terraria.GameContent.Creative;
using Terraria.ID;
using Terraria.Localization;
using Terraria.ModLoader;
@@ -438,6 +439,14 @@ namespace CalamityMod.CalPlayer
{
damageSource = PlayerDeathReason.ByCustomReason(CalamityUtils.GetText("Status.Death.BrainRot" + Main.rand.Next(1, 3 + 1)).Format(Player.name));
}
if (heavybleeding)
{
damageSource = PlayerDeathReason.ByCustomReason(CalamityUtils.GetText("Status.Death.HeavyBleeding" + Main.rand.Next(1, 3 + 1)).ToNetworkText(Player.name));
}
if (laceration)
{
damageSource = PlayerDeathReason.ByCustomReason(CalamityUtils.GetText("Status.Death.Laceration" + Main.rand.Next(1, 3 + 1)).ToNetworkText(Player.name));
}
if (elementalMix)
{
damageSource = PlayerDeathReason.ByCustomReason(CalamityUtils.GetText("Status.Death.ElementalMix" + Main.rand.Next(1, 2 + 1)).Format(Player.name));
@@ -531,7 +540,7 @@ namespace CalamityMod.CalPlayer
// FinalDamage cannot be used for the intended effect because there is no way to access the actual damage of the hit
CalamityGlobalNPC cgn = target.Calamity();
if (yellowCandle && cgn.DR < 0.99f && target.takenDamageMultiplier > 0.05f)
modifiers.ModifyHitInfo += CirrusYellowCandleBuff.ModifyHitInfo_Spite;
modifiers.ModifyHitInfo += YellowCandleBuff.ModifyHitInfo_Spite;
// Excalibur and True Excalibur deal +100% damage to targets above 75% HP.
if (item.type == ItemID.Excalibur || item.type == ItemID.TrueExcalibur)
@@ -605,7 +614,7 @@ namespace CalamityMod.CalPlayer
// FinalDamage cannot be used for the intended effect because there is no way to access the actual damage of the hit
CalamityGlobalNPC cgn = target.Calamity();
if (yellowCandle && cgn.DR < 0.99f && target.takenDamageMultiplier > 0.05f)
modifiers.ModifyHitInfo += CirrusYellowCandleBuff.ModifyHitInfo_Spite;
modifiers.ModifyHitInfo += YellowCandleBuff.ModifyHitInfo_Spite;
// Stealth strike damage multipliers are applied here.
// TODO -- stealth should be its own damage class and this should be applied as player StealthDamage *= XYZ
@@ -924,8 +933,29 @@ namespace CalamityMod.CalPlayer
double dodgeDamageGateValuePercent = 0.05;
int dodgeDamageGateValue = (int)Math.Round(Player.statLifeMax2 * dodgeDamageGateValuePercent);
// This hook is applied before tML applies the vanilla difficulty multipliers. This means the "proj.damage" value here
// is usually significantly lower than the damage the projectile "actually" deals.
// To obtain the correct damage value for a cancelled hit, the corresponding multipliers are copied from tML
// to simulate the "actual" damage of the projectile.
// Note: Banner buffs, cold resistance, and modded modifiers are not included in this "actual" damage calculation,
// even though in real tML hooks they might be applied earlier than or together with difficulty multipliers.
int actualProjDamage = proj.damage;
if (!proj.reflected && !ProjectileID.Sets.PlayerHurtDamageIgnoresDifficultyScaling[proj.type])
{
float damageMult = Main.GameModeInfo.EnemyDamageMultiplier;
if (Main.GameModeInfo.IsJourneyMode)
{
var power = CreativePowerManager.Instance.GetPower<CreativePowers.DifficultySliderPower>();
if (power.GetIsUnlocked())
damageMult = power.StrengthMultiplierToGiveNPCs;
}
// in real tML, the factor 2 is applied in Projectile.Damage()
actualProjDamage = (int)Math.Floor(2 * damageMult * (float)actualProjDamage);
}
// Reflects count as dodges. They share the timer and can be disabled by Armageddon right click.
if (!disableAllDodges && !Player.HasCooldown(GlobalDodge.ID) && proj.damage >= dodgeDamageGateValue)
if (!disableAllDodges && !Player.HasCooldown(GlobalDodge.ID) && actualProjDamage >= dodgeDamageGateValue)
{
double maxCooldownDurationDamagePercent = 0.5;
int maxCooldownDurationDamageValue = (int)Math.Round(Player.statLifeMax2 * (maxCooldownDurationDamagePercent - dodgeDamageGateValuePercent));
@@ -934,13 +964,14 @@ namespace CalamityMod.CalPlayer
if (maxCooldownDurationDamageValue <= 0)
maxCooldownDurationDamageValue = 1;
float cooldownDurationScalar = MathHelper.Clamp((proj.damage - dodgeDamageGateValue) / (float)maxCooldownDurationDamageValue, 0f, 1f);
float cooldownDurationScalar = MathHelper.Clamp((actualProjDamage - dodgeDamageGateValue) / (float)maxCooldownDurationDamageValue, 0f, 1f);
// The Evolution
if (evolution)
{
proj.hostile = false;
proj.friendly = true;
proj.damage = 10 * actualProjDamage;
proj.velocity *= -2f;
proj.extraUpdates += 1;
proj.penetrate = 1;
@@ -1190,8 +1221,11 @@ namespace CalamityMod.CalPlayer
if (crawCarapace)
{
npc.AddBuff(ModContent.BuffType<Crumbling>(), 900);
int onHitDamage = Player.CalcIntDamage<GenericDamageClass>(40);
Player.ApplyDamageToNPC(npc, onHitDamage, 0f, 0, false);
if (!npc.dontTakeDamage)
{
int onHitDamage = Player.CalcIntDamage<GenericDamageClass>(40);
Player.ApplyDamageToNPC(npc, onHitDamage, 0f, 0, false);
}
SoundEngine.PlaySound(SoundID.NPCHit33 with { Volume = 0.5f }, Player.Center);
}
@@ -1199,8 +1233,11 @@ namespace CalamityMod.CalPlayer
{
npc.AddBuff(ModContent.BuffType<ArmorCrunch>(), 900);
npc.AddBuff(ModContent.BuffType<CrushDepth>(), 900);
int onHitDamage = Player.CalcIntDamage<GenericDamageClass>(250);
Player.ApplyDamageToNPC(npc, onHitDamage, 0f, 0, false);
if (!npc.dontTakeDamage)
{
int onHitDamage = Player.CalcIntDamage<GenericDamageClass>(250);
Player.ApplyDamageToNPC(npc, onHitDamage, 0f, 0, false);
}
SoundEngine.PlaySound(BaroclawHit, Player.Center);
Vector2 bloodSpawnPosition = Player.Center + Main.rand.NextVector2Circular(Player.width, Player.height) * 0.04f;
Vector2 splatterDirection = (Player.Center - bloodSpawnPosition).SafeNormalize(Vector2.UnitY);
@@ -1220,8 +1257,11 @@ namespace CalamityMod.CalPlayer
if (absorber)
{
npc.AddBuff(ModContent.BuffType<AbsorberAffliction>(), 900);
int onHitDamage = Player.CalcIntDamage<GenericDamageClass>(350);
Player.ApplyDamageToNPC(npc, onHitDamage, 0f, 0, false);
if (!npc.dontTakeDamage)
{
int onHitDamage = Player.CalcIntDamage<GenericDamageClass>(350);
Player.ApplyDamageToNPC(npc, onHitDamage, 0f, 0, false);
}
SoundEngine.PlaySound(AbsorberHit, Player.Center);
Vector2 bloodSpawnPosition = Player.Center + Main.rand.NextVector2Circular(Player.width, Player.height) * 0.04f;
Vector2 splatterDirection = (Player.Center - bloodSpawnPosition).SafeNormalize(Vector2.UnitY);
@@ -1454,7 +1494,7 @@ namespace CalamityMod.CalPlayer
int dodgeDamageGateValue = (int)Math.Round(Player.statLifeMax2 * dodgeDamageGateValuePercent);
// Reflects count as dodges. They share the timer and can be disabled by global dodge disabling effects.
if (!disableAllDodges && !Player.HasCooldown(GlobalDodge.ID) && proj.damage >= dodgeDamageGateValue)
if (!disableAllDodges && !Player.HasCooldown(GlobalDodge.ID) && hurtInfo.SourceDamage >= dodgeDamageGateValue)
{
double maxCooldownDurationDamagePercent = 0.5;
int maxCooldownDurationDamageValue = (int)Math.Round(Player.statLifeMax2 * (maxCooldownDurationDamagePercent - dodgeDamageGateValuePercent));
@@ -1463,12 +1503,13 @@ namespace CalamityMod.CalPlayer
if (maxCooldownDurationDamageValue <= 0)
maxCooldownDurationDamageValue = 1;
float cooldownDurationScalar = MathHelper.Clamp((proj.damage - dodgeDamageGateValue) / (float)maxCooldownDurationDamageValue, 0f, 1f);
float cooldownDurationScalar = MathHelper.Clamp((hurtInfo.SourceDamage - dodgeDamageGateValue) / (float)maxCooldownDurationDamageValue, 0f, 1f);
if (daedalusReflect && !evolution)
{
proj.hostile = false;
proj.friendly = true;
proj.damage = hurtInfo.SourceDamage;
proj.velocity *= -1f;
proj.penetrate = 1;
@@ -1602,16 +1643,16 @@ namespace CalamityMod.CalPlayer
return true;
// Mirror evades do not work if the global dodge cooldown is active. This cooldown can be triggered by either mirror.
if (!Player.HasCooldown(GlobalDodge.ID) && info.Damage >= dodgeDamageGateValue)
if (!Player.HasCooldown(GlobalDodge.ID) && actualDamageTaken >= dodgeDamageGateValue)
{
if (eclipseMirror)
{
EclipseMirrorDodge(dodgeDamageGateValuePercent, dodgeDamageGateValue, info.Damage);
EclipseMirrorDodge(dodgeDamageGateValuePercent, dodgeDamageGateValue, actualDamageTaken);
return true;
}
else if (abyssalMirror)
{
AbyssMirrorDodge(dodgeDamageGateValuePercent, dodgeDamageGateValue, info.Damage);
AbyssMirrorDodge(dodgeDamageGateValuePercent, dodgeDamageGateValue, actualDamageTaken);
return true;
}
}
@@ -1666,7 +1707,7 @@ namespace CalamityMod.CalPlayer
SoundEngine.PlaySound(SoundID.NPCHit4, Player.Center); //metal hit noise
hurtSoundTimer = 10;
}
else if (((aquaticHeartPower || aquaticHeartForce) && !aquaticHeartHide) || Player.GetModPlayer<CrystalHeartVodkaPlayer>().vanityEquipped)
else if (((aquaticHeartPower || aquaticHeartForce) && !aquaticHeartHide))
{
modifiers.DisableSound();
SoundEngine.PlaySound(SoundID.FemaleHit, Player.Center); //female hit noise
@@ -2198,7 +2239,7 @@ namespace CalamityMod.CalPlayer
if (trinketOfChi)
chiBuffTimer = 0;
if (amidiasBlessing && hurtInfo.Damage > 50)
if (amidiasBlessing && (chaliceOfTheBloodGod ? chaliceBleedoutToApplyOnHurt : hurtInfo.Damage) > 50)
{
Player.ClearBuff(ModContent.BuffType<AmidiasBlessing>());
SoundEngine.PlaySound(SoundID.Item96, Player.Center);
+17 -14
View File
@@ -3,7 +3,7 @@ using System.Linq;
using CalamityMod.Buffs.Alcohol;
using CalamityMod.Buffs.DamageOverTime;
using CalamityMod.Buffs.Placeables;
using CalamityMod.Cooldowns;
using CalamityMod.CalPlayer.Dashes;
using CalamityMod.Items.Accessories;
using CalamityMod.NPCs;
using CalamityMod.Projectiles.Ranged;
@@ -99,6 +99,8 @@ namespace CalamityMod.CalPlayer
ApplyDoTDebuff(weakBrimstoneFlames, 7);
ApplyDoTDebuff(bBlood, 8, purity);
ApplyDoTDebuff(brainRot, 8, purity);
ApplyDoTDebuff(heavybleeding, 16, purity);
ApplyDoTDebuff(laceration, 24, purity);
ApplyDoTDebuff(elementalMix, 50, purity);
ApplyDoTDebuff(vaporfied, 8, purity);
ApplyDoTDebuff(bFlames, abaddon ? 10 : 30, purity);
@@ -129,9 +131,13 @@ namespace CalamityMod.CalPlayer
if (CalamityGlobalNPC.aquaticScourge >= 0 && Main.zenithWorld)
{
NPC AS = Main.npc[CalamityGlobalNPC.aquaticScourge];
//if the player is 50 blocks or more away from the head
if (AS.life < AS.lifeMax) //Only poison when damaged
ASPoisonLevel = Utils.GetLerpValue(800f, 1600f, Vector2.Distance(Player.Center, AS.Center), true);
float scoogDistance = Vector2.Distance(Player.Center, AS.Center);
// GFB Aquatic Scourge poisons you if:
// 1. You are over 50 blocks away from the head
// 2. You are under 250 blocks away from the head (so that people halfway across the world aren't getting killed for no reason)
// 3. Aquatic Scourge has been damaged
if (AS.life < AS.lifeMax && scoogDistance < 4000f)
ASPoisonLevel = Utils.GetLerpValue(800f, 1600f, scoogDistance, true);
}
bool ASPoisoning = ASPoisonLevel > 0f;
@@ -140,7 +146,7 @@ namespace CalamityMod.CalPlayer
float increment = 1f / SulphSeaWaterSafetyTime;
//No way to mitigate AS Poisoning
if (ASPoisoning)
increment *= 4f + (8f * ASPoisonLevel);
increment *= 3f + (6f * ASPoisonLevel);
if (sulphurskin && !ASPoisoning)
increment *= 0.5f;
if (sulphurSet && !ASPoisoning)
@@ -183,7 +189,7 @@ namespace CalamityMod.CalPlayer
{
alcoholPoisonLevel++;
}
if (fabsolVodka)
if (purpleHaze)
{
alcoholPoisonLevel++;
}
@@ -263,7 +269,7 @@ namespace CalamityMod.CalPlayer
alcoholPoisonLevel++;
}
if (alcoholPoisonLevel > (cirrusDress ? 5 : 3))
if (alcoholPoisonLevel > 3)
{
// Independently of Calamity's nerfs to Nebula life regen, it is disabled entirely by alcohol poisoning.
Player.nebulaLevelLife = 0;
@@ -422,9 +428,9 @@ namespace CalamityMod.CalPlayer
// Grant life regen based on missing health for Radiant Ooze, Ambrosial Ampule, and purity
if (rOoze || aAmpoule || purity)
{
float missingLifeRatio = (Player.statLifeMax2 - Player.statLife) / Player.statLifeMax2;
float missingLifeRatio = (Player.statLifeMax2 - Player.statLife) / (float)Player.statLifeMax2;
//Ambrosial Ampule and ooze give between 2 and 6 hp/s
float lifeRegenToGive = MathHelper.Lerp(4f, 12f, missingLifeRatio);
int lifeRegenToGive = (int)Math.Round(MathHelper.Lerp((purity || aAmpoule ? 2f : 4f), (purity || aAmpoule ? 10f : 12f), missingLifeRatio)); // Rounding is needed for it to ever actually give +6 hp/s, as the integer conversion would otherwise floor it.
Player.lifeRegen += (int)lifeRegenToGive;
}
@@ -521,7 +527,7 @@ namespace CalamityMod.CalPlayer
#endregion
// During Silva revive or God Slayer dash, all negative life regen is canceled
if ((silvaCountdown > 0 && hasSilvaEffect && silvaSet) || (DashID == GodSlayerDash.ID && Player.dashDelay < 0))
if ((silvaCountdown > 0 && hasSilvaEffect && silvaSet) || (DashID == GodslayerArmorDash.ID && Player.dashDelay < 0))
{
if (Player.lifeRegen < 0)
Player.lifeRegen = 0;
@@ -603,9 +609,6 @@ namespace CalamityMod.CalPlayer
if (caribbeanRum)
Player.lifeRegen += 2;
if (aChicken)
Player.lifeRegen += 1;
if (mushy)
Player.lifeRegen += 2;
@@ -736,7 +739,7 @@ namespace CalamityMod.CalPlayer
if (pinkCandle && !noLifeRegen)
{
// Every frame, add up 1/60th of the healing value (0.4% max HP per second)
pinkCandleHealFraction += Player.statLifeMax2 * CirrusPinkCandleBuff.PercentHealthPerSecond / 60;
pinkCandleHealFraction += Player.statLifeMax2 * PinkCandleBuff.PercentHealthPerSecond / 60;
if (pinkCandleHealFraction >= 1D)
{
+52 -60
View File
@@ -8,6 +8,7 @@ using CalamityMod.Buffs.Potions;
using CalamityMod.Buffs.StatBuffs;
using CalamityMod.Buffs.StatDebuffs;
using CalamityMod.Buffs.Summon;
using CalamityMod.CalPlayer.Dashes;
using CalamityMod.Cooldowns;
using CalamityMod.CustomRecipes;
using CalamityMod.DataStructures;
@@ -82,7 +83,7 @@ namespace CalamityMod.CalPlayer
// Give the player a 24% jump speed boost while wings are equipped, otherwise grant 4% more jump speed so that players can jump 7 tiles high
if (Player.wingsLogic > 0)
Player.jumpSpeedBoost += 1.2f;
else if (CalamityConfig.Instance.FasterJumpSpeed)
else if (CalamityServerConfig.Instance.FasterJumpSpeed)
Player.jumpSpeedBoost += 0.2f;
// Decrease the counter on Fearmonger set turbo regeneration
@@ -186,12 +187,13 @@ namespace CalamityMod.CalPlayer
Player.GetCritChance<RangedDamageClass>() = -spiritOriginConvertedCrit;
}
if (Player.ActiveItem().type == ModContent.ItemType<GaelsGreatsword>())
heldGaelsLastFrame = true;
if (Player.ActiveItem().type != ModContent.ItemType<SaharaSlicers>())
saharaSlicersBolts = 0;
if (Player.ActiveItem().type == ModContent.ItemType<GaelsGreatsword>())
heldGaelsLastFrame = true;
// De-equipping Gael's Greatsword deletes all rage.
else if (heldGaelsLastFrame)
{
@@ -521,7 +523,8 @@ namespace CalamityMod.CalPlayer
// Apply the rage change and cap rage in both directions.
// Changes are only applied if the Rage mechanic is available.
if (RageEnabled)
// CIT 24NOV2025: Fixed an exploit which allowed Rage to persist forever if Revengeance is toggled off while active.
if (RageEnabled || rageDiff < 0f)
{
rage += rageDiff;
if (rage < 0f)
@@ -603,7 +606,10 @@ namespace CalamityMod.CalPlayer
// Apply the adrenaline change and cap adrenaline in both directions.
// Changes are only applied if the Adrenaline mechanic is available.
if (AdrenalineEnabled && adrenalinePauseTimer == 0)
//
// CIT 24NOV2025: Adrenaline cannot be exploited the same way as Rage, since difficulty cannot be changed while a boss is alive.
// Nevertheless, I will still give it the same exploit fix as Rage just in case there is some method to do it.
if ((AdrenalineEnabled || adrenalineDiff < 0f) && adrenalinePauseTimer == 0)
{
adrenaline += adrenalineDiff;
if (adrenaline < 0f)
@@ -981,7 +987,7 @@ namespace CalamityMod.CalPlayer
{
Player.buffImmune[ModContent.BuffType<FrozenLungs>()] = true;
}
if (CalamityConfig.Instance.ChilledWaterRework)
if (CalamityServerConfig.Instance.ChilledWaterRework)
{
if (Main.expertMode && Player.ZoneSnow && Player.wet && !Player.lavaWet && !Player.honeyWet)
{
@@ -999,13 +1005,7 @@ namespace CalamityMod.CalPlayer
}
}
// Extra DoT in the lava of the crags. Negated by Flame-licked Shell.
if (Player.lavaWet)
{
if (ZoneCalamity && !flameLickedShell)
Player.AddBuff(ModContent.BuffType<SearingLava>(), 2, false);
}
else
if (!Player.lavaWet)
{
if (Player.lavaImmune)
{
@@ -1090,8 +1090,6 @@ namespace CalamityMod.CalPlayer
if (!Player.wet)
{
if (cirrusDress)
Player.maxFallSpeed = 12f;
if (aeroSet)
Player.maxFallSpeed = 15f;
if (Player.PortalPhysicsEnabled)
@@ -1104,7 +1102,7 @@ namespace CalamityMod.CalPlayer
Player.noFallDmg = true;
}
if (CalamityConfig.Instance.FasterFallHotkey)
if (CalamityClientConfig.Instance.FasterFallHotkey)
{
// Allow the player to double their gravity (but NOT max fall speed!) by holding the down button while in midair.
bool holdingDown = Player.controlDown && !Player.controlJump;
@@ -1324,7 +1322,7 @@ namespace CalamityMod.CalPlayer
{
handler.OnCompleted();
if (handler.EndSound != null && handler.ShouldPlayEndSound)
SoundEngine.PlaySound(handler.EndSound.GetValueOrDefault());
SoundEngine.PlaySound(handler.EndSound.GetValueOrDefault(), Player.Center);
expiredCooldowns.Add(id);
}
}
@@ -1487,8 +1485,16 @@ namespace CalamityMod.CalPlayer
reaverRegenCooldown++;
else
reaverRegenCooldown = 0;
if (auralisAurora > 0)
auralisAurora--;
if (auralisAuroraCounter > 300)
{
auralisAuroraCounter++;
}
if (auralisAuroraCounter > 1500)
{
auralisAuroraCounter = 0;
auralisAuroraCooldown = CalamityUtils.SecondsToFrames(30f);
}
if (auralisAuroraCooldown > 0)
auralisAuroraCooldown--;
@@ -1499,9 +1505,14 @@ namespace CalamityMod.CalPlayer
else if (blazingCoreParry > 0)
BlazingCore.HandleParryCountdown(Player);
}
else if (flameLickedShell && flameLickedShellParry > 0)
else if (blazingCoreParry > 0)
blazingCoreParry--;
else if (flameLickedShellParry > 0)
{
FlameLickedShell.HandleParryCountdown(Player);
if (flameLickedShell)
FlameLickedShell.HandleParryCountdown(Player);
else
flameLickedShellParry--;
}
// Silver Armor "Medkit" effect
@@ -1563,7 +1574,7 @@ namespace CalamityMod.CalPlayer
MiniSwamerCooldown--;
// God Slayer Armor dash debuff immunity
if (DashID == GodSlayerDash.ID && Player.dashDelay < 0)
if (DashID == GodslayerArmorDash.ID && Player.dashDelay < 0)
{
foreach (int debuff in CalamityLists.debuffList)
Player.buffImmune[debuff] = true;
@@ -1765,9 +1776,6 @@ namespace CalamityMod.CalPlayer
if (raiderTalisman && !StealthStrikeAvailable())
Player.GetCritChance<ThrowingDamageClass>() += raiderCritBonus;
if (kamiBoost)
Player.GetDamage<GenericDamageClass>() += 0.15f;
if (avertorBonus)
Player.GetDamage<GenericDamageClass>() += 0.1f;
@@ -2454,25 +2462,18 @@ namespace CalamityMod.CalPlayer
int chargeDuration = CalamityUtils.SecondsToFrames(5f);
int auroraDuration = CalamityUtils.SecondsToFrames(20f);
if (usingScope && auralisAuroraCounter < chargeDuration + auroraDuration)
if (usingScope && auralisAuroraCounter < chargeDuration && auralisAuroraCooldown == 0)
auralisAuroraCounter++;
if (auralisAuroraCounter > chargeDuration + auroraDuration)
{
auralisAuroraCounter = 0;
auralisAuroraCooldown = CalamityUtils.SecondsToFrames(30f);
}
if (auralisAuroraCounter > 0 && auralisAuroraCounter < chargeDuration && !usingScope)
auralisAuroraCounter--;
if (auralisAuroraCounter > chargeDuration && auralisAuroraCounter < chargeDuration + auroraDuration && !usingScope)
auralisAuroraCounter = 0;
}
else
{
auralisStealthCounter = 0f;
auralisAuroraCounter = 0;
if (auralisAuroraCounter > 0 && auralisAuroraCounter < 300)
auralisAuroraCounter--;
}
if (auralisAuroraCooldown > 0)
{
@@ -2512,7 +2513,7 @@ namespace CalamityMod.CalPlayer
if (gravityNormalizer)
{
Player.buffImmune[BuffID.VortexDebuff] = true;
if (Player.InSpace())
if (Player.ReducedSpaceGravity())
{
Player.gravity = Player.defaultGravity;
if (Player.wet)
@@ -2715,7 +2716,7 @@ namespace CalamityMod.CalPlayer
// 50% movement speed bonus so that you don't feel like a snail in the early game
// Disabled while Overhaul is enabled, because Overhaul does very similar things to make movement more snappy
if (CalamityMod.Instance.overhaul is null && CalamityConfig.Instance.FasterBaseSpeed)
if (CalamityMod.Instance.overhaul is null && CalamityServerConfig.Instance.FasterBaseSpeed)
Player.moveSpeed += BalancingConstants.DefaultMoveSpeedBoost;
// Reduce how slow Chilled makes the player, because it's cancerous right now
@@ -2723,10 +2724,7 @@ namespace CalamityMod.CalPlayer
if (Player.chilled)
Player.moveSpeed *= 1f + (1f / 6f);
if (cirrusDress)
Player.moveSpeed -= 0.2f;
if (fabsolVodka)
if (purpleHaze)
Player.GetDamage<GenericDamageClass>() += 0.08f;
if (vodka)
@@ -2844,26 +2842,13 @@ namespace CalamityMod.CalPlayer
if (Player.ActiveItem().type != ModContent.ItemType<EvilSmasher>())
evilSmasherBoost = 0;
}
if (searedPanCounter > 0)
{
if (Player.ActiveItem().type != ModContent.ItemType<SearedPan>())
{
searedPanCounter = 0;
searedPanTimer = 0;
}
else if (searedPanTimer < SearedPan.ConsecutiveHitOpening)
searedPanTimer++;
else
searedPanCounter = 0;
}
// Flight time boosts
double flightTimeMult = 1D +
(ZoneAstral ? 0.05 : 0D) +
(harpyRing ? 0.2 : 0D) +
(reaverSpeed ? 0.1 : 0D) +
(angelTreads ? 0.1 : 0D) +
(blueCandle ? CirrusBlueCandleBuff.WingTimeBoost : 0D) +
(blueCandle ? BlueCandleBuff.WingTimeBoost : 0D) +
(soaring ? 0.1 : 0D) +
(prismaticGreaves ? 0.1 : 0D) +
(plagueReaper ? 0.05 : 0D) +
@@ -3616,7 +3601,9 @@ namespace CalamityMod.CalPlayer
if (amalgam)
{
// Every other frame, increase the buff timer by one frame. Thus, the buff lasts twice as long.
if (Player.miscCounter % 2 == 0)
// CIT 1NOV2024: Amalgam does not add to the buff time if it's at 2 or lower,
// to prevent buff duration showing when using infinite buff features from other mods.
if (Player.miscCounter % 2 == 0 && Player.buffTime[l] > 2)
Player.buffTime[l] += 1;
// Buffs will not go away when you die, to prevent wasting potions.
@@ -4011,7 +3998,7 @@ namespace CalamityMod.CalPlayer
// Apply defense damage
Player.statDefense -= currentDefenseDamage;
}
// Defense can never be reduced below zero, no matter what
@@ -4020,7 +4007,7 @@ namespace CalamityMod.CalPlayer
// Multiplicative defense reductions.
// These are done last because they need to be after the defense lower cap at 0.
if (fabsolVodka)
if (purpleHaze)
{
if (Player.statDefense > 0)
Player.statDefense -= (int)(Player.statDefense * 0.05);
@@ -4163,11 +4150,16 @@ namespace CalamityMod.CalPlayer
{
if (startMessageDisplayDelay == 0)
{
if (CalamityConfig.Instance.WikiStatusMessage)
if (CalamityClientConfig.Instance.WikiStatusMessage)
{
CalamityUtils.DisplayLocalizedText("Mods.CalamityMod.Misc.WikiStatus1");
CalamityUtils.DisplayLocalizedText("Mods.CalamityMod.Misc.WikiStatus2");
}
if (CalamityClientConfig.Instance.VCMMStatusMessage && !CalamityMod.Instance.VCMMAvailable)
{
CalamityUtils.DisplayLocalizedText("Mods.CalamityMod.Misc.VCMMStatus");
}
}
--startMessageDisplayDelay;
+1
View File
@@ -210,6 +210,7 @@ namespace CalamityMod.CalPlayer
cgn.IncreasedHeatEffects_Fireball = fireball;
cgn.IncreasedHeatEffects_CinnamonRoll = cinnamonRoll;
cgn.IncreasedHeatEffects_FlameWakerBoots = flameWakerBoots;
cgn.IncreasedHeatEffects_HellfireTreads = hellfireTreads;
cgn.IncreasedSicknessEffects_ToxicHeart = toxicHeart;
+13 -2
View File
@@ -1,7 +1,11 @@
using CalamityMod.Enums;
using CalamityMod.Items.Weapons.Ranged;
using CalamityMod.Particles;
using CalamityMod.Projectiles.Ranged;
using Microsoft.Xna.Framework;
using Terraria;
using Terraria.Audio;
using Terraria.ID;
namespace CalamityMod.CalPlayer.Dashes
{
@@ -12,8 +16,6 @@ namespace CalamityMod.CalPlayer.Dashes
public override bool IsOmnidirectional => true;
public bool dustOnce = true;
public override float CalculateDashSpeed(Player player) => 30f;
public override void OnDashEffects(Player player)
@@ -23,6 +25,15 @@ namespace CalamityMod.CalPlayer.Dashes
public override void MidDashEffects(Player player, ref float dashSpeed, ref float dashSpeedDecelerationFactor, ref float runSpeedDecelerationFactor)
{
Dust trail = Dust.NewDustPerfect(player.Center + Main.rand.NextVector2Unit() * 12f, DustID.RainbowTorch, -player.velocity * 0.2f, 150, Color.Aqua, 1.2f);
trail.noGravity = true;
Vector2 sparkVel = player.velocity.SafeNormalize(Vector2.UnitY) * Main.rand.NextFloat(-3f, -6f);
Color sparkColor = SpeedBlasterShot.GetColor(Main.rand.Next(5));
float scale = Main.rand.NextFloat(1f, 1.6f); // Bloom effect is double the spark's size
Particle spark = new CritSpark(player.Center + Main.rand.NextVector2Unit() * 12f, sparkVel, Color.White, sparkColor, scale, 15, 0.5f, scale * 2f);
GeneralParticleHandler.SpawnParticle(spark);
// Fall way, way, faster than usual.
player.maxFallSpeed = 50f;
+43
View File
@@ -0,0 +1,43 @@
using CalamityMod.Enums;
using CalamityMod.Items.Weapons.Ranged;
using CalamityMod.Particles;
using Microsoft.Xna.Framework;
using Terraria;
using Terraria.Audio;
using Terraria.ID;
namespace CalamityMod.CalPlayer.Dashes
{
public class SuperradiantSawDash : PlayerDashEffect
{
public static new string ID => "Superradiant Slaughterer";
public override DashCollisionType CollisionType => DashCollisionType.NoCollision;
public override bool IsOmnidirectional => true;
public override float CalculateDashSpeed(Player player) => 36f;
public override void MidDashEffects(Player player, ref float dashSpeed, ref float dashSpeedDecelerationFactor, ref float runSpeedDecelerationFactor)
{
Dust trail = Dust.NewDustPerfect(player.Center + Main.rand.NextVector2Unit() * 12f, DustID.RainbowTorch, -player.velocity * 0.2f, 150, Color.Lime, 1.2f);
trail.noGravity = true;
Vector2 sparkVel = player.velocity.SafeNormalize(Vector2.UnitY) * Main.rand.NextFloat(-3f, -6f);
Color sparkColor = Main.hslToRgb(Main.rand.NextFloat(), 1f, 0.25f);
float scale = Main.rand.NextFloat(1.2f, 2f); // Bloom effect is double the spark's size
Particle spark = new CritSpark(player.Center + Main.rand.NextVector2Unit() * 12f, sparkVel, Color.White, sparkColor, scale, 24, 0.5f, scale * 2f);
GeneralParticleHandler.SpawnParticle(spark);
// Fall way, way, faster than usual.
player.maxFallSpeed = 50f;
// Dash at a much, much faster speed than the default value.
dashSpeed = 24f;
runSpeedDecelerationFactor = 0.8f;
// Cooldown for dash.
player.Calamity().SpeedBlasterDashStarted = false;
player.Calamity().sBlasterDashActivated = false;
}
}
}
+1 -1
View File
@@ -17,7 +17,7 @@ namespace CalamityMod.CalPlayer.DrawLayers
return false;
Player drawPlayer = drawInfo.drawPlayer;
return !(drawPlayer.Calamity().auralisAuroraCooldown < 300 || drawPlayer.Calamity().auralisAuroraCooldown > 0);
return !(drawPlayer.Calamity().auralisAuroraCounter < 300 || drawPlayer.Calamity().auralisAuroraCounter > 1500);
}
protected override void Draw(ref PlayerDrawSet drawInfo)
@@ -23,9 +23,6 @@ namespace CalamityMod.CalPlayer.DrawLayers
if (drawPlayer.armor[10].type > ItemID.None)
headItem = drawPlayer.armor[10];
if (drawPlayer.Calamity().cocosFeather)
headItem = new Item(ModContent.ItemType<CocosFeather>());
if (ModContent.GetModItem(headItem.type) is IExtendedHat extendedHatDrawer)
{
string equipSlotName = extendedHatDrawer.EquipSlotName(drawPlayer) != "" ? extendedHatDrawer.EquipSlotName(drawPlayer) : headItem.ModItem.Name;
@@ -13,7 +13,7 @@ namespace CalamityMod.CalPlayer.DrawLayers
{
Player drawPlayer = drawInfo.drawPlayer;
CalamityPlayer modPlayer = drawPlayer.Calamity();
return drawPlayer.mount != null && (modPlayer.fab || modPlayer.crysthamyr || modPlayer.onyxExcavator);
return drawPlayer.mount != null && (modPlayer.crysthamyr || modPlayer.onyxExcavator);
}
protected override void Draw(ref PlayerDrawSet drawInfo)
@@ -0,0 +1,41 @@
using CalamityMod.Items.Accessories.Wings;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Graphics.PackedVector;
using ReLogic.Content;
using Terraria;
using Terraria.DataStructures;
using Terraria.ModLoader;
namespace CalamityMod.CalPlayer.DrawLayers
{
public class WingsofRebirthLayer : PlayerDrawLayer
{
public static Asset<Texture2D> yharwingTexture;
public override void Load()
{
yharwingTexture = ModContent.Request<Texture2D>("CalamityMod/Items/Accessories/Wings/WingsofRebirth_Wings_Real");
}
public override Position GetDefaultPosition() => new AfterParent(PlayerDrawLayers.Wings);
public override bool GetDefaultVisibility(PlayerDrawSet drawInfo) => drawInfo.drawPlayer.wings == EquipLoader.GetEquipSlot(Mod, "WingsofRebirth", EquipType.Wings);
protected override void Draw(ref PlayerDrawSet drawInfo)
{
Player drawPlayer = drawInfo.drawPlayer;
if (drawPlayer.dead)
return;
Texture2D texture = yharwingTexture.Value;
Vector2 Position = drawInfo.Position;
Vector2 pos = new Vector2((int)(Position.X - Main.screenPosition.X + (drawPlayer.width / 2) - (2 * drawPlayer.direction)), (int)(Position.Y - Main.screenPosition.Y + (drawPlayer.height / 2) - 2f * drawPlayer.gravDir));
Color lightColor = Lighting.GetColor((int)drawPlayer.Center.X / 16, (int)drawPlayer.Center.Y / 16, Color.White);
Color color = lightColor * (1 - drawInfo.shadow);
DrawData d = new DrawData(texture, pos, texture.Frame(1, 9, 0, drawInfo.drawPlayer.wingFrame), color, 0f, new Vector2(texture.Width / 2, texture.Height / 18), 1f, drawInfo.playerEffect, 0);
d.shader = drawInfo.drawPlayer.cWings;
drawInfo.DrawDataCache.Add(d);
}
}
}
@@ -1,46 +0,0 @@
using System.Collections.Generic;
using Microsoft.Xna.Framework;
using Terraria;
using Terraria.DataStructures;
using Terraria.ModLoader;
namespace CalamityMod.CalPlayer.DrawLayers
{
public class YanmeiKnifeTrail : PlayerDrawLayer
{
public override Position GetDefaultPosition() => new AfterParent(PlayerDrawLayers.BackAcc);
public override bool GetDefaultVisibility(PlayerDrawSet drawInfo)
{
Player drawPlayer = drawInfo.drawPlayer;
if (drawInfo.shadow != 0f || drawPlayer.dead)
return false;
return drawPlayer.Calamity().kamiBoost;
}
protected override void Draw(ref PlayerDrawSet drawInfo)
{
Player drawPlayer = drawInfo.drawPlayer;
List<DrawData> existingDrawData = drawInfo.DrawDataCache;
for (int i = 0; i < drawPlayer.Calamity().OldPositions.Length; i++)
{
float completionRatio = i / (float)drawPlayer.Calamity().OldPositions.Length;
float scale = MathHelper.Lerp(1f, 0.5f, completionRatio);
float opacity = MathHelper.Lerp(0.25f, 0.08f, completionRatio);
List<DrawData> afterimages = new List<DrawData>();
for (int j = 0; j < existingDrawData.Count; j++)
{
var drawData = existingDrawData[j];
drawData.position = existingDrawData[j].position - drawPlayer.position + drawPlayer.oldPosition;
drawData.color = Color.Cyan * opacity;
drawData.color.G = (byte)(drawData.color.G * 1.6);
drawData.color.B = (byte)(drawData.color.B * 1.2);
drawData.scale = new Vector2(scale);
afterimages.Add(drawData);
}
drawInfo.DrawDataCache.InsertRange(0, afterimages);
}
}
}
}
+2 -2
View File
@@ -19,7 +19,7 @@ namespace CalamityMod
// Config based conditions
//
public static readonly Condition PotionSellingConfig = Create("PotionConfig", () => CalamityConfig.Instance.PotionSelling);
public static readonly Condition PotionSellingConfig = Create("PotionConfig", () => CalamityServerConfig.Instance.PotionSelling);
//
// Player conditions
@@ -56,7 +56,7 @@ namespace CalamityMod
public static readonly Condition DownedAquaticScourge = Create("Drops.DownedAS", () => DownedBossSystem.downedAquaticScourge);
public static readonly Condition DownedBrimstoneElemental = Create("Drops.DownedBrim", () => DownedBossSystem.downedBrimstoneElemental);
public static readonly Condition DownedCalamitasClone = Create("Drops.DownedCal", () => DownedBossSystem.downedCalamitasClone);
public static readonly Condition DownedLeviathan = Create("Drops.DownedLebi", () => DownedBossSystem.downedLeviathan);
public static readonly Condition DownedLeviathan = Create("Drops.DownedLevi", () => DownedBossSystem.downedLeviathan);
public static readonly Condition DownedAstrumAureus = Create("Drops.DownedAureus", () => DownedBossSystem.downedAstrumAureus);
public static readonly Condition DownedPlaguebringer = Create("Drops.DownedPBG", () => DownedBossSystem.downedPlaguebringer);
public static readonly Condition DownedRavager = Create("Drops.DownedRav", () => DownedBossSystem.downedRavager);
+92 -73
View File
@@ -5,25 +5,21 @@ using CalamityMod.UI.DraedonsArsenal;
using CalamityMod.UI.Rippers;
using CalamityMod.UI.SulphurousWaterMeter;
using Terraria;
using Terraria.Localization;
using Terraria.ModLoader.Config;
namespace CalamityMod
{
[BackgroundColor(49, 32, 36, 216)]
public class CalamityConfig : ModConfig
public class CalamityClientConfig : ModConfig
{
public static CalamityConfig Instance;
// TODO -- Not all Calamity config settings should be considered client side.
// There are many configs which are server side and should stay that way.
public static CalamityClientConfig Instance;
public override ConfigScope Mode => ConfigScope.ClientSide;
public override bool AcceptClientChanges(ModConfig pendingConfig, int whoAmI, ref string message) => true;
// Clamps values that would cause ugly problems if loaded directly without sanitization.
[OnDeserialized]
internal void ClampValues(StreamingContext context)
{
BossHealthBoost = Utils.Clamp(BossHealthBoost, MinBossHealthBoost, MaxBossHealthBoost);
RipperMeterShake = Utils.Clamp(RipperMeterShake, MinMeterShake, MaxMeterShake);
ParticleLimit = (int)Utils.Clamp(ParticleLimit, MinParticleLimit, MaxParticleLimit);
}
@@ -48,10 +44,6 @@ namespace CalamityMod
[DefaultValue(5000)]
public int ParticleLimit { get; set; }
[BackgroundColor(192, 54, 64, 192)]
[DefaultValue(false)]
public bool BossesStopWeather { get; set; }
[BackgroundColor(192, 54, 64, 192)]
[SliderColor(224, 165, 56, 128)]
[Range(0f, 10f)]
@@ -70,6 +62,10 @@ namespace CalamityMod
[DefaultValue(true)]
public bool WikiStatusMessage { get; set; }
[BackgroundColor(192, 54, 64, 192)]
[DefaultValue(true)]
public bool VCMMStatusMessage { get; set; }
[BackgroundColor(192, 54, 64, 192)]
[DefaultValue(true)]
public bool ShopNewAlert { get; set; }
@@ -102,6 +98,33 @@ namespace CalamityMod
[DefaultValue(true)]
public bool StealthMeter { get; set; }
[BackgroundColor(192, 54, 64, 192)]
[DefaultValue(true)]
public bool ChargeMeter { get; set; }
private const float MinMeterShake = 0f;
private const float MaxMeterShake = 4f;
[BackgroundColor(192, 54, 64, 192)]
[SliderColor(224, 165, 56, 128)]
[Range(MinMeterShake, MaxMeterShake)]
[Increment(1f)]
[DrawTicks]
[DefaultValue(2f)]
public float RipperMeterShake { get; set; }
[BackgroundColor(192, 54, 64, 192)]
[DefaultValue(false)]
public bool SpeedrunTimer { get; set; }
[BackgroundColor(192, 54, 64, 192)]
[DefaultValue(true)]
public bool FlightBar { get; set; }
#endregion
#region Meter Positions
[Header("MeterPositions")]
[BackgroundColor(192, 54, 64, 192)]
[SliderColor(224, 165, 56, 128)]
[Range(0f, 100f)]
@@ -126,10 +149,6 @@ namespace CalamityMod
[DefaultValue(SulphurousWaterMeterUI.DefaultPosY)]
public float SulphuricWaterMeterPosY { get; set; }
[BackgroundColor(192, 54, 64, 192)]
[DefaultValue(true)]
public bool ChargeMeter { get; set; }
[BackgroundColor(192, 54, 64, 192)]
[SliderColor(224, 165, 56, 128)]
[Range(0f, 100f)]
@@ -143,8 +162,28 @@ namespace CalamityMod
public float ChargeMeterPosY { get; set; }
[BackgroundColor(192, 54, 64, 192)]
[DefaultValue(false)]
public bool SpeedrunTimer { get; set; }
[SliderColor(224, 165, 56, 128)]
[Range(0f, 100f)]
[DefaultValue(RipperUI.DefaultRagePosX)]
public float RageMeterPosX { get; set; }
[BackgroundColor(192, 54, 64, 192)]
[SliderColor(224, 165, 56, 128)]
[Range(0f, 100f)]
[DefaultValue(RipperUI.DefaultRagePosY)]
public float RageMeterPosY { get; set; }
[BackgroundColor(192, 54, 64, 192)]
[SliderColor(224, 165, 56, 128)]
[Range(0f, 100f)]
[DefaultValue(RipperUI.DefaultAdrenPosX)]
public float AdrenalineMeterPosX { get; set; }
[BackgroundColor(192, 54, 64, 192)]
[SliderColor(224, 165, 56, 128)]
[Range(0f, 100f)]
[DefaultValue(RipperUI.DefaultAdrenPosY)]
public float AdrenalineMeterPosY { get; set; }
[BackgroundColor(192, 54, 64, 192)]
[SliderColor(224, 165, 56, 128)]
@@ -158,10 +197,6 @@ namespace CalamityMod
[DefaultValue(SpeedrunTimerUI.DefaultTimerPosY)]
public float SpeedrunTimerPosY { get; set; }
[BackgroundColor(192, 54, 64, 192)]
[DefaultValue(true)]
public bool FlightBar { get; set; }
[BackgroundColor(192, 54, 64, 192)]
[SliderColor(224, 165, 56, 128)]
[Range(0f, 100f)]
@@ -180,15 +215,7 @@ namespace CalamityMod
[BackgroundColor(192, 54, 64, 192)]
[DefaultValue(true)]
public bool Interlude1 { get; set; }
[BackgroundColor(192, 54, 64, 192)]
[DefaultValue(true)]
public bool Interlude2 { get; set; }
[BackgroundColor(192, 54, 64, 192)]
[DefaultValue(true)]
public bool Interlude3 { get; set; }
public bool Interludes { get; set; }
[BackgroundColor(192, 54, 64, 192)]
[DefaultValue(true)]
@@ -202,6 +229,35 @@ namespace CalamityMod
[BackgroundColor(192, 54, 64, 192)]
[DefaultValue(true)]
public bool FasterFallHotkey { get; set; }
#endregion
}
[BackgroundColor(49, 32, 36, 216)]
public class CalamityServerConfig : ModConfig
{
public static CalamityServerConfig Instance;
public override ConfigScope Mode => ConfigScope.ServerSide;
public override bool AcceptClientChanges(ModConfig pendingConfig, int whoAmI, ref NetworkText message)
{
if (whoAmI == 0)
return true;
if (whoAmI != 0)
{
message = CalamityUtils.GetText("Configs.CalamityServerConfig.Denied").ToNetworkText();
return false;
}
return false;
}
// Clamp values that would cause ugly problems if loaded directly without sanitization.
[OnDeserialized]
internal void ClampValues(StreamingContext context)
{
BossHealthBoost = Utils.Clamp(BossHealthBoost, MinBossHealthBoost, MaxBossHealthBoost);
}
#region General Gameplay Changes
[Header("Gameplay")]
[BackgroundColor(192, 54, 64, 192)]
[DefaultValue(true)]
@@ -253,11 +309,14 @@ namespace CalamityMod
[DrawTicks]
[DefaultValue(MinBossHealthBoost)]
public float BossHealthBoost { get; set; }
[BackgroundColor(192, 54, 64, 192)]
[DefaultValue(false)]
public bool BossesStopWeather { get; set; }
#endregion
#region Default Player Stat Boosts
[Header("BaseBoosts")]
#region Default Player Stat Boosts
[BackgroundColor(192, 54, 64, 192)]
[DefaultValue(true)]
public bool DefaultDashEnabled { get; set; }
@@ -279,9 +338,8 @@ namespace CalamityMod
public bool FasterTilePlacement { get; set; }
#endregion
#region Expert and Master Mode Changes
[Header("ExpertMaster")]
#region Expert and Master Mode Changes
[BackgroundColor(192, 54, 64, 192)]
[DefaultValue(true)]
public bool NerfExpertDebuffs { get; set; }
@@ -298,44 +356,5 @@ namespace CalamityMod
[DefaultValue(false)]
public bool ForceTownSafety { get; set; }
#endregion
#region Revengeance Mode Changes
[Header("Revengeance")]
private const float MinMeterShake = 0f;
private const float MaxMeterShake = 4f;
[BackgroundColor(192, 54, 64, 192)]
[SliderColor(224, 165, 56, 128)]
[Range(MinMeterShake, MaxMeterShake)]
[Increment(1f)]
[DrawTicks]
[DefaultValue(2f)]
public float RipperMeterShake { get; set; }
[BackgroundColor(192, 54, 64, 192)]
[SliderColor(224, 165, 56, 128)]
[Range(0f, 100f)]
[DefaultValue(RipperUI.DefaultRagePosX)]
public float RageMeterPosX { get; set; }
[BackgroundColor(192, 54, 64, 192)]
[SliderColor(224, 165, 56, 128)]
[Range(0f, 100f)]
[DefaultValue(RipperUI.DefaultRagePosY)]
public float RageMeterPosY { get; set; }
[BackgroundColor(192, 54, 64, 192)]
[SliderColor(224, 165, 56, 128)]
[Range(0f, 100f)]
[DefaultValue(RipperUI.DefaultAdrenPosX)]
public float AdrenalineMeterPosX { get; set; }
[BackgroundColor(192, 54, 64, 192)]
[SliderColor(224, 165, 56, 128)]
[Range(0f, 100f)]
[DefaultValue(RipperUI.DefaultAdrenPosY)]
public float AdrenalineMeterPosY { get; set; }
#endregion
}
}
+740 -669
View File
File diff suppressed because it is too large. Load diff
+45 -12
View File
@@ -55,13 +55,13 @@ using CalamityMod.UI;
using CalamityMod.UI.CalamitasEnchants;
using CalamityMod.UI.DraedonsArsenal;
using CalamityMod.UI.Rippers;
using CalamityMod.Waters;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using ReLogic.Content;
using Terraria;
using Terraria.GameContent;
using Terraria.GameContent.Dyes;
using Terraria.GameContent.Liquid;
using Terraria.Graphics.Effects;
using Terraria.Graphics.Shaders;
using Terraria.ID;
@@ -108,14 +108,25 @@ namespace CalamityMod
// Destroyer glowmasks
public static Asset<Texture2D>[] DestroyerGlowmasks = new Asset<Texture2D>[3];
// Holds the Texture Arrays for all the lava textures.
// These are used for the lava styles. They are seperate from Textureasset.Instance._liquidTexture as they will conflict with ModWaterStyle
// Can hold up to 255 lava styles (more than enough) (excluding the normal lava texture which is liquidTexture 1)
public struct LavaTextures
{
public static Asset<Texture2D>[] liquid = new Asset<Texture2D>[1];
public static Asset<Texture2D>[] slope = new Asset<Texture2D>[1];
public static Asset<Texture2D>[] block = new Asset<Texture2D>[1];
public static Asset<Texture2D>[] fall = new Asset<Texture2D>[1];
}
public static int LavaStyle;
public static float[] lavaAlpha = new float[1];
// Wall of Flesh glowmasks
public static Asset<Texture2D> WallOfFleshEyeGlowmask;
public static Asset<Texture2D> WallOfFleshDemonSickleTexture;
// Master Rev+ Skeletron Prime
public static Asset<Texture2D> ChadPrime;
public static Asset<Texture2D> ChadPrimeEyeGlowmask;
// DR data structure
public static SortedDictionary<int, float> DRValues;
@@ -137,8 +148,14 @@ namespace CalamityMod
internal Mod musicMod = null;
internal bool MusicAvailable => musicMod is not null;
// This is Vanilla Calamity Mod Music, internally named UnCalamityModMusic.
// VCMM is an official music add-on. Unlike the main music mod, it is not a dependency.
internal Mod vcmm = null;
internal bool VCMMAvailable => vcmm is not null;
// Please keep this in alphabetical order so it's easy to read
internal Mod ancientsAwakened = null;
internal Mod biomeLava = null;
internal Mod bossChecklist = null;
internal Mod coloredDamageTypes = null;
internal Mod crouchMod = null;
@@ -168,8 +185,12 @@ namespace CalamityMod
// If any of these mods aren't loaded, it will simply keep them as null.
musicMod = null;
ModLoader.TryGetMod("CalamityModMusic", out musicMod);
vcmm = null;
ModLoader.TryGetMod("UnCalamityModMusic", out vcmm);
ancientsAwakened = null;
ModLoader.TryGetMod("AAMod", out ancientsAwakened);
biomeLava = null;
ModLoader.TryGetMod("BiomeLava", out biomeLava);
bossChecklist = null;
ModLoader.TryGetMod("BossChecklist", out bossChecklist);
coloredDamageTypes = null;
@@ -243,7 +264,10 @@ namespace CalamityMod
SetupVanillaDR();
SetupBossKillTimes();
SchematicManager.Load();
CustomLavaManagement.Load();
//lava
WeakReferenceSupport.LavaStytleToBiomeLava();
Attunement.Load();
BalancingChangesManager.Load();
BaseIdleHoldoutProjectile.LoadAll();
@@ -301,14 +325,17 @@ namespace CalamityMod
DestroyerGlowmasks[1] = ModContent.Request<Texture2D>("CalamityMod/ExtraTextures/VanillaBossGlowmasks/DestroyerBodyGlow", AssetRequestMode.AsyncLoad);
DestroyerGlowmasks[2] = ModContent.Request<Texture2D>("CalamityMod/ExtraTextures/VanillaBossGlowmasks/DestroyerTailGlow", AssetRequestMode.AsyncLoad);
// Lava Texture
LavaTextures.liquid[0] = LiquidRenderer.Instance._liquidTextures[1];
LavaTextures.slope[0] = TextureAssets.LiquidSlope[1];
LavaTextures.block[0] = TextureAssets.Liquid[1];
var waterfallTexture = (Asset<Texture2D>[])typeof(WaterfallManager).GetField("waterfallTexture", BindingFlags.Instance | BindingFlags.NonPublic | BindingFlags.Public).GetValue(Main.instance.waterfallManager);
LavaTextures.fall[0] = waterfallTexture[1];
// Wall of Flesh glowmasks
WallOfFleshEyeGlowmask = ModContent.Request<Texture2D>("CalamityMod/ExtraTextures/VanillaBossGlowmasks/WallOfFleshEyeTelegraphGlow", AssetRequestMode.AsyncLoad);
WallOfFleshDemonSickleTexture = ModContent.Request<Texture2D>("CalamityMod/Projectiles/Melee/ForbiddenOathbladeProjectile", AssetRequestMode.AsyncLoad);
// Master Rev+ Skeletron Prime textures
ChadPrime = ModContent.Request<Texture2D>("CalamityMod/ExtraTextures/ChadPrime", AssetRequestMode.AsyncLoad);
ChadPrimeEyeGlowmask = ModContent.Request<Texture2D>("CalamityMod/ExtraTextures/ChadPrimeHeadGlow", AssetRequestMode.AsyncLoad);
// TODO -- Sky shaders should probably be loaded in a ModSystem
Filters.Scene["CalamityMod:DevourerofGodsHead"] = new Filter(new DoGScreenShaderData("FilterMiniTower").UseColor(0.4f, 0.1f, 1.0f).UseOpacity(0.5f), EffectPriority.VeryHigh);
SkyManager.Instance["CalamityMod:DevourerofGodsHead"] = new DoGSky();
@@ -414,8 +441,10 @@ namespace CalamityMod
public override void Unload()
{
musicMod = null;
vcmm = null;
ancientsAwakened = null;
biomeLava = null;
bossChecklist = null;
coloredDamageTypes = null;
crouchMod = null;
@@ -447,12 +476,12 @@ namespace CalamityMod
NPCStats.Unload();
CalamityGlobalItem.UnloadTweaks();
CalamityGlobalProjectile.UnloadTweaks();
FramedGlowMask.UnloadTexCache();
PopupGUIManager.UnloadGUIs();
InvasionProgressUIManager.UnloadGUIs();
BossRushEvent.Unload();
SchematicManager.Unload();
CustomLavaManagement.Unload();
CooldownRegistry.Unload();
PlayerDashManager.Unload();
@@ -515,7 +544,7 @@ namespace CalamityMod
#endregion Render Target Management
#region Force ModConfig save (Reflection)
internal static void SaveConfig(CalamityConfig cfg)
internal static void SaveConfig(CalamityClientConfig cfg)
{
// There is no current way to manually save a mod configuration file in tModLoader.
// The method which saves mod config files is private in ConfigManager, so reflection is used to invoke it.
@@ -757,6 +786,10 @@ namespace CalamityMod
// This function returns an available Calamity Music Mod track, or null if the Calamity Music Mod is not available.
public int? GetMusicFromMusicMod(string songFilename) => MusicAvailable ? MusicLoader.GetMusicSlot(musicMod, "Sounds/Music/" + songFilename) : null;
// This function returns an available VCMM track, or null if VCMM is not available.
// Unlike the main Music Mod, VCMM is hierarchical.
public int? GetMusicFromVCMM(string songPath) => VCMMAvailable ? MusicLoader.GetMusicSlot(vcmm, "Assets/" + songPath) : null;
#endregion
#region Mod Support
+14
View File
@@ -0,0 +1,14 @@
<?xml version="1.0" encoding="utf-8"?>
<Project Sdk="Microsoft.NET.Sdk">
<Import Project="..\tModLoader.targets" />
<PropertyGroup>
<AssemblyName>CalamityMod</AssemblyName>
<TargetFramework>net8.0</TargetFramework>
<PlatformTarget>AnyCPU</PlatformTarget>
<LangVersion>latest</LangVersion>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="tModLoader.CodeAssist" Version="0.1.5" />
</ItemGroup>
</Project>
+62 -1
View File
@@ -193,6 +193,29 @@ namespace CalamityMod
}
break;
case CalamityModMessageType.SyncNPCPosAndRotOnly:
npcIndex = reader.ReadByte();
Vector2 position = reader.ReadVector2();
float rotation = (float)reader.ReadHalf(); //rotation unit is radian (-π/2 ≤ rotation ≤ π/2) so Half precision should works
if (npcIndex >= Main.maxNPCs)
break;
npc = Main.npc[npcIndex];
npc.position = position;
npc.rotation = rotation;
if (Main.dedServ)
{
ModPacket packet = CalamityMod.Instance.GetPacket();
packet.Write((byte)CalamityModMessageType.SyncNPCPosAndRotOnly);
packet.Write((byte)npcIndex);
packet.WriteVector2(position);
packet.Write((Half)rotation);
packet.Send(ignoreClient: whoAmI);
}
break;
//
// Tile Entities
//
@@ -312,6 +335,39 @@ namespace CalamityMod
MusicEventSystem.ReceiveSyncResponse(reader);
break;
//
// Bandit refund syncs
//
case CalamityModMessageType.SomeoneGotScammedByTinkerer:
int scammedOne = reader.ReadByte();
int stolen = reader.Read7BitEncodedInt();
CalamityWorld.MoneyStolenByBandit += stolen;
CalamityWorld.Reforges++;
// Broadcast back for tragic event
// WorldSync DO sync the MoneyStolenByBandit and Refores variable, But spamming SyncWorld is not a ideal action
if (Main.dedServ)
{
ModPacket packet = CalamityMod.Instance.GetPacket();
packet.Write((byte)CalamityModMessageType.SomeoneGotScammedByTinkerer);
packet.Write((byte)scammedOne);
packet.Write7BitEncodedInt(stolen);
packet.Send(ignoreClient: scammedOne);
}
break;
case CalamityModMessageType.WantToRefundReforges:
int requester = reader.ReadByte();
// Only Server should handle this action!
if (!Main.dedServ)
break;
int banditIdx = NPC.FindFirstNPC(ModContent.NPCType<THIEF>());
if (banditIdx == -1)
break;
NPC bandit = Main.npc[banditIdx];
if (bandit == null || !bandit.active)
break;
THIEF.DoRefund(bandit);
break;
//
// Default case: with no idea how long the packet is, we can't safely read data.
// Throw an exception now instead of allowing the network stream to corrupt.
@@ -400,6 +456,7 @@ namespace CalamityMod
// General things for entities
SpawnNPCOnPlayer,
SyncNPCMotionDataToServer,
SyncNPCPosAndRotOnly,
// Tile Entities
PowerCellFactory,
@@ -437,6 +494,10 @@ namespace CalamityMod
// Music events
MusicEventSyncRequest,
MusicEventSyncResponse
MusicEventSyncResponse,
// Bandit Reforge Refund
SomeoneGotScammedByTinkerer,
WantToRefundReforges
}
}
+1 -1
View File
@@ -8,7 +8,7 @@ namespace CalamityMod.Cooldowns
{
public static new string ID => "ChaosState";
public override bool ShouldDisplay => CalamityConfig.Instance.VanillaCooldownDisplay && instance.player.chaosState;
public override bool ShouldDisplay => CalamityClientConfig.Instance.VanillaCooldownDisplay && instance.player.chaosState;
public override LocalizedText DisplayName => CalamityUtils.GetText($"UI.Cooldowns.{ID}");
public override string Texture => "CalamityMod/Cooldowns/ChaosState" + skinTexture;
public override Color OutlineColor => outlineColor;
+1 -1
View File
@@ -7,7 +7,7 @@ namespace CalamityMod.Cooldowns
public class PotionSickness : CooldownHandler
{
public static new string ID => "PotionSickness";
public override bool ShouldDisplay => CalamityConfig.Instance.VanillaCooldownDisplay && instance.player.potionDelay > 0;
public override bool ShouldDisplay => CalamityClientConfig.Instance.VanillaCooldownDisplay && instance.player.potionDelay > 0;
public override LocalizedText DisplayName => CalamityUtils.GetText($"UI.Cooldowns.{ID}");
public override string Texture => "CalamityMod/Cooldowns/PotionSickness";
public override Color OutlineColor => new Color(255, 142, 165);
+18
View File
@@ -0,0 +1,18 @@
using Microsoft.Xna.Framework;
using System;
using Terraria;
using Terraria.Localization;
namespace CalamityMod.Cooldowns
{
public class SuperradiantSawBoost : CooldownHandler
{
public static new string ID => "SuperradiantSawBoost";
public override bool ShouldDisplay => true;
public override LocalizedText DisplayName => CalamityUtils.GetText($"UI.Cooldowns.{ID}");
public override string Texture => "CalamityMod/Cooldowns/SuperradiantSawBoost";
public override Color OutlineColor => new Color(207, 207, 207);
public override Color CooldownStartColor => new Color(122, 240, 58);
public override Color CooldownEndColor => new Color(32, 186, 171);
}
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 443 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 213 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 175 B

-10
View File
@@ -213,7 +213,6 @@ namespace CalamityMod
{ ModContent.NPCType<BrimstoneElemental>(), 0.8 },
{ NPCID.SkeletronPrime, 0.85 },
{ ModContent.NPCType<SkeletronPrime2>(), 0.85 },
{ NPCID.PrimeCannon, 0.85 },
{ NPCID.PrimeLaser, 0.85 },
{ NPCID.PrimeSaw, 0.85 },
@@ -416,12 +415,6 @@ namespace CalamityMod
102, // 204 while spinning
119, // 238 while spinning
153 } }, // 306 while spinning
{ ModContent.NPCType<SkeletronPrime2>(), new int[] {
50, // 100 while spinning
85, // 170 while spinning
102, // 204 while spinning
119, // 238 while spinning
153 } }, // 306 while spinning
{ NPCID.PrimeVice, new int[] { 70, 102, 136, 170, 255 } },
{ NPCID.PrimeSaw, new int[] { 70, 102, 136, 170, 255 } },
{ NPCID.PrimeCannon, new int[] { 30, 51, 68, 85, 102 } },
@@ -663,9 +656,6 @@ namespace CalamityMod
{ new Tuple<int, int>(NPCID.SkeletronPrime, ProjectileID.Skull), new int[] { 50, 108, 124, 140, 210 } },
{ new Tuple<int, int>(NPCID.SkeletronPrime, ProjectileID.DeathLaser), new int[] { 50, 108, 124, 140, 210 } },
{ new Tuple<int, int>(NPCID.SkeletronPrime, ProjectileID.RocketSkeleton), new int[] { 60, 120, 148, 176, 264 } },
{ new Tuple<int, int>(ModContent.NPCType<SkeletronPrime2>(), ProjectileID.Skull), new int[] { 50, 108, 124, 140, 210 } },
{ new Tuple<int, int>(ModContent.NPCType<SkeletronPrime2>(), ProjectileID.BombSkeletronPrime), new int[] { 80, 160, 180, 200, 300 } },
{ new Tuple<int, int>(ModContent.NPCType<SkeletronPrime2>(), ProjectileID.FrostBeam), new int[] { 50, 108, 124, 140, 210 } },
{ new Tuple<int, int>(NPCID.PrimeCannon, ProjectileID.RocketSkeleton), new int[] { 60, 120, 148, 176, 264 } },
{ new Tuple<int, int>(NPCID.PrimeCannon, ProjectileID.BombSkeletronPrime), new int[] { 80, 160, 0, 0, 300 } },
{ new Tuple<int, int>(NPCID.PrimeLaser, ProjectileID.DeathLaser), new int[] { 50, 108, 124, 140, 210 } },
+9
View File
@@ -0,0 +1,9 @@
using Terraria;
using Terraria.ModLoader;
namespace CalamityMod.Dusts.WaterSplash
{
public class AstralSplash : SplashDust
{
}
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 245 B

+178
View File
@@ -0,0 +1,178 @@
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics.PackedVector;
using System;
using Terraria;
using Terraria.ModLoader;
namespace CalamityMod.Dusts.WaterSplash
{
public class CragsLavaSplash : ModDust
{
public override void OnSpawn(Dust dust)
{
dust.velocity *= 0.1f;
dust.velocity.Y = -0.5f;
}
public override bool Update(Dust dust)
{
if (dust.scale > 10f)
{
dust.active = false;
}
Dust.lavaBubbles++;
dust.position += dust.velocity;
if (!dust.noGravity)
{
dust.velocity.Y += 0.1f;
}
if (dust.noGravity)
{
dust.scale += 0.03f;
if (dust.scale < 1f)
{
dust.velocity.Y += 0.075f;
}
dust.velocity.X *= 1.08f;
if (dust.velocity.X > 0f)
{
dust.rotation += 0.01f;
}
else
{
dust.rotation -= 0.01f;
}
float num109 = dust.scale * 0.6f;
if (num109 > 1f)
{
num109 = 1f;
}
Lighting.AddLight((int)(dust.position.X / 16f), (int)(dust.position.Y / 16f + 1f), num109 * (2.5f / 4), num109 * (1.1f / 4), num109 * (0.1f / 4));
}
else
{
if (!Collision.WetCollision(new Vector2(dust.position.X, dust.position.Y - 8f), 4, 4))
{
dust.scale = 0f;
}
else
{
dust.alpha += Main.rand.Next(2);
if (dust.alpha > 255)
{
dust.scale = 0f;
}
dust.velocity.Y = -0.5f;
dust.alpha++;
dust.scale -= 0.01f;
dust.velocity.Y = -0.2f;
dust.velocity.X += (float)Main.rand.Next(-10, 10) * 0.002f;
if ((double)dust.velocity.X < -0.25)
{
dust.velocity.X = -0.25f;
}
if ((double)dust.velocity.X > 0.25)
{
dust.velocity.X = 0.25f;
}
}
float num3 = dust.scale * 0.3f + 0.4f;
if (num3 > 1f)
{
num3 = 1f;
}
Lighting.AddLight((int)(dust.position.X / 16f), (int)(dust.position.Y / 16f), num3 * (2.5f / 4), num3 * (1.1f / 4), num3 * (0.1f / 4));
}
dust.rotation += dust.velocity.X * 0.5f;
if (dust.fadeIn > 0f && dust.fadeIn < 100f)
{
dust.scale += 0.03f;
if (dust.scale > dust.fadeIn)
{
dust.fadeIn = 0f;
}
}
dust.scale -= 0.01f;
if (dust.noGravity)
{
dust.velocity *= 0.92f;
if (dust.fadeIn == 0f)
{
dust.scale -= 0.04f;
}
}
if (dust.position.Y > Main.screenPosition.Y + (float)Main.screenHeight)
{
dust.active = false;
}
float num17 = 0.1f;
if ((double)Dust.dCount == 0.5)
{
dust.scale -= 0.001f;
}
if ((double)Dust.dCount == 0.6)
{
dust.scale -= 0.0025f;
}
if ((double)Dust.dCount == 0.7)
{
dust.scale -= 0.005f;
}
if ((double)Dust.dCount == 0.8)
{
dust.scale -= 0.01f;
}
if ((double)Dust.dCount == 0.9)
{
dust.scale -= 0.02f;
}
if ((double)Dust.dCount == 0.5)
{
num17 = 0.11f;
}
if ((double)Dust.dCount == 0.6)
{
num17 = 0.13f;
}
if ((double)Dust.dCount == 0.7)
{
num17 = 0.16f;
}
if ((double)Dust.dCount == 0.8)
{
num17 = 0.22f;
}
if ((double)Dust.dCount == 0.9)
{
num17 = 0.25f;
}
if (dust.scale < num17)
{
dust.active = false;
}
return false;
}
public override Color? GetAlpha(Dust dust, Color lightColor)
{
float num = (float)(255 - dust.alpha) / 255f;
int num4;
int num3;
int num2;
num = (num + 3f) / 4f;
num4 = (int)((int)lightColor.R * num);
num3 = (int)((int)lightColor.G * num);
num2 = (int)((int)lightColor.B * num);
int num6 = lightColor.A - dust.alpha;
if (num6 < 0)
{
num6 = 0;
}
if (num6 > 255)
{
num6 = 255;
}
return new Color(num4, num3, num2, num6);
}
}
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 275 B

+9
View File
@@ -0,0 +1,9 @@
using Terraria;
using Terraria.ModLoader;
namespace CalamityMod.Dusts.WaterSplash
{
public class MiddleAbyssSplash : SplashDust
{
}
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 246 B

+20
View File
@@ -0,0 +1,20 @@
using Terraria;
using Terraria.ModLoader;
namespace CalamityMod.Dusts.WaterSplash
{
public abstract class SplashDust : ModDust
{
public override void SetStaticDefaults()
{
UpdateType = 33;
}
public override void OnSpawn(Dust dust)
{
dust.alpha = 170;
dust.velocity *= 0.5f;
dust.velocity.Y += 1f;
}
}
}
@@ -0,0 +1,9 @@
using Terraria;
using Terraria.ModLoader;
namespace CalamityMod.Dusts.WaterSplash
{
public class SulphuricDepthsSplash : SplashDust
{
}
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 245 B

+9
View File
@@ -0,0 +1,9 @@
using Terraria;
using Terraria.ModLoader;
namespace CalamityMod.Dusts.WaterSplash
{
public class SulphuricSplash : SplashDust
{
}
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 245 B

+9
View File
@@ -0,0 +1,9 @@
using Terraria;
using Terraria.ModLoader;
namespace CalamityMod.Dusts.WaterSplash
{
public class SunkenSeaSplash : SplashDust
{
}
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 241 B

+9
View File
@@ -0,0 +1,9 @@
using Terraria;
using Terraria.ModLoader;
namespace CalamityMod.Dusts.WaterSplash
{
public class UpperAbyssSplash : SplashDust
{
}
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 245 B

+9
View File
@@ -0,0 +1,9 @@
using Terraria;
using Terraria.ModLoader;
namespace CalamityMod.Dusts.WaterSplash
{
public class VoidSplash : SplashDust
{
}
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 246 B

+16 -4
View File
@@ -17,9 +17,9 @@ namespace CalamityMod.Effects
internal static Effect AstralFogShader;
//
// All below shaders created by Dominic Karma
// All below shaders created by Lucille Karma
//
#region Dominic's Shaders
#region Lucille's Shaders
// The Dance of Light's Blinding Light
internal static Effect DanceOfLightBlindingShader;
@@ -90,7 +90,7 @@ namespace CalamityMod.Effects
// Used by Dom's Bladecrest Oathsword. Appears to govern the swing animation.
internal static Effect LocalLinearTransformationShader;
// UNUSED -- Probably leftover from Dominic's experiments with applying shaders to primitives (arbitrary GPU-rendered triangles)
// UNUSED -- Probably leftover from Lucille's experiments with applying shaders to primitives (arbitrary GPU-rendered triangles)
internal static Effect BasicPrimitiveShader;
// Artemis Ohio Beam. Also used by get fixed boi Nuclear Terror's "G-FUEL BEAM"
@@ -137,6 +137,12 @@ namespace CalamityMod.Effects
// Used to render the results of Navier-Stokes fluid simulations.
internal static Effect FluidShaders;
// Used by projectiles fired by the Sylvestaff.
internal static Effect SylvestaffProjectileShader;
// Used by the ribbons on the Sylvestaff.
internal static Effect SylvestaffRibbonShader;
#endregion
//
@@ -243,7 +249,7 @@ namespace CalamityMod.Effects
var astralPassReg = new AstralScreenShaderData(new Ref<Effect>(AstralFogShader), "AstralPass").UseColor(0.18f, 0.08f, 0.24f);
RegisterSceneFilter(astralPassReg, "Astral", EffectPriority.VeryHigh);
#region Loading Dominic's Shaders
#region Loading Lucille's Shaders
DanceOfLightBlindingShader = LoadShader("LightBurstShader");
RegisterScreenShader(DanceOfLightBlindingShader, "BurstPass", "LightBurst");
@@ -360,6 +366,12 @@ namespace CalamityMod.Effects
// This shader is not registered with the game but is invoked directly to render the results of fluid simulation.
FluidShaders = LoadShader("FluidShaders");
SylvestaffProjectileShader = LoadShader("SylvestaffProjectileShader");
RegisterMiscShader(SylvestaffProjectileShader, "TrailPass", "SylvestaffProjectile");
SylvestaffRibbonShader = LoadShader("SylvestaffRibbonShader");
RegisterMiscShader(SylvestaffRibbonShader, "AutoloadPass", "SylvestaffRibbon");
#endregion
#region Loading Iban's Shaders
+76
View File
@@ -0,0 +1,76 @@
sampler uImage0 : register(s0);
sampler uImage1 : register(s1);
float3 uColor;
float3 uSecondaryColor;
float uOpacity;
float uSaturation;
float uRotation;
float uTime;
float4 uSourceRect;
float2 uWorldPosition;
float uDirection;
float3 uLightSource;
float2 uImageSize0;
float2 uImageSize1;
matrix uWorldViewProjection;
float4 uShaderSpecificData;
struct VertexShaderInput
{
float4 Position : POSITION0;
float4 Color : COLOR0;
float3 TextureCoordinates : TEXCOORD0;
};
struct VertexShaderOutput
{
float4 Position : SV_POSITION;
float4 Color : COLOR0;
float3 TextureCoordinates : TEXCOORD0;
};
VertexShaderOutput VertexShaderFunction(in VertexShaderInput input)
{
VertexShaderOutput output = (VertexShaderOutput) 0;
float4 pos = mul(input.Position, uWorldViewProjection);
output.Position = pos;
output.Color = input.Color;
output.TextureCoordinates = input.TextureCoordinates;
return output;
}
float4 PixelShaderFunction(VertexShaderOutput input) : COLOR0
{
float4 color = input.Color;
float2 coords = input.TextureCoordinates;
// Account for texture distortion artifacts.
coords.y = (coords.y - 0.5) / input.TextureCoordinates.z + 0.5;
float bump = sin(coords.y * 3.141);
// Calculate the amount of additive glow for this pixel, using a combination of a scrolling texture and an extreme
// exponential squash of the prior 0-1-0 bump, creating a "center" to the glow and ensuring that the
// ray doesn't look like just a scrolling gradient.
float streakColor = tex2D(uImage1, coords + float2(uTime * -2.75, 0));
float glow = streakColor.r + pow(bump, 20) * 0.4;
// Determine opacity based on a weaker exponential squash of the bump in order to create faded horizontal edges.
float opacity = pow(bump, 5);
// Apply glow.
opacity += glow * opacity;
return color * opacity;
}
technique Technique1
{
pass TrailPass
{
VertexShader = compile vs_2_0 VertexShaderFunction();
PixelShader = compile ps_2_0 PixelShaderFunction();
}
}
Binary file not shown.
+89
View File
@@ -0,0 +1,89 @@
sampler noiseTextureA : register(s1);
float pixelationFactor;
float uSaturation;
float4 uShaderSpecificData;
matrix uWorldViewProjection;
struct VertexShaderInput
{
float4 Position : POSITION0;
float4 Color : COLOR0;
float3 TextureCoordinates : TEXCOORD0;
};
struct VertexShaderOutput
{
float4 Position : SV_POSITION;
float4 Color : COLOR0;
float3 TextureCoordinates : TEXCOORD0;
};
VertexShaderOutput VertexShaderFunction(in VertexShaderInput input)
{
VertexShaderOutput output = (VertexShaderOutput) 0;
float4 pos = mul(input.Position, uWorldViewProjection);
output.Position = pos;
output.Color = input.Color;
output.TextureCoordinates = input.TextureCoordinates;
return output;
}
float QuadraticBump(float x)
{
return x * (4 - x * 4);
}
float4 PixelShaderFunction(VertexShaderOutput input) : COLOR0
{
float4 color = 1;
float2 coords = input.TextureCoordinates;
coords.y = (coords.y - 0.5) / input.TextureCoordinates.z + 0.5;
float feelerColorStart = 0.61;
float colorSpacingFactor = 1.9;
float4 outlineColor = float4(91, 114, 119, 255) / 255;
float erasePixelInterpolant = coords.x - 0.9 - distance(coords.y, 0.5) * 0.1;
// Band 1: Outline color.
color = lerp(color, outlineColor, coords.x >= feelerColorStart);
// Band 2: Pink.
float pinkStart = feelerColorStart + colorSpacingFactor * 0.01;
color = lerp(color, float4(221, 150, 179, 255) / 255, coords.x >= pinkStart);
// Band 3: Outline color.
float outlineAStart = pinkStart + colorSpacingFactor * 0.04;
color = lerp(color, outlineColor, coords.x >= outlineAStart);
// Band 4: Blue.
float blueStart = outlineAStart + colorSpacingFactor * 0.01;
color = lerp(color, float4(48, 117, 222, 255) / 255, coords.x >= blueStart);
// Band 5: Baby blue.
float babyBlueStart = blueStart + colorSpacingFactor * 0.04;
color = lerp(color, float4(167, 222, 255, 255) / 255, coords.x >= babyBlueStart);
// Add an outline to the ends of the feeler.
float horizontalDistanceFromCenter = distance(coords.y, 0.5);
color = lerp(color, outlineColor, horizontalDistanceFromCenter >= 0.3);
color = lerp(color, outlineColor, erasePixelInterpolant >= -0.02);
float permittedDirection = sign(uSaturation);
float direction = sign(dot(input.Position.xy - uShaderSpecificData.xy, uShaderSpecificData.zw));
erasePixelInterpolant *= direction == permittedDirection || coords.x < 0.5;
return color * (erasePixelInterpolant < 0) * input.Color;
}
technique Technique1
{
pass AutoloadPass
{
VertexShader = compile vs_3_0 VertexShaderFunction();
PixelShader = compile ps_3_0 PixelShaderFunction();
}
}
Binary file not shown.
+9
View File
@@ -0,0 +1,9 @@
namespace CalamityMod.Enums
{
public enum HardmodeCrateType
{
Biome,
Mythril,
Titanium
}
}
-1
View File
@@ -242,7 +242,6 @@ namespace CalamityMod.Events
if (inNaturalSeaPosition && player.Calamity().ZoneSulphur)
{
// Makes rain pour at its maximum intensity (but only after an idiot meanders into the Sulphurous Sea)
// You'll never catch me, Fabs, Not when I shift into MAXIMUM OVERDRIVE!!
HasStartedAcidicDownpour = true;
CalamityNetcode.SyncWorld();
break;
Loaded 100 of 1025 files, more files were not shown because too many files have changed in this diff. Show more