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

Struct BuffSpec

internal/buffs/buffspec.go:29–40  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

27)
28
29type BuffSpec struct {
30 BuffId int // Unique identifier for this buff spec
31 Name string // The name of the buff
32 Description string // A description of the buff
33 Secret bool // Whether or not the buff is secret (not displayed to the user)
34 TriggerNow bool `yaml:"triggernow,omitempty"` // if true, buff triggers once right when it is applied
35 TriggerRate string `yaml:"triggerrate,omitempty"` // How often should it trigger? (time string)
36 RoundInterval int `yaml:"roundinterval,omitempty"` // triggers every x rounds
37 TriggerCount int `yaml:"triggercount,omitempty"` // How many times it triggers before it is removed
38 StatMods statmods.StatMods `yaml:"statmods,omitempty"` // stat mods for the duration of the buff
39 Flags []Flag `yaml:"flags,omitempty"` // A list of actions and such that this buff prevents or enables
40}
41
42// Calculates the value of this buff
43func (b *BuffSpec) GetValue() int {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected