MCPcopy Create free account
hub / github.com/OpenStarbound/OpenStarbound / activeSkillInfo

Method activeSkillInfo

source/game/StarMonster.cpp:768–779  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

766}
767
768Monster::SkillInfo Monster::activeSkillInfo() const {
769 SkillInfo skillInfo;
770
771 if (!m_activeSkillName.empty()) {
772 auto monsterDatabase = Root::singleton().monsterDatabase();
773 auto monsterSkillInfo = monsterDatabase->skillInfo(m_activeSkillName);
774 skillInfo.label = monsterSkillInfo.first;
775 skillInfo.image = monsterSkillInfo.second;
776 }
777
778 return skillInfo;
779}
780
781List<Drawable> Monster::portrait(PortraitMode) const {
782 if (m_monsterVariant.portraitIcon) {

Callers

nothing calls this directly

Calls 4

singletonClass · 0.85
monsterDatabaseMethod · 0.80
skillInfoMethod · 0.80
emptyMethod · 0.45

Tested by

no test coverage detected