| 372 | } |
| 373 | |
| 374 | void 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 | |
| 386 | void Humanoid::removeWearable(uint8_t slot) { |
| 387 | auto& fashion = *m_fashion; |