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

HDATravel quirk with new god Pakellas #9

Open
mkflynn opened this issue Apr 27, 2016 · 1 comment
Open

HDATravel quirk with new god Pakellas #9

mkflynn opened this issue Apr 27, 2016 · 1 comment

Comments

@mkflynn
Copy link

mkflynn commented Apr 27, 2016

Pakellas does not regenerate MP upon rest, so this needs to be added to HDAtravel.rc:

line 47:
: local you_are_pak = string.find(you.god(), "Pakellas")

changes to line ~170:
elseif you_are_pak then : autoexplore() : else rest() : end

@wbaleson
Copy link

wbaleson commented May 9, 2016

The solution I came up with for my rc file was to change the should_rest function to be this:
function should_rest(hp, mp, max_hp, max_mp)
local you_are_mummy = string.find(you.race(), "Mummy")
local you_are_deep_dwarf = string.find(you.race(), "Deep Dwarf")
local you_are_pak = string.find(you.god(), "Pakellas")
return (not you_are_pak and mp < (max_mp_0.50) or ((max_mp-mp) > 20)
or ((hp < (max_hp_0.80)) or ((max_hp-hp) > 30)
and not you_are_deep_dwarf)
or you.slowed()
or you.poisoned()
or you.confused()
or you.exhausted()
or (((hp < max_hp) or (mp < max_mp)) and you_are_mummy))
end

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

No branches or pull requests

2 participants