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

Reset accumulatedDamage #808 #867

Merged
merged 3 commits into from
Dec 6, 2024
Merged

Reset accumulatedDamage #808 #867

merged 3 commits into from
Dec 6, 2024

Conversation

Hrvt2
Copy link
Contributor

@Hrvt2 Hrvt2 commented Dec 5, 2024

add variable damageCooldownTicks to Actor, in UpdateActorState reset Actor's accumulatedDamage if thier damageCooldownTicks is greater than GAME_TICKS_PER_SECOND (60).

Hrvt2 added 2 commits December 5, 2024 20:11
add variable damageCooldownTicks to Actor, in UpdateActorState reset Actor's accumulatedDamage if thier damageCooldownTicks is greater than GAME_TICKS_PER_SECOND (60).
@@ -100,6 +100,7 @@
#define GRIMACE_MELEE_TICKS 19
#define DAMAGE_TEXT_DISTANCE_RESET_THRESHOLD (ACTOR_W / 2)
#define FOOTPRINT_MAX 8
#define GAME_TICKS_PER_SECOND 60 // Assuming 60 ticks per second for accumulatedDamage reset
Copy link
Owner

Choose a reason for hiding this comment

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

the game is 70FPS
please use FPS_FRAMELIMIT

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed as advised

@cxong cxong linked an issue Dec 5, 2024 that may be closed by this pull request
replace GAME_TICKS_PER_SECOND with FPS_FRAMELIMIT.
@cxong cxong merged commit 38ae30a into cxong:master Dec 6, 2024
7 checks passed
@cxong
Copy link
Owner

cxong commented Dec 6, 2024

looks good thanks!

@Hrvt2
Copy link
Contributor Author

Hrvt2 commented Dec 6, 2024

No problem, thank you for assistance.

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.

Character health loss amount text
2 participants