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

Method effects

source/game/StarToolUser.cpp:129–137  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

127}
128
129void ToolUser::effects(EffectEmitter& emitter) const {
130 if (m_suppress.get())
131 return;
132
133 if (auto item = as<EffectSourceItem>(m_primaryHandItem.get()))
134 emitter.addEffectSources("primary", item->effectSources());
135 if (auto item = as<EffectSourceItem>(m_altHandItem.get()))
136 emitter.addEffectSources("alt", item->effectSources());
137}
138
139List<PersistentStatusEffect> ToolUser::statusEffects() const {
140 if (m_suppress.get())

Callers 2

updateMethod · 0.45
updateMethod · 0.45

Calls 3

addEffectSourcesMethod · 0.80
getMethod · 0.45
effectSourcesMethod · 0.45

Tested by

no test coverage detected