Skip to content
This repository has been archived by the owner on May 6, 2024. It is now read-only.

Add RUSH action. #83

Merged
merged 2 commits into from
Sep 28, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions nle/nethack/actions.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ class Command(enum.IntEnum):
ENGRAVE = ord("E") # engrave writing on the floor
ENHANCE = M("e") # advance or check weapon and spell skills
FIRE = ord("f") # fire ammunition from quiver
FIGHT = ord("F") # fight a monster
FORCE = M("f") # force a lock
GLANCE = ord(";") # show what type of thing a map symbol corresponds to
HELP = ord("?") # give a help message
Expand All @@ -110,6 +111,8 @@ class Command(enum.IntEnum):
LOOK = ord(":") # look at what is here
LOOT = M("l") # loot a box on the floor
MONSTER = M("m") # use monster's special ability
MOVE = ord("m") # move, no pickup
MOVEFAR = ord("M") # move far, no pickup
OFFER = M("o") # offer a sacrifice to the gods
OPEN = ord("o") # open a door
OPTIONS = ord("O") # show option settings, possibly change them
Expand All @@ -127,6 +130,7 @@ class Command(enum.IntEnum):
REMOVE = ord("R") # remove an accessory (ring, amulet, etc)
RIDE = M("R") # mount or dismount a saddled steed
RUB = M("r") # rub a lamp or a stone
RUSH = ord("g") # rush to a chosen direction
SAVE = ord("S") # save the game and exit
SEARCH = ord("s") # search for traps and secret doors
SEEALL = ord("*") # show all equipment in use
Expand Down