bothack.actions
->Apply
(->Apply slot)
Positional factory function for class bothack.actions.Apply.
->ApplyAt
(->ApplyAt slot dir)
Apply something in the given direction (eg. pickaxe, key...).
Assumes the thing is already wielded (if it has to be like a pickaxe),
otherwise resulting direction prompt may be misparsed after auto-wield if
something happens during the wielding
->Ascend
(->Ascend)
Positional factory function for class bothack.actions.Ascend.
->Attack
(->Attack dir)
Positional factory function for class bothack.actions.Attack.
->Autotravel
(->Autotravel pos)
Positional factory function for class bothack.actions.Autotravel.
->Call
(->Call slot name)
Positional factory function for class bothack.actions.Call.
->Chat
(->Chat dir)
Positional factory function for class bothack.actions.Chat.
->Close
(->Close dir)
Positional factory function for class bothack.actions.Close.
->Contribute
(->Contribute dir amt)
->Descend
(->Descend)
Positional factory function for class bothack.actions.Descend.
->Dip
(->Dip item-slot potion-slot)
Positional factory function for class bothack.actions.Dip.
->Discoveries
(->Discoveries)
Positional factory function for class bothack.actions.Discoveries.
->Drop
(->Drop slot qty)
(->Drop slot-or-map)
->DropSingle
(->DropSingle slot qty)
Positional factory function for class bothack.actions.DropSingle.
->Eat
(->Eat slot-or-label)
Positional factory function for class bothack.actions.Eat.
->Engrave
(->Engrave slot what append?)
Positional factory function for class bothack.actions.Engrave.
->Enhance
(->Enhance)
Positional factory function for class bothack.actions.Enhance.
->FarLook
(->FarLook pos)
Positional factory function for class bothack.actions.FarLook.
->FarmAttack
(->FarmAttack dir cnt)
Positional factory function for class bothack.actions.FarmAttack.
->ForceLock
(->ForceLock)
Positional factory function for class bothack.actions.ForceLock.
->Inventory
(->Inventory)
Positional factory function for class bothack.actions.Inventory.
->Kick
(->Kick dir)
Positional factory function for class bothack.actions.Kick.
->Look
(->Look)
Positional factory function for class bothack.actions.Look.
->Loot
(->Loot)
Positional factory function for class bothack.actions.Loot.
->Move
(->Move dir)
Positional factory function for class bothack.actions.Move.
->Name
(->Name slot name)
Positional factory function for class bothack.actions.Name.
->Offer
(->Offer slot-or-label)
Positional factory function for class bothack.actions.Offer.
->Open
(->Open dir)
Positional factory function for class bothack.actions.Open.
->Pay
(->Pay shk)
Positional factory function for class bothack.actions.Pay.
->PickUp
(->PickUp label-or-list)
Positional factory function for class bothack.actions.PickUp.
->Pray
(->Pray)
Positional factory function for class bothack.actions.Pray.
->PutOn
(->PutOn slot)
Positional factory function for class bothack.actions.PutOn.
->Quaff
(->Quaff slot)
Positional factory function for class bothack.actions.Quaff.
->Quiver
(->Quiver slot)
Positional factory function for class bothack.actions.Quiver.
->Read
(->Read slot)
Positional factory function for class bothack.actions.Read.
->Remove
(->Remove slot)
Positional factory function for class bothack.actions.Remove.
->Repeated
(->Repeated action n)
Positional factory function for class bothack.actions.Repeated.
->Rub
(->Rub slot)
Positional factory function for class bothack.actions.Rub.
->Search
(->Search)
Positional factory function for class bothack.actions.Search.
->Sit
(->Sit)
Positional factory function for class bothack.actions.Sit.
->TakeOff
(->TakeOff slot)
Positional factory function for class bothack.actions.TakeOff.
->Throw
(->Throw slot dir)
Positional factory function for class bothack.actions.Throw.
->Unlock
(->Unlock slot dir)
->UnWield
(->UnWield)
(->UnWield _)
->Wait
(->Wait)
Positional factory function for class bothack.actions.Wait.
->Wear
(->Wear slot)
Positional factory function for class bothack.actions.Wear.
->Wield
(->Wield slot)
Positional factory function for class bothack.actions.Wield.
->Wipe
(->Wipe)
Positional factory function for class bothack.actions.Wipe.
->ZapWand
(->ZapWand slot)
Positional factory function for class bothack.actions.ZapWand.
->ZapWandAt
(->ZapWandAt slot dir)
adjust-prayer-timeout
(adjust-prayer-timeout game)
arbitrary-move
(arbitrary-move game level)
(arbitrary-move {:keys [player], :as game} level diagonal?)
call-id-handler
(call-id-handler bh)
Automatically disambiguate items like lamp, stone, harp etc. by calling them
enhance-all
(enhance-all)
Enhance action with a handler that enhances any skills available
examine-handler
(examine-handler bh)
kick
(kick {:keys [player], :as game} target-or-dir)
make-use
(make-use game slot)
map->Apply
(map->Apply m__5869__auto__)
Factory function for class bothack.actions.Apply, taking a map of keywords to field values.
map->Ascend
(map->Ascend m__5869__auto__)
Factory function for class bothack.actions.Ascend, taking a map of keywords to field values.
map->Attack
(map->Attack m__5869__auto__)
Factory function for class bothack.actions.Attack, taking a map of keywords to field values.
map->Autotravel
(map->Autotravel m__5869__auto__)
Factory function for class bothack.actions.Autotravel, taking a map of keywords to field values.
map->Call
(map->Call m__5869__auto__)
Factory function for class bothack.actions.Call, taking a map of keywords to field values.
map->Chat
(map->Chat m__5869__auto__)
Factory function for class bothack.actions.Chat, taking a map of keywords to field values.
map->Close
(map->Close m__5869__auto__)
Factory function for class bothack.actions.Close, taking a map of keywords to field values.
map->Descend
(map->Descend m__5869__auto__)
Factory function for class bothack.actions.Descend, taking a map of keywords to field values.
map->Dip
(map->Dip m__5869__auto__)
Factory function for class bothack.actions.Dip, taking a map of keywords to field values.
map->Discoveries
(map->Discoveries m__5869__auto__)
Factory function for class bothack.actions.Discoveries, taking a map of keywords to field values.
map->DropSingle
(map->DropSingle m__5869__auto__)
Factory function for class bothack.actions.DropSingle, taking a map of keywords to field values.
map->Eat
(map->Eat m__5869__auto__)
Factory function for class bothack.actions.Eat, taking a map of keywords to field values.
map->Engrave
(map->Engrave m__5869__auto__)
Factory function for class bothack.actions.Engrave, taking a map of keywords to field values.
map->Enhance
(map->Enhance m__5869__auto__)
Factory function for class bothack.actions.Enhance, taking a map of keywords to field values.
map->FarLook
(map->FarLook m__5869__auto__)
Factory function for class bothack.actions.FarLook, taking a map of keywords to field values.
map->FarmAttack
(map->FarmAttack m__5869__auto__)
Factory function for class bothack.actions.FarmAttack, taking a map of keywords to field values.
map->ForceLock
(map->ForceLock m__5869__auto__)
Factory function for class bothack.actions.ForceLock, taking a map of keywords to field values.
map->Inventory
(map->Inventory m__5869__auto__)
Factory function for class bothack.actions.Inventory, taking a map of keywords to field values.
map->Kick
(map->Kick m__5869__auto__)
Factory function for class bothack.actions.Kick, taking a map of keywords to field values.
map->Look
(map->Look m__5869__auto__)
Factory function for class bothack.actions.Look, taking a map of keywords to field values.
map->Loot
(map->Loot m__5869__auto__)
Factory function for class bothack.actions.Loot, taking a map of keywords to field values.
map->Move
(map->Move m__5869__auto__)
Factory function for class bothack.actions.Move, taking a map of keywords to field values.
map->Name
(map->Name m__5869__auto__)
Factory function for class bothack.actions.Name, taking a map of keywords to field values.
map->Offer
(map->Offer m__5869__auto__)
Factory function for class bothack.actions.Offer, taking a map of keywords to field values.
map->Open
(map->Open m__5869__auto__)
Factory function for class bothack.actions.Open, taking a map of keywords to field values.
map->Pay
(map->Pay m__5869__auto__)
Factory function for class bothack.actions.Pay, taking a map of keywords to field values.
map->PickUp
(map->PickUp m__5869__auto__)
Factory function for class bothack.actions.PickUp, taking a map of keywords to field values.
map->Pray
(map->Pray m__5869__auto__)
Factory function for class bothack.actions.Pray, taking a map of keywords to field values.
map->PutOn
(map->PutOn m__5869__auto__)
Factory function for class bothack.actions.PutOn, taking a map of keywords to field values.
map->Quaff
(map->Quaff m__5869__auto__)
Factory function for class bothack.actions.Quaff, taking a map of keywords to field values.
map->Quiver
(map->Quiver m__5869__auto__)
Factory function for class bothack.actions.Quiver, taking a map of keywords to field values.
map->Read
(map->Read m__5869__auto__)
Factory function for class bothack.actions.Read, taking a map of keywords to field values.
map->Remove
(map->Remove m__5869__auto__)
Factory function for class bothack.actions.Remove, taking a map of keywords to field values.
map->Repeated
(map->Repeated m__5869__auto__)
Factory function for class bothack.actions.Repeated, taking a map of keywords to field values.
map->Rub
(map->Rub m__5869__auto__)
Factory function for class bothack.actions.Rub, taking a map of keywords to field values.
map->Search
(map->Search m__5869__auto__)
Factory function for class bothack.actions.Search, taking a map of keywords to field values.
map->Sit
(map->Sit m__5869__auto__)
Factory function for class bothack.actions.Sit, taking a map of keywords to field values.
map->TakeOff
(map->TakeOff m__5869__auto__)
Factory function for class bothack.actions.TakeOff, taking a map of keywords to field values.
map->Throw
(map->Throw m__5869__auto__)
Factory function for class bothack.actions.Throw, taking a map of keywords to field values.
map->Wait
(map->Wait m__5869__auto__)
Factory function for class bothack.actions.Wait, taking a map of keywords to field values.
map->Wear
(map->Wear m__5869__auto__)
Factory function for class bothack.actions.Wear, taking a map of keywords to field values.
map->Wield
(map->Wield m__5869__auto__)
Factory function for class bothack.actions.Wield, taking a map of keywords to field values.
map->Wipe
(map->Wipe m__5869__auto__)
Factory function for class bothack.actions.Wipe, taking a map of keywords to field values.
map->ZapWand
(map->ZapWand m__5869__auto__)
Factory function for class bothack.actions.ZapWand, taking a map of keywords to field values.
mark-recharge-handler
(mark-recharge-handler {:keys [game], :as bh})
mark-trap-here
(mark-trap-here bh)
mark-tried
(mark-tried game item)
name-item
(name-item bh slot name)
Name an item on the next action
put-in
(put-in bag-slot slot amt)
(put-in bag-slot slot-or-amt-map)
recheck-peaceful-status
(recheck-peaceful-status game monster-selector)
remove-action
(remove-action item)
remove-blockers
(remove-blockers game slot)
remove-use
(remove-use game slot)
stairs-handler
(stairs-handler {:keys [game], :as bh})
take-out
(take-out bag-slot label amt)
(take-out bag-slot label-or-amt-map)
tried?
(tried? game item)
Wands are tried when engraved with, other items when worn/quaffed/read/... Zapping wands doesn't count as use - you can check (:target (item-id game wand))
unbag
(unbag game maybe-bag-slot item)
(unbag game maybe-bag-slot item qty)
Return action to take out 1 or qty of the item out of a bag
unparseable-item?
(unparseable-item? item)
Items with labels that may not fit the terminal size are ignored.
This is only a problem with thoroughly rusty thoroughly corroded long-named items.
untrap-move
(untrap-move game)
(untrap-move {:keys [player], :as game} level)
update-discoveries
(update-discoveries bh)
Re-check discoveries on the next action
update-inventory
(update-inventory bh)
Re-check inventory on the next action
update-tile
(update-tile bh)
Re-check current tile for items/engravings/feature on the next action
update-trapped-status
(update-trapped-status {:keys [game], :as bh} old-pos)
use-action
(use-action item)
wish-id-handler
(wish-id-handler {:keys [game], :as bh})
with-handler
(with-handler handler action)
(with-handler priority handler action)
with-reason
(with-reason & reason+action)
Updates an action to attach reasoning (purely for debugging purposes)
without-levitation
(without-levitation game action)