| 36 | } |
| 37 | |
| 38 | void ConsumableItem::update(float dt, FireMode fireMode, bool shifting, HashSet<MoveControlType> const& moves) { |
| 39 | SwingableItem::update(dt, fireMode, shifting, moves); |
| 40 | |
| 41 | if (entityMode() == EntityMode::Master) { |
| 42 | if (m_consuming) |
| 43 | owner()->addEffectEmitters(m_emitters); |
| 44 | if (ready()) |
| 45 | maybeConsume(); |
| 46 | } |
| 47 | } |
| 48 | |
| 49 | void ConsumableItem::fire(FireMode mode, bool shifting, bool edgeTriggered) { |
| 50 | if (canUse()) |
nothing calls this directly
no test coverage detected