MCPcopy Create free account
hub / github.com/FloatTech/ZeroBot-Plugin-Playground / idmap

Method idmap

plugin/klala/x.go:72–85  ·  view source on GitHub ↗

Idmap wifeid->wifename

(typ, val string)

Source from the content-addressed store, hash-verified

70
71// Idmap wifeid->wifename
72func (m FindMap) idmap(typ, val string) string {
73 if typ == "wife" {
74 f, b := m.Characters[val]
75 if !b {
76 return ""
77 }
78 return f[0]
79 }
80 f, b := m.LightCones[val]
81 if !b {
82 return ""
83 }
84 return f[0]
85}
86
87func getLights() (m lightmap) {
88 txt, _ := os.ReadFile(lightJSONPath)

Callers 2

convertDataMethod · 0.80
initFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected