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

Method wearableRemoved

source/game/StarHumanoid.cpp:374–384  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

372}
373
374void Humanoid::wearableRemoved(Wearable const& wearable) {
375 auto& fashion = *m_fashion;
376 if (auto head = wearable.ptr<WornHead>()) {
377 fashion.wornHeadsChanged = true;
378 if (!head->maskDirectives.empty())
379 fashion.helmetMasksChanged = true;
380 } else if (wearable.is<WornChest>() || wearable.is<WornLegs>())
381 fashion.wornChestsLegsChanged = true;
382 else if (wearable.is<WornBack>())
383 fashion.wornBacksChanged = true;
384}
385
386void Humanoid::removeWearable(uint8_t slot) {
387 auto& fashion = *m_fashion;

Callers

nothing calls this directly

Calls 1

emptyMethod · 0.45

Tested by

no test coverage detected