VanillaOnly Stat support & Fixes on resistance and absorption mechanics#339
VanillaOnly Stat support & Fixes on resistance and absorption mechanics#339MaksyKun wants to merge 21 commits into
Conversation
Covers the changes in PR #339: unit tests exercising the VanillaWrapperListener damage-modifier math directly (resistance no longer zeroed out, absorption capped to the victim's available amount and applied only once), plus tests confirming the new LEGACY_VANILLA_ENTITY_STATS and LEGACY_VANILLA_ITEM_STATS flags correctly no-op the entity/item stat pipelines when enabled.
This Bukkit version's EntityDamageByEntityEvent constructor expects com.google.common.base.Function rather than java.util.function.Function.
|
Naming nit: "legacy" is misleading here This was never legacy behavior — it's new, opt-in "pure vanilla" mode. Suggest renaming to something like
Not blocking — just flagging for clarity. Happy to do the rename if you'd rather not churn it further. Also: opened #340 with test coverage for the resistance/absorption fix and the new legacy-vanilla flags, targeting this branch — take a look when you get a chance. |
Travja
left a comment
There was a problem hiding this comment.
Line-by-line naming suggestions for the "legacy" prefix (see general PR comment for the full rationale). Proposing VANILLA_ONLY_* in place of LEGACY_VANILLA_*, and vanilla-only.* in place of legacy.* for the config path. Non-blocking.
Co-authored-by: Trav <the.only.t.craft@gmail.com>
Co-authored-by: Trav <the.only.t.craft@gmail.com>
Co-authored-by: Trav <the.only.t.craft@gmail.com>
Co-authored-by: Trav <the.only.t.craft@gmail.com>
….java Co-authored-by: Trav <the.only.t.craft@gmail.com>
Co-authored-by: Trav <the.only.t.craft@gmail.com>
…ct/DynamicStatListener.java Co-authored-by: Trav <the.only.t.craft@gmail.com>
….java Co-authored-by: Trav <the.only.t.craft@gmail.com>
Co-authored-by: Trav <the.only.t.craft@gmail.com>
Co-authored-by: Trav <the.only.t.craft@gmail.com>
…on-fpuec4 Add legacy vanilla stats mode and fix damage modifier handling
|
Thanks for pointing that out. Vanilla-only sounds even better, haha |
Adds some old fixes (00d677f#diff-9f550a722a805c537319b09760b23aafc9e8f5de24308c96d4438a3baf610c13) for pretty vanilla related servers:
engine.yml
Further things: