Skip to content

Add tanglefoot mechanics - #982

Merged
jmyaeger merged 1 commit into
weirdgloop:mainfrom
jmyaeger:tanglefoot
Oct 26, 2026
Merged

jmyaeger merged 1 commit into
weirdgloop:mainfrom
jmyaeger:tanglefoot

Conversation

@jmyaeger

Copy link
Copy Markdown
Collaborator

From a lot of in-game testing (see the new test file for my data), I figured out that the max hit for Tanglefoot is calculated as (str_level * (str_bonus + farming_lvl // 5 + 64) + 320) // 640) - 1 with str_level being the player's visible strength level. Basically, it's the normal max hit formula, but farming_lvl // 5 is added to the strength bonus, and 1 is subtracted at the end. Stance bonus does not appear to be included at all (not even the base +8), and strength-boosting prayers have no effect.

This formula has not been confirmed by Jagex, but given that it matches 177/177 observed in-game max hits, I think it's safe to say this is at least getting the correct results even if the actual game implements it in a different way.

@jmyaeger
jmyaeger requested a review from LlemonDuck October 25, 2026 22:43
@jmyaeger
jmyaeger merged commit 741f2f2 into weirdgloop:main Oct 26, 2026
2 checks passed
@jmyaeger
jmyaeger deleted the tanglefoot branch October 26, 2026 03:19
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.

2 participants