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

Method hidden

crawl-ref/source/notes.cc:455–468  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

453}
454
455bool Note::hidden() const
456{
457 // Hide skill gains that are not enabled by options.
458 if (type == NOTE_GAIN_SKILL || type == NOTE_LOSE_SKILL)
459 {
460 return !(Options.note_all_skill_levels
461 || second <= 27 && Options.note_skill_levels[second]
462 || Options.note_skill_max && _is_highest_skill(first));
463 }
464 // Hide gems being shattered by default.
465 if (type == NOTE_GEM_LOST)
466 return !Options.more_gem_info;
467 return false;
468}
469
470void Note::check_milestone() const
471{

Callers 4

_sdump_screenshotsFunction · 0.80
_sdump_notesFunction · 0.80
display_notesFunction · 0.80
jquery.jsFile · 0.80

Calls 1

_is_highest_skillFunction · 0.85

Tested by

no test coverage detected