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

Function CompileAdjectiveSwaps

internal/characters/formattedname.go:122–134  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

120}
121
122func CompileAdjectiveSwaps() {
123 clear(adjectiveSwaps)
124 for adjName, styleDefinition := range adjectiveStyles {
125 adjectiveSwaps[adjName] = colorpatterns.ApplyColorPattern(styleDefinition.LongForm, styleDefinition.ColorPattern)
126 adjectiveSwaps[adjName+`-short`] = colorpatterns.ApplyColorPattern(styleDefinition.ShortForm, styleDefinition.ColorPattern)
127 }
128
129 /*
130 for _, name := range GetFormattedAdjectives(true) {
131 mudlog.Info("Color Test (Adjectives)", "name", name, "short", ansitags.Parse(GetFormattedAdjective(name+`-short`)), "full", ansitags.Parse(GetFormattedAdjective(name)))
132 }
133 */
134}

Callers 1

loadAllDataFilesFunction · 0.92

Calls 1

ApplyColorPatternFunction · 0.92

Tested by

no test coverage detected