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

Method GetScriptPath

internal/pets/pets.go:393–395  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

391}
392
393func (p *Pet) GetScriptPath() string {
394 return util.FilePath(configs.GetFilePathsConfig().DataFiles.String(), `/`, `pets`, `/`, strings.Replace(p.Filepath(), `.yaml`, `.js`, 1))
395}
396
397func (p *Pet) HasScript() bool {
398 scriptPath := p.GetScriptPath()

Callers 6

HasScriptMethod · 0.95
GetScriptMethod · 0.95
DeletePetSpecFunction · 0.45
SavePetScriptFunction · 0.45
spell_CreateFunction · 0.45
mob_CreateFunction · 0.45

Calls 4

FilepathMethod · 0.95
FilePathFunction · 0.92
GetFilePathsConfigFunction · 0.92
StringMethod · 0.65

Tested by

no test coverage detected