()
| 154 | } |
| 155 | |
| 156 | func (b *BuffSpec) GetScript() string { |
| 157 | |
| 158 | scriptPath := b.GetScriptPath() |
| 159 | // Load the script into a string |
| 160 | if _, err := os.Stat(scriptPath); err == nil { |
| 161 | if bytes, err := util.ReadFile(scriptPath); err == nil { |
| 162 | return string(bytes) |
| 163 | } |
| 164 | } |
| 165 | |
| 166 | return `` |
| 167 | } |
| 168 | |
| 169 | func (b *BuffSpec) GetScriptPath() string { |
| 170 | // Load any script for the buff |
nothing calls this directly
no test coverage detected