MCPcopy Create free account
hub / github.com/GoMudEngine/GoMud / AllSlots

Function AllSlots

internal/characters/worn.go:76–78  ·  view source on GitHub ↗

AllSlots returns every equipment slot in canonical display order. Delegates to items.AllEquipSlots() so the single source of truth lives alongside the ItemType constants.

()

Source from the content-addressed store, hash-verified

74// Delegates to items.AllEquipSlots() so the single source of truth lives
75// alongside the ItemType constants.
76func AllSlots() []items.ItemType {
77 return items.AllEquipSlots()
78}
79
80// WeaponSlots returns the slots that hold weapons.
81func WeaponSlots() []items.ItemType {

Callers 15

newSimMobFunction · 0.92
buildPeepInventoryPanelFunction · 0.92
buildInventoryPanelFunction · 0.92
statusBonusesFunction · 0.92
NewMobByIdFunction · 0.92
GetDefenseMethod · 0.85
ValidateMethod · 0.85
GetAllWornItemsMethod · 0.85
GetGearValueMethod · 0.85
RemoveFromBodyMethod · 0.85
UncurseMethod · 0.85

Calls 1

AllEquipSlotsFunction · 0.92

Tested by 3

TestAllSlotsFunction · 0.68
TestWorn_GetFunction · 0.68
TestWorn_SetFunction · 0.68