This commit is contained in:
aozhiwei 2024-03-29 17:46:06 +08:00
parent 5d9de283df
commit 8f8f91ddbb
2 changed files with 12 additions and 2 deletions

View File

@ -64,11 +64,21 @@ namespace mt
switch (cond().at(0)) {
case '>':
{
if (cond().size() < 2) {
A8_ABORT();
}
if (cond().at(1) == '=') {
_cond_type = InGameVoiceCondType_e::kGE;
_cond_val = a8::XValue(cond().substr(2));
} else {
_cond_type = InGameVoiceCondType_e::kGT;
_cond_val = a8::XValue(cond().substr(1));
}
}
break;
default:
{
_cond_type = InGameVoiceCondType_e::kEq;
_cond_type = InGameVoiceCondType_e::kEQ;
}
break;
}

View File

@ -32,7 +32,7 @@ A8_DECLARE_ENUM(InGameVoiceNotifyObject_e,
A8_DECLARE_ENUM(InGameVoiceCondType_e,
kNone,
kEq,
kEQ,
kGT,
kGE
);