Add TextCategory enum

This commit is contained in:
Tal Hayon
2022-04-27 00:01:22 +03:00
parent f899598843
commit 4de453b4de
67 changed files with 1197 additions and 679 deletions
+2 -2
View File
@@ -81,7 +81,7 @@ void ObjectB_Action1(ObjectBEntity* this) {
tmp = GetInventoryValue((u32)super->type);
ptr = &gItemMetaData[super->type];
if (tmp == 0) {
this->unk_68 = *(u16*)&ptr->unk4;
this->unk_68 = *(u16*)&ptr->textId;
} else {
this->unk_68 = *(u16*)&ptr->unk6;
}
@@ -114,7 +114,7 @@ void ObjectB_Action2(ObjectBEntity* this) {
break;
case 0x3f:
if (super->type2 > 1) {
if (messageIndex == 0x577) {
if (messageIndex == TEXT_INDEX(TEXT_ITEM_GET, 0x77)) {
messageIndex--;
} else {
messageIndex++;