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

Method update

source/game/items/StarInstrumentItem.cpp:45–53  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

43}
44
45void InstrumentItem::update(float, FireMode, bool, HashSet<MoveControlType> const&) {
46 if (entityMode() == EntityMode::Master) {
47 if (active()) {
48 m_activeCooldown--;
49 owner()->addEffectEmitters({"music"});
50 }
51 }
52 owner()->instrumentEquipped(m_kind);
53}
54
55bool InstrumentItem::active() const {
56 if (!initialized())

Callers

nothing calls this directly

Calls 2

addEffectEmittersMethod · 0.45
instrumentEquippedMethod · 0.45

Tested by

no test coverage detected