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

Method GetScriptPath

internal/spells/spells.go:181–184  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

179}
180
181func (s *SpellData) GetScriptPath() string {
182 // Load any script for the room
183 return util.FilePath(strings.Replace(string(configs.GetFilePathsConfig().DataFiles)+`/spells/`+s.Filepath(), `.yaml`, `.js`, 1))
184}
185
186func LoadSpellFiles() {
187

Callers 10

GetScriptMethod · 0.95
DeleteSpellSpecFunction · 0.45
SaveSpellScriptFunction · 0.45
CreateNewSpellFileFunction · 0.45
getSpellVMFunction · 0.45
getRoomVMFunction · 0.45
getItemVMFunction · 0.45
getBuffVMFunction · 0.45
getPetVMFunction · 0.45
getMobVMFunction · 0.45

Calls 3

FilepathMethod · 0.95
FilePathFunction · 0.92
GetFilePathsConfigFunction · 0.92

Tested by

no test coverage detected