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));
static const vector<const char*> mag_colors({
"red",
"blue",
"yellow",
"green",
"purple",
"black",
"white",
"cyan",
"brown",
"orange",
"light blue",
"olive",
"light cyan",
"dark purple",
"grey",
"light grey",
"pink",
"dark cyan",
"costume color",
/* 00 */ "red",
/* 01 */ "blue",
/* 02 */ "yellow",
/* 03 */ "green",
/* 04 */ "purple",
/* 05 */ "black",
/* 06 */ "white",
/* 07 */ "cyan",
/* 08 */ "brown",
/* 09 */ "orange",
/* 0A */ "light blue",
/* 0B */ "olive",
/* 0C */ "light cyan",
/* 0D */ "dark purple",
/* 0E */ "grey",
/* 0F */ "light grey",
/* 10 */ "pink",
/* 11 */ "dark cyan",
/* 12 */ "costume color",
});
try {
ret_tokens.emplace_back(string_printf("(%s)", mag_colors.at(item.data2[0])));