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

Function ValidateBuffIds

internal/mutators/admin.go:27–34  ·  view source on GitHub ↗
(ids []int)

Source from the content-addressed store, hash-verified

25}
26
27func ValidateBuffIds(ids []int) error {
28 for _, id := range ids {
29 if buffs.GetBuffSpec(id) == nil {
30 return fmt.Errorf("invalid buff id: %d", id)
31 }
32 }
33 return nil
34}
35
36func ValidateSpec(spec *MutatorSpec) error {
37 if err := ValidateMutatorId(spec.MutatorId); err != nil {

Callers 1

ValidateSpecFunction · 0.85

Calls 1

GetBuffSpecFunction · 0.92

Tested by

no test coverage detected