Skip to content

[CHECKSTYLE] [CHORE] Use Constants for time conversions#7370

Open
TechnikTil wants to merge 1 commit intoFunkinCrew:developfrom
TechnikTil:checkstyle/time-conversions
Open

[CHECKSTYLE] [CHORE] Use Constants for time conversions#7370
TechnikTil wants to merge 1 commit intoFunkinCrew:developfrom
TechnikTil:checkstyle/time-conversions

Conversation

@TechnikTil
Copy link
Copy Markdown
Contributor

Description

A lot of time conversions in the repository use inline values. This goes against the magic number rule of the repository, so this PR makes sure to replace those values with ones that are in Constants to make checkstyle happy.

This PR also adds Constants.MIN_PER_HOUR and Constants.SECS_PER_HOUR. The names are very self explanatory, so I won't elaborate.

Signed-off-by: TechnikTil <techniktil@tilnotdrip.org>
@github-actions github-actions bot added status: pending triage Awaiting review. size: medium A medium pull request with 100 or fewer changes. pr: haxe PR modifies game code. and removed status: pending triage Awaiting review. size: medium A medium pull request with 100 or fewer changes. labels Apr 12, 2026
@Hundrec Hundrec added type: chore Involves minor adjustments that do not make functional changes. status: pending triage Awaiting review. size: medium A medium pull request with 100 or fewer changes. labels Apr 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr: haxe PR modifies game code. size: medium A medium pull request with 100 or fewer changes. status: pending triage Awaiting review. type: chore Involves minor adjustments that do not make functional changes.

Development

Successfully merging this pull request may close these issues.

2 participants