FakeFishGames / Barotrauma

A 2D online multiplayer game taking place in a submarine travelling through the icy depths of Jupiter's moon Europa.
http://www.barotraumagame.com/
1.76k stars 406 forks source link

Over one CharacterAbilityModifyResistance will make resistance negative #14405

Open Regalis11 opened 3 months ago

Regalis11 commented 3 months ago

Discussed in https://github.com/FakeFishGames/Barotrauma/discussions/14402

Originally posted by **A2ur3** August 5, 2024 ### Disclaimers - [X] I have searched the issue tracker to check if the issue has already been reported. - [X] My issue happened while using mods. ### What happened? if you have two or more talents that use CharacterAbilityModifyResistance to provide resistance your resistance will become negative. Not possible in vanilla since many damage resistance gained from talents are from unique afflictions ### Reproduction steps 1. download Baroverhaul a talent overhaul mod 2. wrench someone (2% blunt force trauma) 3. givetalent "Brick Wall" (10% resistance) and "Stormtrooper" (15% resistance) 4. wrench that character (4% blunt force trauma) ### Bug prevalence Happens every time I play ### Single player or multiplayer? Happens in both single player and multiplayer ### - _No response_ ### Version v1.5.9.1 (Summer Update Hotfix 2) ### - _No response_ ### Which operating system did you encounter this bug on? Windows ### Relevant error messages and crash reports _No response_
Regalis11 commented 3 months ago

Fixed in https://github.com/FakeFishGames/Barotrauma-development/commit/af7e14c2cbc8f170f7d69fb660f92bf730432f07