| 27 | ) |
| 28 | |
| 29 | type 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 |
| 43 | func (b *BuffSpec) GetValue() int { |
nothing calls this directly
no outgoing calls
no test coverage detected