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

Method naked

source/frontend/StarClientCommandProcessor.cpp:333–338  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

331}
332
333String ClientCommandProcessor::naked() {
334 auto playerInventory = m_universeClient->mainPlayer()->inventory();
335 for (auto slot : EquipmentSlotNames.leftValues())
336 playerInventory->addItems(playerInventory->addToBags(playerInventory->takeSlot(slot)));
337 return "You are now naked";
338}
339
340String ClientCommandProcessor::resetAchievements() {
341 if (!adminCommandAllowed())

Callers

nothing calls this directly

Calls 6

inventoryMethod · 0.80
mainPlayerMethod · 0.80
leftValuesMethod · 0.80
addToBagsMethod · 0.80
takeSlotMethod · 0.80
addItemsMethod · 0.45

Tested by

no test coverage detected