MCPcopy Create free account
hub / github.com/crawl/crawl / parse_use

Function parse_use

crawl-ref/source/util/mon-gen.py:273–274  ·  view source on GitHub ↗
(s)

Source from the content-addressed store, hash-verified

271
272USE_TYPES = {'nothing', 'open_doors', 'starting_equipment', 'weapons_armour'}
273def parse_use(s):
274 return parse_enum(s, "MONUSE_", USE_TYPES)
275
276SIZES = {'tiny', 'little', 'small', 'medium', 'large', 'giant'}
277def parse_size(s):

Callers

nothing calls this directly

Calls 1

parse_enumFunction · 0.70

Tested by

no test coverage detected