Code:
void PrintBaseFilterCodes() {
vector<string> normalsubtypes = {"Boots", "Gloves", "Belts", "Daggers", "Throwing", "Javelins", "Crossbows", "Potion"};
vector<string> magicsubtypes = {"Helms", "Body Armor", "Shields", "Gloves", "Boots", "Belts", "Druid Pelts", "Barbarian Helms", "Paladin Shields", "Necromancer Shrunken Heads", "Axes",
"Maces", "Swords", "Daggers", "Throwing", "Javelins", "Spears", "Polearms", "Bows", "Crossbows", "Staves", "Wands", "Scepters", "Assassin Katars", "Sorceress Orbs", "Amazon Weapons"};
int c = 1;
printf("%d=dy1,whatever,purple\n", c++);
printf("%d=dy2,whatever,purple\n", c++);
printf("%d=dy3,whatever,purple\n", c++);
printf("%d=dy4,whatever,purple\n", c++);
printf("%d=dy5,whatever,purple\n", c++);
printf("%d=dy6,whatever,purple\n", c++);
printf("%d=dy7,whatever,purple\n", c++);
printf("%d=dy8,whatever,purple\n", c++);
for (auto i : itemcodes::itemcodes) {
string adj = i.code.size() == 3 ? i.code + ' ' : i.code;
if (find(normalsubtypes.begin(), normalsubtypes.end(), i.subtype) != normalsubtypes.end()) {
if (i.type != "Full Rejuv Potion" && i.type != "elixir") {
printf("%d=%s,low,hide\n", c++, adj.c_str());
printf("%d=%s,normal,hide\n", c++, adj.c_str());
printf("%d=%s,superior,hide\n", c++, adj.c_str());
}
}
if (find(magicsubtypes.begin(), magicsubtypes.end(), i.subtype) != magicsubtypes.end()) {
if (i.type != "Circlet" && i.type != "Coronet" && i.type != "Tiara" && i.type != "Diadem"
&& i.type != "Maiden Javelin" && i.type != "Ceremonial Javalin" && i.type != "Matriarchal Javalin"
&& i.type != "Monarch") {
printf("%d=%s,magic,hide\n", c++, adj.c_str());
}
}
}
printf("%d=cqv ,magic,hide\n", c++);
printf("%d=cqv2,magic,hide\n", c++);
printf("%d=cqv3,magic,hide\n", c++);
printf("%d=aqv ,magic,hide\n", c++);
printf("%d=aqv2,magic,hide\n", c++);
printf("%d=aqv3,magic,hide\n", c++);
printf("%d=tsc ,normal,hide\n", c++);
printf("%d=isc ,normal,hide\n", c++);
GETCH()
}