describe card effect name_index field

This commit is contained in:
Martin Michelsen
2023-10-08 12:35:34 -07:00
parent 8df36ea3c2
commit 948985b057
2 changed files with 6 additions and 3 deletions
+2 -2
View File
@@ -671,7 +671,7 @@ bool CardDefinition::Effect::is_empty() const {
this->arg2.is_filled_with(0) &&
this->arg3.is_filled_with(0) &&
this->apply_criterion == CriterionCode::NONE &&
this->unknown_a2 == 0);
this->name_index == 0);
}
string CardDefinition::Effect::str_for_arg(const string& arg) {
@@ -761,7 +761,7 @@ string CardDefinition::Effect::str(const char* separator) const {
}
tokens.emplace_back(std::move(cond_str));
}
tokens.emplace_back(string_printf("a2=%02hhX", this->unknown_a2));
tokens.emplace_back(string_printf("name_index=%02hhX", this->name_index));
return join(tokens, separator);
}