add comments on mag color index

This commit is contained in:
Martin Michelsen
2022-10-01 09:24:13 -07:00
parent c8cb3e61f7
commit c9d62e26ef
+19 -19
View File
@@ -1640,25 +1640,25 @@ string name_for_item(const ItemData& item, bool include_color_codes) {
ret_tokens.emplace_back(move(token)); ret_tokens.emplace_back(move(token));
static const vector<const char*> mag_colors({ static const vector<const char*> mag_colors({
"red", /* 00 */ "red",
"blue", /* 01 */ "blue",
"yellow", /* 02 */ "yellow",
"green", /* 03 */ "green",
"purple", /* 04 */ "purple",
"black", /* 05 */ "black",
"white", /* 06 */ "white",
"cyan", /* 07 */ "cyan",
"brown", /* 08 */ "brown",
"orange", /* 09 */ "orange",
"light blue", /* 0A */ "light blue",
"olive", /* 0B */ "olive",
"light cyan", /* 0C */ "light cyan",
"dark purple", /* 0D */ "dark purple",
"grey", /* 0E */ "grey",
"light grey", /* 0F */ "light grey",
"pink", /* 10 */ "pink",
"dark cyan", /* 11 */ "dark cyan",
"costume color", /* 12 */ "costume color",
}); });
try { try {
ret_tokens.emplace_back(string_printf("(%s)", mag_colors.at(item.data2[0]))); ret_tokens.emplace_back(string_printf("(%s)", mag_colors.at(item.data2[0])));