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

Function parse_enum

crawl-ref/source/util/mon-gen.py:263–266  ·  view source on GitHub ↗
(s, prefix, vals)

Source from the content-addressed store, hash-verified

261 return atks
262
263def parse_enum(s, prefix, vals):
264 if s not in vals:
265 raise ValueError("%s not in %s" % (s, vals))
266 return prefix + s.upper()
267
268INTELLIGENCES = {'brainless', 'animal', 'human'}
269def parse_intelligence(s):

Callers 7

parse_intelligenceFunction · 0.70
parse_useFunction · 0.70
parse_sizeFunction · 0.70
parse_shapeFunction · 0.70
parse_holinessFunction · 0.70
parse_habitatFunction · 0.70
parse_tile_variantsFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected