()
| 167 | } |
| 168 | |
| 169 | func (b *BuffSpec) GetScriptPath() string { |
| 170 | // Load any script for the buff |
| 171 | |
| 172 | buffFilePath := b.Filename() |
| 173 | scriptFilePath := strings.Replace(buffFilePath, `.yaml`, `.js`, 1) |
| 174 | |
| 175 | fullScriptPath := strings.Replace(string(configs.GetFilePathsConfig().DataFiles)+`/buffs/`+b.Filepath(), |
| 176 | buffFilePath, |
| 177 | scriptFilePath, |
| 178 | 1) |
| 179 | |
| 180 | return util.FilePath(fullScriptPath) |
| 181 | } |
| 182 | |
| 183 | // file self loads due to init() |
| 184 | func LoadDataFiles() { |
no test coverage detected