HilariousDeathArtist / DCSSConfigFile

HilariousDeathArtist DCSS Config File
http://dobrazupa.org/rcfiles/crawl-git/HilariousDeathArtist.rc
36 stars 14 forks source link

HDATravel quirk with new god Pakellas #9

Open mkflynn opened 8 years ago

mkflynn commented 8 years ago

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 commented 8 years ago

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