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

Method StatMod

internal/characters/worn.go:130–136  ·  view source on GitHub ↗
(stat ...string)

Source from the content-addressed store, hash-verified

128}
129
130func (w *Worn) StatMod(stat ...string) int {
131 total := 0
132 for _, slot := range AllSlots() {
133 total += w.Get(slot).StatMod(stat...)
134 }
135 return total
136}
137
138func (w *Worn) EnableAll() {
139 for _, slot := range AllSlots() {

Callers 2

combatAttackCountFunction · 0.45
calculateCombatFunction · 0.45

Calls 2

GetMethod · 0.95
AllSlotsFunction · 0.85

Tested by

no test coverage detected