
[1.20.1] `"namespace:*"` Matching All in `pmmo:damage_boost` Perk
SomewhatDamaged opened this issue ยท 0 comments
Describe the bug
It doesn't matter what namespace is used in a damage_boost
perk, if it ends in :*
, it will match ALL attacks (from any namespace).
Expected behavior
Should only match weapons from the specified namespace.
To Reproduce
Ex:
[[Perks.For_Event.DEAL_DAMAGE]]
applies_to = ["blargelumps:*"]
skill = "upgoing"
multiplicative = false
base = 1000
perk = "pmmo:damage_boost"
Results in:
[07Mar2025 13:53:48.541] [Server thread/INFO] [harmonised.pmmo.util.MsLoggy/]: Attack Type: DEAL_DAMAGE | TargetType: entity.dummmmmmy.target_dummy
[07Mar2025 13:53:48.549] [Server thread/DEBUG] [harmonised.pmmo.util.MsLoggy/]: Source Type: minecraft:player_attack | Source Raw: player
[07Mar2025 13:53:48.552] [Server thread/DEBUG] [harmonised.pmmo.util.MsLoggy/]: Pre-Perk Damage:1.0
[07Mar2025 13:53:48.553] [Server thread/DEBUG] [harmonised.pmmo.util.MsLoggy/]: Damage Modified from 1.0 to 1001.0
[07Mar2025 13:53:48.553] [Server thread/DEBUG] [harmonised.pmmo.util.MsLoggy/]: Attack Type: minecraft:player_attack | Damage Out: 1001.0
Steps to reproduce the behavior:
- Remove all perks, add the example.
- Add debug to see damage modifications
- Hit something
- See error
Versions:
- Minecraft: 1.20.1
- Loader: Forge-47.3.22
- PMMO: 1.20.1-1.6.33
this will likely affect 1.21.1, since it uses the same code.
Additional context
Turn your sound up!