Repository navigation
Conversation
- Parse hybrid styles (magical melee, magical ranged, ranged melee, ranged magic) and strip (100% prayer penetration) / non-printable markers on single-style NPCs - Split offensive vs defensive style resolution in NPCVsPlayerCalc - Add NPC_HARDCODED_MAX_HIT entries for Thermonuclear smoke devil (499) and Enormous Tentacle (5534, 5535) - Exclude Chaos Fanatic (6619) and Kraken (494, 496) via NON_STANDARD_MONSTER_IDS - Expose hybrid styles in CustomMonsterSettings, NPCInfo, MonsterStore, and generateMaxHitDiscrepancies - Add unit tests in DamageTaken.test.ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds Damage Taken support for the 4 hybrid NPC combat styles (
magical melee,magical ranged,ranged melee,ranged magic) by splitting offensive stat lookup from player defence roll lookup (e.g.,magical meleeuses NPC melee stats against player magic defence). Also normalizes single-style entries with(100% prayer penetration)(overhead protection prayers are currently commented out inNPCVsPlayerCalc) and trailing control characters (such as Dusk's"Slash \x7f\x7f"), enabling 59 additional monsters. Multi-style, genericMelee, andTypelessNPCs remain non-standard.NPC_HARDCODED_MAX_HIToverrides for Thermonuclear smoke devil (8) and Enormous Tentacle (2), where the standard ranged formula diverges from their actual max hits.6619, mixed magic/ranged stats and special attack) and Kraken (494/496, placeholderskills.magic: 1) non-standard viaNON_STANDARD_MONSTER_IDS.NPCInfo's style icon lookup (which also fixes standardrangedshowingUnknown).DamageTaken.test.tscovering each hybrid style, exclusions, andparseMonsterStyle. (Four newly enabledmagical meleeNPCs — Cave abomination, Infernal pyrelord, Reanimated bloodveld, and Vitreous Jelly — trigger the existing max-hit discrepancy warning.)https://oldschool.runescape.wiki/w/RuneScape:Sandbox/combat_pseudocode