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

Function magic_map_base_feat

crawl-ref/source/feature.cc:237–249  ·  view source on GitHub ↗

What should be showed for this feat on magic mapping? * * @param feat The feat to be hidden by magic mapping. * @returns the converted type. */

Source from the content-addressed store, hash-verified

235 * @returns the converted type.
236 */
237dungeon_feature_type magic_map_base_feat(dungeon_feature_type feat)
238{
239 const feature_def& fdef = get_feature_def(feat);
240 switch (fdef.dchar)
241 {
242 case DCHAR_ARCH:
243 return DNGN_UNKNOWN_PORTAL;
244 case DCHAR_ALTAR:
245 return DNGN_UNKNOWN_ALTAR;
246 default:
247 return feat;
248 }
249}

Callers 1

magic_mappingFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected