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

Fix crit type limit #156

Merged
merged 1 commit into from
Jan 4, 2024
Merged

Fix crit type limit #156

merged 1 commit into from
Jan 4, 2024

Conversation

M60TM
Copy link
Contributor

@M60TM M60TM commented Jan 4, 2024

Known Bugs:

  • Minicrit gained by mod crit type on bosses override normal critical(ex. headshot, flare).
  • Air strike's projectile deal minicrit while rocket jump even if crit-boosted.

Fix:

  • In CTFGameRules::ApplyOnDamageModifyRules, if damage type has DMG_CRIT, critType will change to 2(Crit_Full).

  • In FF2R, if OnTakeDamage library doesn't exist, check damage type is DMG_CRIT. But library exist, only check critType.

  • But most situation need to check damage type. Because critType will be determined in CTFGameRules::ApplyOnDamageModifyRules.

  • So I added damage type check.

  • Still attribute 410 is not fixed..

This should fix #138.

- Still attribute 410 is not fixed..
@Batfoxkid Batfoxkid merged commit faecddc into Batfoxkid:main Jan 4, 2024
1 of 2 checks passed
@naydef
Copy link
Contributor

naydef commented Jan 4, 2024

The CI doesn't seem to take into account whether build succeeds for all compiled plugins...
And thus the typo was not caught.

@M60TM
Copy link
Contributor Author

M60TM commented Jan 5, 2024

Damn, you right. My mistake.

@M60TM M60TM deleted the fix-crit-type branch November 12, 2024 10:01
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.

[Bug] Still mod crit type on bosses is not working properly
3 participants