remove unused card rank name
This commit is contained in:
@@ -5244,7 +5244,7 @@ struct G_IdentifyResult_BB_6xB9 {
|
|||||||
|
|
||||||
struct G_SyncCardTradeState_GC_Ep3_6xBA {
|
struct G_SyncCardTradeState_GC_Ep3_6xBA {
|
||||||
G_ClientIDHeader header;
|
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_uint16_t unknown_a2;
|
||||||
le_uint32_t unknown_a3;
|
le_uint32_t unknown_a3;
|
||||||
le_uint32_t unknown_a4;
|
le_uint32_t unknown_a4;
|
||||||
|
|||||||
@@ -838,22 +838,8 @@ void CardDefinition::decode_range() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
string name_for_rarity(CardRarity rarity) {
|
string name_for_rarity(CardRarity rarity) {
|
||||||
static const vector<const char*> names({
|
static const vector<const char*> names(
|
||||||
"N1",
|
{"N1", "R1", "S", "E", "N2", "N3", "N4", "R2", "R3", "R4", "SS", "D1", "D2"});
|
||||||
"R1",
|
|
||||||
"S",
|
|
||||||
"E",
|
|
||||||
"N2",
|
|
||||||
"N3",
|
|
||||||
"N4",
|
|
||||||
"R2",
|
|
||||||
"R3",
|
|
||||||
"R4",
|
|
||||||
"SS",
|
|
||||||
"D1",
|
|
||||||
"D2",
|
|
||||||
"INVIS",
|
|
||||||
});
|
|
||||||
try {
|
try {
|
||||||
return names.at(static_cast<uint8_t>(rarity) - 1);
|
return names.at(static_cast<uint8_t>(rarity) - 1);
|
||||||
} catch (const out_of_range&) {
|
} catch (const out_of_range&) {
|
||||||
|
|||||||
Reference in New Issue
Block a user