remove unused card rank name

This commit is contained in:
Martin Michelsen
2023-08-08 10:56:23 -07:00
parent 7d37a58e6e
commit 6d4430da13
2 changed files with 3 additions and 17 deletions
+1 -1
View File
@@ -5244,7 +5244,7 @@ struct G_IdentifyResult_BB_6xB9 {
struct G_SyncCardTradeState_GC_Ep3_6xBA {
G_ClientIDHeader header;
le_uint16_t what; // Low byte must be < 9; this indexes into a jump table
le_uint16_t what; // Low byte must be < 9; this indexes into a handler table
le_uint16_t unknown_a2;
le_uint32_t unknown_a3;
le_uint32_t unknown_a4;
+2 -16
View File
@@ -838,22 +838,8 @@ void CardDefinition::decode_range() {
}
string name_for_rarity(CardRarity rarity) {
static const vector<const char*> names({
"N1",
"R1",
"S",
"E",
"N2",
"N3",
"N4",
"R2",
"R3",
"R4",
"SS",
"D1",
"D2",
"INVIS",
});
static const vector<const char*> names(
{"N1", "R1", "S", "E", "N2", "N3", "N4", "R2", "R3", "R4", "SS", "D1", "D2"});
try {
return names.at(static_cast<uint8_t>(rarity) - 1);
} catch (const out_of_range&) {