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

Method removeWearable

source/game/StarHumanoid.cpp:386–391  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

384}
385
386void Humanoid::removeWearable(uint8_t slot) {
387 auto& fashion = *m_fashion;
388 Wearable& current = fashion.wearables.at(slot);
389 wearableRemoved(current);
390 current.reset();
391}
392
393void Humanoid::setWearableFromHead(uint8_t slot, HeadArmor const& head, Gender gender) {
394 auto& fashion = *m_fashion;

Callers 1

setupHumanoidMethod · 0.80

Calls 2

atMethod · 0.45
resetMethod · 0.45

Tested by

no test coverage detected