Skip to content

Move battle_calc_skillratio to skill.c - #3448

Open
MrKeiKun wants to merge 2 commits into
HerculesWS:masterfrom
MrKeiKun:issue73-move-calc-skillratio
Open

Move battle_calc_skillratio to skill.c#3448
MrKeiKun wants to merge 2 commits into
HerculesWS:masterfrom
MrKeiKun:issue73-move-calc-skillratio

Conversation

@MrKeiKun

@MrKeiKun MrKeiKun commented Sep 5, 2026

Copy link
Copy Markdown
Contributor

Pull Request Prelude

Changes Proposed

Moves battle_calc_skillratio() from battle.c to skill.c as skill_calc_skillratio(), and moves its interface entry from battle-> to skill->.

Two commits, so the move can be reviewed separately from the formatting:

  1. Move the function. The body is moved as is, with no behaviour change.
  2. Apply Hercules code styling. The function carried a lot of legacy formatting, so this brings it in line with the style guide.

Issues addressed: #73

Relocates the skill damage ratio calculation from battle.c to skill.c, where it belongs. Part of issue HerculesWS#73.
Style-only cleanup of the function moved in the previous commit: space after control keywords, no padding inside parentheses, space after commas and around binary operators, space before braces, and explicit NULL comparisons for pointer checks.
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.

1 participant