describe card effect name_index field
This commit is contained in:
@@ -671,7 +671,7 @@ bool CardDefinition::Effect::is_empty() const {
|
|||||||
this->arg2.is_filled_with(0) &&
|
this->arg2.is_filled_with(0) &&
|
||||||
this->arg3.is_filled_with(0) &&
|
this->arg3.is_filled_with(0) &&
|
||||||
this->apply_criterion == CriterionCode::NONE &&
|
this->apply_criterion == CriterionCode::NONE &&
|
||||||
this->unknown_a2 == 0);
|
this->name_index == 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
string CardDefinition::Effect::str_for_arg(const string& arg) {
|
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(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);
|
return join(tokens, separator);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -488,7 +488,10 @@ struct CardDefinition {
|
|||||||
/* 16 */ ptext<char, 4> arg2;
|
/* 16 */ ptext<char, 4> arg2;
|
||||||
/* 1A */ ptext<char, 4> arg3;
|
/* 1A */ ptext<char, 4> arg3;
|
||||||
/* 1E */ CriterionCode apply_criterion;
|
/* 1E */ CriterionCode apply_criterion;
|
||||||
/* 1F */ uint8_t unknown_a2;
|
// name_index specifies which string from TextEnglish.pr2 is shown next to
|
||||||
|
// the card when it is attacking or defending. Zero in this field means no
|
||||||
|
// string is shown for this ability.
|
||||||
|
/* 1F */ uint8_t name_index;
|
||||||
/* 20 */
|
/* 20 */
|
||||||
|
|
||||||
bool is_empty() const;
|
bool is_empty() const;
|
||||||
|
|||||||
Reference in New Issue
Block a user