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

Small Refactor for thing_stats.c #3514

Merged
merged 38 commits into from
Nov 15, 2024

Conversation

walt253
Copy link
Contributor

@walt253 walt253 commented Oct 4, 2024

Reordered stuff in thing_stats.c.

Removed boolean argument on compute_creature_max_armour the buff is now checked on calculate_correct_creature_armour.

Added calculate_correct_creature_defense and calculate_correct_creature_dexterity and change few functions accordingly (see creature_states_combt.c - thing_creature.c - thing_shots.c).

Removed dungeon modifier on project_creature_attack_melee_damage and compute_creature_attack_melee_damage as it's no longer required since calculate_correct_creature_strength is now used where it should be (see thing_creature.c).

@walt253 walt253 marked this pull request as ready for review October 4, 2024 03:22
@walt253
Copy link
Contributor Author

walt253 commented Oct 4, 2024

Note: calculate_correct_creature_defense and calculate_correct_creature_dexterity added because I plan to add a dungeon modifier for them.

@walt253 walt253 marked this pull request as draft October 9, 2024 16:13
@walt253 walt253 marked this pull request as ready for review October 9, 2024 16:13
@walt253

This comment was marked as outdated.

@walt253

This comment was marked as spam.

@walt253 walt253 marked this pull request as draft October 23, 2024 22:28
@walt253 walt253 marked this pull request as ready for review October 23, 2024 22:51
src/thing_stats.c Outdated Show resolved Hide resolved
@Loobinex
Copy link
Member

I merged in the cosmetic stuff from #3653

@Loobinex Loobinex merged commit 8c2ed4b into dkfans:master Nov 15, 2024
@walt253 walt253 deleted the SmallRefactorThingStats branch November 15, 2024 09:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants