Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Damage Coeff Change Standardization #1326

Merged
merged 9 commits into from
Oct 28, 2023

Conversation

LanceSmites328
Copy link
Contributor

@LanceSmites328 LanceSmites328 commented Sep 3, 2023

About The Pull Request

Creates a system of datums that can be used to properly manage changes to a simple_animal's damage_coeff without causing issues, such as a debuff wearing off after the animal re-defines it's resistances, causing it to buff those resistances further.

So, this now also rewrites existing damage_coeff code to use a new datum that is extremely similar to armor for the purposes of performance, as the old way of optimization using lists was simply not compatible.

These modifiers are meant to typically be provided by status effects that later remove them. Some cases, such as Doomsday Calendar are exceptions, due to their theoretically infinitely scaling self-debuff.

This should probably be stress tested a bit.

Why It's Good For The Game

Solves issues of incredible resistances by stuff like Arbiter when faced with certain realized EGO.
Allows armor debuffs to be used more realistically without worrying about certain issues.

@LanceSmites328 LanceSmites328 added Code improvement Code is now easier to copy paste. Feature Something new being added. Fix There was a bug, and we fixed it! labels Sep 3, 2023
@LanceSmites328 LanceSmites328 force-pushed the Damage-Coeff-Standarization branch from bad7cfb to a2a3329 Compare September 3, 2023 05:54
@LanceSmites328 LanceSmites328 mentioned this pull request Sep 12, 2023
Copy link
Contributor

@Kitsunemitsu Kitsunemitsu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would like an easier way to just add and remove resistances tbh, along with this PR.

Kitsunemitsu
Kitsunemitsu previously approved these changes Oct 21, 2023
Copy link
Contributor

@Kitsunemitsu Kitsunemitsu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code cleanup

Changes "damage_coeff =" to "ChangeResistances("

Changes "Unmodified_Coeff" to "Unmodified_Damage_Coeff"

Returns the status check as opposed to the mod check

Adds ModifyResistances proc and fixing spelling error

Update damage_coeff_helper.dm

Entire Rework of how I've done this

Call this shit "Armor 2"
@LanceSmites328 LanceSmites328 force-pushed the Damage-Coeff-Standarization branch from c68bf20 to 2945987 Compare October 21, 2023 08:23
@LanceSmites328 LanceSmites328 marked this pull request as ready for review October 21, 2023 08:27
@LanceSmites328 LanceSmites328 added the Test Merge Candidate Should be test merged to test its functionality. label Oct 21, 2023
@EgorDinamit EgorDinamit removed the Test Merge Candidate Should be test merged to test its functionality. label Oct 28, 2023
Copy link
Member

@EgorDinamit EgorDinamit left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's get it merged and see what happens.

@EgorDinamit EgorDinamit merged commit 5e077fc into vlggms:master Oct 28, 2023
7 of 8 checks passed
vampirebat74 pushed a commit to vampirebat74/lobotomy-corp13 that referenced this pull request May 10, 2024
* Temporary Starting Commit

Changes "damage_coeff =" to "ChangeResistances("

Changes "Unmodified_Coeff" to "Unmodified_Damage_Coeff"

Returns the status check as opposed to the mod check

Adds ModifyResistances proc and fixing spelling error

Update damage_coeff_helper.dm

Entire Rework of how I've done this

Call this shit "Armor 2"

* Old Code Update

* code improvement

* God of Seasons update

* Updates damage_coeff checks with new Proc

* Deep Scanner Update

* linter fixes

* Converts current damage_coeff system to mimic armor

* Update _abnormality.dm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Code improvement Code is now easier to copy paste. Feature Something new being added. Fix There was a bug, and we fixed it!
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants