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

Function milestone_check

crawl-ref/source/items.cc:1176–1184  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1174}
1175
1176void milestone_check(const item_def &item)
1177{
1178 if (item.base_type == OBJ_RUNES)
1179 mark_milestone("rune", _milestone_collectible(item));
1180 else if (item.base_type == OBJ_GEMS)
1181 mark_milestone("gem.found", _milestone_collectible(item));
1182 else if (item_is_orb(item))
1183 mark_milestone("orb", "found the Orb of Zot!");
1184}
1185
1186static void _check_note_item(item_def &item)
1187{

Callers 2

_purchaseFunction · 0.85
_check_note_itemFunction · 0.85

Calls 3

mark_milestoneFunction · 0.85
_milestone_collectibleFunction · 0.85
item_is_orbFunction · 0.85

Tested by

no test coverage detected