mirror of
https://github.com/ACreTeam/ac-decomp
synced 2026-08-04 00:39:06 -04:00
Merge pull request #442 from Cuyler36/m_tag_ovl
This commit is contained in:
@@ -37,7 +37,6 @@ enum {
|
||||
#define aMR_FTR_BANK_NUM 100
|
||||
#define aMR_FTR_BANK_SIZE 0x800
|
||||
|
||||
#define aMR_CLIP (Common_Get(clip).my_room_clip)
|
||||
#define aMR_BOUNDS_OK(x, z) \
|
||||
((x) > (aMR_MIN_BOUND - 1) && (x) < (aMR_MAX_BOUND + 1) && (z) > (aMR_MIN_BOUND - 1) && (z) < (aMR_MAX_BOUND + 1))
|
||||
|
||||
|
||||
@@ -1863,14 +1863,14 @@ static int aMR_JudgeBreedNewFurniture(GAME* game, u16 ftr_no, int* ut_x, int* ut
|
||||
u16 angle;
|
||||
|
||||
if (mCoBG_CheckUtFlat(&player_pos) == FALSE) {
|
||||
return -2;
|
||||
return aMR_JUDGE_CANT_PLACE_FTR;
|
||||
}
|
||||
|
||||
if (aMR_CLIP != NULL && my_room != NULL && aMR_CheckReserveFlag(my_room, 0) == FALSE) {
|
||||
*rotation = 0;
|
||||
*square_offset = 0;
|
||||
*layer = 0;
|
||||
return -2;
|
||||
return aMR_JUDGE_CANT_PLACE_FTR;
|
||||
}
|
||||
|
||||
aMR_Wpos2PlaceNumber(&cur_ut_x, &cur_ut_z, player_pos, 0);
|
||||
@@ -1907,7 +1907,7 @@ static int aMR_JudgeBreedNewFurniture(GAME* game, u16 ftr_no, int* ut_x, int* ut
|
||||
|
||||
for (i = 0; i < 5; i++) {
|
||||
if (aMR_WeightPossible((ACTOR*)my_room, profile->shape) == FALSE) {
|
||||
return -1;
|
||||
return aMR_JUDGE_MAX_FTR;
|
||||
}
|
||||
|
||||
target_ut_x = cur_ut_x;
|
||||
@@ -1975,7 +1975,7 @@ static int aMR_JudgeBreedNewFurniture(GAME* game, u16 ftr_no, int* ut_x, int* ut
|
||||
for (i = 0; i < 5; i++) {
|
||||
angle_idx = (int)angle_idx;
|
||||
if (aMR_WeightPossible((ACTOR*)my_room, profile->shape) == FALSE) {
|
||||
return -1;
|
||||
return aMR_JUDGE_MAX_FTR;
|
||||
}
|
||||
|
||||
target_ut_x = cur_ut_x;
|
||||
@@ -2084,16 +2084,16 @@ static int aMR_JudgeBreedNewFurniture(GAME* game, u16 ftr_no, int* ut_x, int* ut
|
||||
}
|
||||
}
|
||||
|
||||
return -2;
|
||||
return aMR_JUDGE_CANT_PLACE_FTR;
|
||||
}
|
||||
}
|
||||
|
||||
return -1;
|
||||
return aMR_JUDGE_MAX_FTR;
|
||||
} else {
|
||||
*rotation = 0;
|
||||
*square_offset = 0;
|
||||
*layer = 0;
|
||||
return -3;
|
||||
return aMR_JUDGE_OTHER_ROOM;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -57,7 +57,7 @@ static void aSL_SetShopRenewalChirashi_Notice(int shop_level, lbRTC_time_c* time
|
||||
mHandbill_Load_HandbillFromRom(content->header, &header_back_start, content->footer, content->body,
|
||||
renewal_chirashi_bunmen[shop_level & 3]);
|
||||
content->header_back_start = header_back_start;
|
||||
content->font = mMl_FONT_0;
|
||||
content->font = mMl_FONT_RECV;
|
||||
content->paper_type = (u8)ITM_PAPER55;
|
||||
content->mail_type = mMl_TYPE_SHOP_SALE_LEAFLET;
|
||||
mPr_CopyPersonalID(&mail.header.recipient.personalID, &Save_Get(private_data[player_no]).player_ID);
|
||||
|
||||
+2
-1
@@ -1194,7 +1194,8 @@ static void mBD_set_writing_header(Submenu* submenu, GAME* game, mSM_MenuInfo_c*
|
||||
mem_copy(tmp_header, mail_content->header, board_ovl->lengths[mBD_FIELD_HEADER]);
|
||||
len = board_ovl->lengths[mBD_FIELD_HEADER];
|
||||
} else if (mail_content->mail_type == mMl_TYPE_SHOP_SALE_LEAFLET ||
|
||||
mail_content->mail_type == mMl_TYPE_BROKER_SALE_LEAFLET || mail_content->mail_type == mMl_TYPE_5) {
|
||||
mail_content->mail_type == mMl_TYPE_BROKER_SALE_LEAFLET ||
|
||||
mail_content->mail_type == mMl_TYPE_OMIKUJI) {
|
||||
mem_copy(tmp_header, mail_content->header, MAIL_HEADER_LEN);
|
||||
len = MAIL_HEADER_LEN;
|
||||
} else {
|
||||
|
||||
+1
-1
@@ -560,7 +560,7 @@ static void mCL_move_Play(Submenu* submenu, mSM_MenuInfo_c* menu_info) {
|
||||
submenu->overlay->menu_control.tag_move_func(submenu, menu_info);
|
||||
|
||||
if (catalog_ovl->change_flag) {
|
||||
catalog_ovl->menu_data[catalog_ovl->page_order[0]].y_idx = submenu->overlay->tag_ovl->tags[0]._40;
|
||||
catalog_ovl->menu_data[catalog_ovl->page_order[0]].y_idx = submenu->overlay->tag_ovl->tags[0].tag_row;
|
||||
mCL_item_data_set(submenu, catalog_ovl->page_order[0]);
|
||||
catalog_ovl->change_flag = FALSE;
|
||||
} else {
|
||||
|
||||
+1
-1
@@ -454,7 +454,7 @@ static void mFR_GetFishPresentMail(mFR_record_c* record, Mail_c* mail) {
|
||||
);
|
||||
|
||||
mail->content.header_back_start = header_back_start;
|
||||
mail->content.font = mMl_FONT_0;
|
||||
mail->content.font = mMl_FONT_RECV;
|
||||
mail->content.mail_type = mMl_TYPE_FISHING_CONTENST;
|
||||
mail->present = present;
|
||||
mail->content.paper_type = 15; // deep sea paper
|
||||
|
||||
+16
-16
@@ -86,7 +86,7 @@ static void mHD_hand_pos_get(Submenu* submenu, f32* pos, int table_type, int tab
|
||||
pos[1] += 23.0f;
|
||||
}
|
||||
} else if ((table_type == mTG_TABLE_GBA || table_type == mTG_TABLE_GBA_NW || table_type == mTG_TABLE_CARD ||
|
||||
table_type == mTG_TABLE_GBA_NW2 || table_type == mTG_TABLE_CPORIGINAL ||
|
||||
table_type == mTG_TABLE_CARD_NW || table_type == mTG_TABLE_CPORIGINAL ||
|
||||
table_type == mTG_TABLE_CPORIGINAL_NW) &&
|
||||
item != EMPTY_NO) {
|
||||
pos[0] += -2.0f;
|
||||
@@ -178,7 +178,7 @@ static void mHD_drop_item(Submenu* submenu, mTG_tag_c* tag, mActor_name_t* item,
|
||||
table = tag->table;
|
||||
}
|
||||
|
||||
if (item != NULL && *item != EMPTY_NO && table != mTG_TABLE_GBA_NW2 && table != mTG_TABLE_GBA_NW) {
|
||||
if (item != NULL && *item != EMPTY_NO && table != mTG_TABLE_CARD_NW && table != mTG_TABLE_GBA_NW) {
|
||||
now_item = *item;
|
||||
mTG_mark_mainX(submenu, menu_info, table, table_idx, 2, 0);
|
||||
|
||||
@@ -222,11 +222,11 @@ static void mHD_drop_item(Submenu* submenu, mTG_tag_c* tag, mActor_name_t* item,
|
||||
sAdo_SysTrgStart(NA_SE_41C);
|
||||
|
||||
if (mail != NULL) {
|
||||
if (mail->content.font == mMl_FONT_0) {
|
||||
mail->content.font = mMl_FONT_3;
|
||||
if (mail->content.font == mMl_FONT_RECV) {
|
||||
mail->content.font = mMl_FONT_RECV_PLAYER_PRESENT;
|
||||
hand_ovl->info.item_cond = mPr_ITEM_COND_PRESENT;
|
||||
} else if (mail->content.font == mMl_FONT_2) {
|
||||
mail->content.font = mMl_FONT_4;
|
||||
} else if (mail->content.font == mMl_FONT_RECV_READ) {
|
||||
mail->content.font = mMl_FONT_RECV_PLAYER_PRESENT_READ;
|
||||
hand_ovl->info.item_cond = mPr_ITEM_COND_PRESENT;
|
||||
}
|
||||
}
|
||||
@@ -280,16 +280,16 @@ static void mHD_drop_item(Submenu* submenu, mTG_tag_c* tag, mActor_name_t* item,
|
||||
|
||||
mTG_mark_mainX(submenu, menu_info, table, table_idx, 2, 0);
|
||||
|
||||
if (table == mTG_TABLE_GBA_NW || table == mTG_TABLE_GBA_NW2) {
|
||||
if (table == mTG_TABLE_GBA_NW || table == mTG_TABLE_CARD_NW) {
|
||||
mGB_copy_image(submenu, hand_ovl->info.item, *item);
|
||||
} else if (item != NULL) {
|
||||
*item = hand_ovl->info.item;
|
||||
|
||||
if (mail != NULL) {
|
||||
if (mail->content.font == mMl_FONT_0) {
|
||||
mail->content.font = mMl_FONT_3;
|
||||
} else if (mail->content.font == mMl_FONT_2) {
|
||||
mail->content.font = mMl_FONT_4;
|
||||
if (mail->content.font == mMl_FONT_RECV) {
|
||||
mail->content.font = mMl_FONT_RECV_PLAYER_PRESENT;
|
||||
} else if (mail->content.font == mMl_FONT_RECV_READ) {
|
||||
mail->content.font = mMl_FONT_RECV_PLAYER_PRESENT_READ;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -452,7 +452,7 @@ static void mHD_open_sack(Submenu* submenu) {
|
||||
hand_ovl->info.next_act = mHD_ACTION_SASU;
|
||||
hand_ovl->info.wait_timer = 42;
|
||||
sAdo_SysTrgStart(MONO(NA_SE_52));
|
||||
submenu->overlay->inventory_ovl->disp_money_change_frames = amount / 42;
|
||||
submenu->overlay->inventory_ovl->disp_money_chg_step = amount / 42;
|
||||
}
|
||||
|
||||
static void mHD_drop_mail(Submenu* submenu, Mail_c* mail) {
|
||||
@@ -564,8 +564,8 @@ static void mHD_open_end_proc_item_type6(Submenu* submenu, int idx, int table) {
|
||||
mHD_drop_item(submenu, tag, &Save_Get(homes[menu_info->data1]).haniwa.items[idx].item, NULL);
|
||||
if (flag == TRUE) {
|
||||
submenu->overlay->tag_ovl->item_name_wait_time = 0;
|
||||
submenu->overlay->tag_ovl->chg_tag_func_proc(submenu, tag->table, mTG_TYPE_HANIWA_PUT_ITEM, 0, tag->pos[0],
|
||||
tag->pos[1]);
|
||||
submenu->overlay->tag_ovl->chg_tag_func_proc(submenu, tag->table, mTG_TYPE_HANIWA_PUT_ITEM, 0, tag->base_pos[0],
|
||||
tag->base_pos[1]);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -589,7 +589,7 @@ static void mHD_open_end_proc_item_type17(Submenu* submenu, int idx, int table)
|
||||
}
|
||||
break;
|
||||
case mTG_TABLE_GBA_NW:
|
||||
case mTG_TABLE_GBA_NW2:
|
||||
case mTG_TABLE_CARD_NW:
|
||||
tmp_item = RSV_NW_ORIGINAL0 + idx;
|
||||
break;
|
||||
case mTG_TABLE_CPORIGINAL:
|
||||
@@ -664,7 +664,7 @@ static void mHD_open_end_proc_item(Submenu* submenu) {
|
||||
&mHD_open_end_proc_item_type17, /* mTG_TABLE_GBA */
|
||||
&mHD_open_end_proc_item_type17, /* mTG_TABLE_GBA_NW */
|
||||
&mHD_open_end_proc_item_type17, /* mTG_TABLE_CARD */
|
||||
&mHD_open_end_proc_item_type17, /* mTG_TABLE_GBA_NW2 */
|
||||
&mHD_open_end_proc_item_type17, /* mTG_TABLE_CARD_NW */
|
||||
};
|
||||
|
||||
mSM_MenuInfo_c* menu_info;
|
||||
|
||||
+10
-10
@@ -1259,7 +1259,7 @@ static void mIV_move_Play(Submenu* submenu, mSM_MenuInfo_c* menu_info) {
|
||||
case mSM_IV_OPEN_MINIDISK:
|
||||
case mSM_IV_OPEN_SHRINE:
|
||||
case mSM_IV_OPEN_CURATOR:
|
||||
case mSM_IV_OPEN_16:
|
||||
case mSM_IV_OPEN_PASSWORD:
|
||||
submenu->overlay->tag_ovl->chg_tag_func_proc(submenu, mTG_TABLE_ITEM, mTG_TYPE_NONE, unselected_num,
|
||||
0.0f, 0.0f);
|
||||
break;
|
||||
@@ -1274,7 +1274,7 @@ static void mIV_move_Play(Submenu* submenu, mSM_MenuInfo_c* menu_info) {
|
||||
0.0f, 0.0f);
|
||||
tag_ovl->item_name_wait_time = 0;
|
||||
submenu->overlay->tag_ovl->chg_tag_func_proc(submenu, mTG_TABLE_ITEM, mTG_TYPE_QUEST_ITEM, 0,
|
||||
tag_ovl->tags[0].pos[0], tag_ovl->tags[0].pos[1]);
|
||||
tag_ovl->tags[0].base_pos[0], tag_ovl->tags[0].base_pos[1]);
|
||||
break;
|
||||
case mSM_IV_OPEN_SEND_MAIL:
|
||||
submenu->overlay->tag_ovl->chg_tag_func_proc(submenu, mTG_TABLE_MAIL, mTG_TYPE_NONE, unselected_num,
|
||||
@@ -1708,10 +1708,10 @@ static void mIV_set_mail(Submenu* submenu, mSM_MenuInfo_c* menu_info, GRAPH* gra
|
||||
int menu_flag;
|
||||
int mark_flag;
|
||||
|
||||
if (inv_ovl->remove_timer > 0 && (tag->table == mTG_TABLE_MAIL || inv_ovl->_5E4 == 1)) {
|
||||
if (inv_ovl->_5E4 == 1) {
|
||||
select_mask = inv_ovl->_5E2;
|
||||
} else if (inv_ovl->_5E4 == 0) {
|
||||
if (inv_ovl->remove_timer > 0 && (tag->table == mTG_TABLE_MAIL || inv_ovl->mail_mark_flag == TRUE)) {
|
||||
if (inv_ovl->mail_mark_flag == TRUE) {
|
||||
select_mask = inv_ovl->mail_mark_bitfield2;
|
||||
} else if (inv_ovl->mail_mark_flag == FALSE) {
|
||||
select_mask = 1 << tag_ovl->get_table_idx_proc(tag);
|
||||
}
|
||||
}
|
||||
@@ -1739,7 +1739,7 @@ static void mIV_set_mail(Submenu* submenu, mSM_MenuInfo_c* menu_info, GRAPH* gra
|
||||
scale = 1.0f;
|
||||
}
|
||||
|
||||
if ((inv_ovl->_5E2 & (1 << i)) != 0 && inv_ovl->_5E4 == 0) {
|
||||
if ((inv_ovl->mail_mark_bitfield2 & (1 << i)) != 0 && inv_ovl->mail_mark_flag == FALSE) {
|
||||
mark_flag = TRUE;
|
||||
} else {
|
||||
mark_flag = FALSE;
|
||||
@@ -1992,7 +1992,7 @@ static void mIV_inventory_ovl_init(Submenu* submenu, mSM_MenuInfo_c* menu_info,
|
||||
break;
|
||||
}
|
||||
|
||||
case mSM_IV_OPEN_16: {
|
||||
case mSM_IV_OPEN_PASSWORD: {
|
||||
inv_ovl->selectable_item_bitfield = menu_info->data1;
|
||||
inv_ovl->selectable_mail_bitfield = 0;
|
||||
break;
|
||||
@@ -2079,9 +2079,9 @@ static void mIV_inventory_ovl_init(Submenu* submenu, mSM_MenuInfo_c* menu_info,
|
||||
inv_ovl->page_order[1] = mIV_PAGE_FISH_COLLECTION;
|
||||
inv_ovl->page_order[2] = mIV_PAGE_INSECT_COLLECTION;
|
||||
inv_ovl->page_move_timer = 0;
|
||||
inv_ovl->_5E4 = 0;
|
||||
inv_ovl->mail_mark_flag = FALSE;
|
||||
inv_ovl->item_mark_bitfield = 0;
|
||||
inv_ovl->_5E2 = 0;
|
||||
inv_ovl->mail_mark_bitfield2 = 0;
|
||||
inv_ovl->wc_flag = FALSE;
|
||||
|
||||
if (menu_info->data0 == mSM_IV_OPEN_MAILBOX) {
|
||||
|
||||
+2
-2
@@ -199,7 +199,7 @@ extern int mMl_check_send_mail(Mail_c* mail) {
|
||||
extern int mMl_check_set_present_myself(Mail_c* mail) {
|
||||
u8 font = mail->content.font;
|
||||
|
||||
if (font == mMl_FONT_SEND || font == mMl_FONT_3 || font == mMl_FONT_4) {
|
||||
if (font == mMl_FONT_SEND || font == mMl_FONT_RECV_PLAYER_PRESENT || font == mMl_FONT_RECV_PLAYER_PRESENT_READ) {
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
@@ -235,7 +235,7 @@ static void mMl_get_mail_to_player_com(Mail_c* mail, PersonalID_c* recipient_pid
|
||||
|
||||
mMl_clear_mail(mail);
|
||||
(*get_proc[proc_type])(mail, mail_no);
|
||||
mail->content.font = mMl_FONT_0;
|
||||
mail->content.font = mMl_FONT_RECV;
|
||||
mail->content.mail_type = mail_type;
|
||||
|
||||
mPr_CopyPersonalID(&mail->header.recipient.personalID, recipient_pid);
|
||||
|
||||
+1
-1
@@ -70,7 +70,7 @@ static int mMkRm_NoMarkLetter(int arrange_idx, int handbill_no) {
|
||||
|
||||
mMl_clear_mail(&mail);
|
||||
mHandbill_Load_HandbillFromRom(mail.content.header, &header_back_start, mail.content.footer, mail.content.body, handbill_no);
|
||||
mail.content.font = mMl_FONT_0;
|
||||
mail.content.font = mMl_FONT_RECV;
|
||||
mail.content.header_back_start = header_back_start;
|
||||
mail.content.mail_type = mMl_TYPE_HRA;
|
||||
mail.content.paper_type = 51; /* wing paper */
|
||||
|
||||
@@ -2932,7 +2932,7 @@ static void mMkRm_SendMarkLetter(mHm_hs_c* house, int points, int room_size, u8*
|
||||
mMl_clear_mail(&letter);
|
||||
mHandbill_Load_HandbillFromRom(letter.content.header, &header_back_start, letter.content.footer,
|
||||
letter.content.body, handbill_no);
|
||||
letter.content.font = mMl_FONT_0;
|
||||
letter.content.font = mMl_FONT_RECV;
|
||||
letter.content.header_back_start = header_back_start;
|
||||
letter.content.mail_type = mMl_TYPE_HRA;
|
||||
letter.content.paper_type = 51; /* wing paper */
|
||||
|
||||
+3
-3
@@ -1571,7 +1571,7 @@ static void mNpc_GetRemailData(Mail_c* mail, PersonalID_c* pid, AnmPersonalID_c*
|
||||
int paper_no;
|
||||
|
||||
(*get_remail[cond])(mail, pid, anm_id, remail, foreign);
|
||||
mail->content.font = mMl_FONT_0;
|
||||
mail->content.font = mMl_FONT_RECV;
|
||||
mail->content.mail_type = mMl_TYPE_MAIL;
|
||||
mPr_CopyPersonalID(&mail->header.recipient.personalID, pid);
|
||||
mail->header.recipient.type = mMl_NAME_TYPE_PLAYER;
|
||||
@@ -1680,7 +1680,7 @@ static void mNpc_LoadMailDataCommon2(Mail_c* mail, PersonalID_c* pid, AnmPersona
|
||||
mem_copy(mail->content.header, super, MAIL_HEADER_LEN);
|
||||
mem_copy(mail->content.footer, ps, MAIL_FOOTER_LEN);
|
||||
mail->content.header_back_start = header_back_start;
|
||||
mail->content.font = mMl_FONT_0;
|
||||
mail->content.font = mMl_FONT_RECV;
|
||||
mail->content.mail_type = mMl_TYPE_MAIL;
|
||||
mPr_CopyPersonalID(&mail->header.recipient.personalID, pid);
|
||||
mail->header.recipient.type = mMl_NAME_TYPE_PLAYER;
|
||||
@@ -1920,7 +1920,7 @@ static void mNpc_GetXmasCardData(Mail_c* mail, PersonalID_c* pid) {
|
||||
mHandbill_Load_HandbillFromRom(mail->content.header, &header_back_start, mail->content.footer, mail->content.body,
|
||||
0xD7);
|
||||
mail->content.header_back_start = header_back_start;
|
||||
mail->content.font = mMl_FONT_0;
|
||||
mail->content.font = mMl_FONT_RECV;
|
||||
mail->content.mail_type = mMl_TYPE_XMAS;
|
||||
mPr_CopyPersonalID(&mail->header.recipient.personalID, pid);
|
||||
mail->header.recipient.type = mMl_NAME_TYPE_PLAYER;
|
||||
|
||||
+1
-1
@@ -164,7 +164,7 @@ static void mPO_delivery_mail_with_item(Mail_c* mail, int mail_no, mActor_name_t
|
||||
mHandbill_Load_HandbillFromRom(mail->content.header, &header_back_start, mail->content.footer, mail->content.body,
|
||||
mail_no);
|
||||
|
||||
mail->content.font = mMl_FONT_0;
|
||||
mail->content.font = mMl_FONT_RECV;
|
||||
mail->content.header_back_start = header_back_start;
|
||||
mail->content.mail_type = 7;
|
||||
mail->content.paper_type = ITM_PAPER55;
|
||||
|
||||
+6
-6
@@ -436,7 +436,7 @@ extern int mPr_GetPossessionItemIdxKindWithCond(Private_c* priv, mActor_name_t k
|
||||
return idx;
|
||||
}
|
||||
|
||||
extern int mPr_GetPossessionItemSum(Private_c* priv, mActor_name_t item) {
|
||||
extern u32 mPr_GetPossessionItemSum(Private_c* priv, mActor_name_t item) {
|
||||
int sum = 0;
|
||||
|
||||
if (priv != NULL) {
|
||||
@@ -454,7 +454,7 @@ extern int mPr_GetPossessionItemSum(Private_c* priv, mActor_name_t item) {
|
||||
return sum;
|
||||
}
|
||||
|
||||
extern int mPr_GetPossessionItemSumWithCond(Private_c* priv, mActor_name_t item, u32 cond) {
|
||||
extern u32 mPr_GetPossessionItemSumWithCond(Private_c* priv, mActor_name_t item, u32 cond) {
|
||||
int sum = 0;
|
||||
|
||||
if (priv != NULL) {
|
||||
@@ -472,7 +472,7 @@ extern int mPr_GetPossessionItemSumWithCond(Private_c* priv, mActor_name_t item,
|
||||
return sum;
|
||||
}
|
||||
|
||||
extern int mPr_GetPossessionItemSumFGTypeWithCond_cancel(Private_c* priv, mActor_name_t fg_type, u32 cond,
|
||||
extern u32 mPr_GetPossessionItemSumFGTypeWithCond_cancel(Private_c* priv, mActor_name_t fg_type, u32 cond,
|
||||
mActor_name_t cancel_item) {
|
||||
int sum = 0;
|
||||
|
||||
@@ -492,7 +492,7 @@ extern int mPr_GetPossessionItemSumFGTypeWithCond_cancel(Private_c* priv, mActor
|
||||
return sum;
|
||||
}
|
||||
|
||||
extern int mPr_GetPossessionItemSumItemCategoryWithCond_cancel(Private_c* priv, u8 item1_type, u32 cond,
|
||||
extern u32 mPr_GetPossessionItemSumItemCategoryWithCond_cancel(Private_c* priv, u8 item1_type, u32 cond,
|
||||
mActor_name_t cancel_item) {
|
||||
int sum = 0;
|
||||
|
||||
@@ -512,7 +512,7 @@ extern int mPr_GetPossessionItemSumItemCategoryWithCond_cancel(Private_c* priv,
|
||||
return sum;
|
||||
}
|
||||
|
||||
extern int mPr_GetPossessionItemSumItemCategoryWithCond(Private_c* priv, u8 item1_type, u32 cond) {
|
||||
extern u32 mPr_GetPossessionItemSumItemCategoryWithCond(Private_c* priv, u8 item1_type, u32 cond) {
|
||||
int sum = 0;
|
||||
|
||||
if (priv != NULL) {
|
||||
@@ -531,7 +531,7 @@ extern int mPr_GetPossessionItemSumItemCategoryWithCond(Private_c* priv, u8 item
|
||||
return sum;
|
||||
}
|
||||
|
||||
extern int mPr_GetPossessionItemSumKindWithCond(Private_c* priv, mActor_name_t kind_start, mActor_name_t kind_end,
|
||||
extern u32 mPr_GetPossessionItemSumKindWithCond(Private_c* priv, mActor_name_t kind_start, mActor_name_t kind_end,
|
||||
u32 cond) {
|
||||
int sum = 0;
|
||||
|
||||
|
||||
+1
-1
@@ -603,7 +603,7 @@ static void mQst_GetRemailData(Mail_c* letter, PersonalID_c* recipient_id, AnmPe
|
||||
mem_copy(letter->content.header, header, MAIL_HEADER_LEN);
|
||||
mem_copy(letter->content.footer, footer, MAIL_FOOTER_LEN);
|
||||
letter->content.header_back_start = header_back_pos;
|
||||
letter->content.font = mMl_FONT_0;
|
||||
letter->content.font = mMl_FONT_RECV;
|
||||
letter->content.mail_type = 0;
|
||||
|
||||
mPr_CopyPersonalID(&letter->header.recipient.personalID, recipient_id);
|
||||
|
||||
+2
-2
@@ -1094,7 +1094,7 @@ extern void mSP_ShopItsumoChirashi(int house_no, int shop_level, mActor_name_t i
|
||||
mMl_clear_mail(&leaflet);
|
||||
mHandbill_Load_HandbillFromRom(leaflet.content.header, &header_back_start, leaflet.content.footer,
|
||||
leaflet.content.body, rare_chirashi_bunmen[shop_level][type & 1]);
|
||||
leaflet.content.font = mMl_FONT_0;
|
||||
leaflet.content.font = mMl_FONT_RECV;
|
||||
leaflet.content.header_back_start = header_back_start;
|
||||
leaflet.content.mail_type = mMl_TYPE_SHOP_SALE_LEAFLET;
|
||||
leaflet.content.paper_type = ITM_PAPER55; // simple paper
|
||||
@@ -1226,7 +1226,7 @@ extern void mSP_SetRenewalChiraswhi_AppoDay() {
|
||||
mMl_clear_mail(&leaflet);
|
||||
mHandbill_Load_HandbillFromRom(content->header, &header_back_start, content->footer, content->body,
|
||||
chirashi_idx_appoday[shop_level]);
|
||||
leaflet.content.font = mMl_FONT_0;
|
||||
leaflet.content.font = mMl_FONT_RECV;
|
||||
leaflet.content.header_back_start = header_back_start;
|
||||
leaflet.content.mail_type = mMl_TYPE_SHOP_SALE_LEAFLET;
|
||||
leaflet.content.paper_type = ITM_PAPER55; // simple paper
|
||||
|
||||
+7
-5
@@ -377,7 +377,9 @@ static mActor_name_t mSC_Radio_have_taisou_card() {
|
||||
Private_c* priv = Common_Get(now_private);
|
||||
|
||||
for (i = 0; i < 13; i++) {
|
||||
if (mPr_GetPossessionItemSumWithCond(priv, ITM_EXCERCISE_CARD00 + i, mPr_ITEM_COND_NORMAL) > 0) {
|
||||
int sum = mPr_GetPossessionItemSumWithCond(priv, ITM_EXCERCISE_CARD00 + i, mPr_ITEM_COND_NORMAL);
|
||||
|
||||
if (sum > 0) {
|
||||
return ITM_EXCERCISE_CARD00 + i;
|
||||
}
|
||||
}
|
||||
@@ -550,7 +552,7 @@ extern int mSC_Radio_Set_Talk_Proc(TAISOU_NPC0_ACTOR* taisou_actor) {
|
||||
msg_no = 0x3423;
|
||||
}
|
||||
|
||||
if ((u32)mPr_GetPossessionItemSumWithCond(Common_Get(now_private), EMPTY_NO,
|
||||
if (mPr_GetPossessionItemSumWithCond(Common_Get(now_private), EMPTY_NO,
|
||||
mPr_ITEM_COND_NORMAL) == 0) {
|
||||
taisou_actor->talk_proc = mSCR_TALK_NEXT;
|
||||
} else {
|
||||
@@ -574,7 +576,7 @@ extern int mSC_Radio_Set_Talk_Proc(TAISOU_NPC0_ACTOR* taisou_actor) {
|
||||
msg_no = 0x342F;
|
||||
}
|
||||
|
||||
if ((u32)mPr_GetPossessionItemSumWithCond(Common_Get(now_private), EMPTY_NO,
|
||||
if (mPr_GetPossessionItemSumWithCond(Common_Get(now_private), EMPTY_NO,
|
||||
mPr_ITEM_COND_NORMAL) == 0) {
|
||||
taisou_actor->talk_proc = mSCR_TALK_NEXT;
|
||||
} else {
|
||||
@@ -628,7 +630,7 @@ extern int mSC_Radio_Set_Talk_Proc(TAISOU_NPC0_ACTOR* taisou_actor) {
|
||||
msg_no = 0x342F;
|
||||
}
|
||||
|
||||
if ((u32)mPr_GetPossessionItemSumWithCond(Common_Get(now_private), EMPTY_NO,
|
||||
if (mPr_GetPossessionItemSumWithCond(Common_Get(now_private), EMPTY_NO,
|
||||
mPr_ITEM_COND_NORMAL) == 0) {
|
||||
taisou_actor->talk_proc = mSCR_TALK_NEXT;
|
||||
} else {
|
||||
@@ -785,7 +787,7 @@ static void mSCR_talk_before_give(TAISOU_NPC0_ACTOR* taisou_actor, GAME_PLAY* pl
|
||||
mMsg_Window_c* msg_win = mMsg_Get_base_window_p();
|
||||
|
||||
if (mMsg_Check_MainNormalContinue(msg_win)) {
|
||||
if ((u32)mPr_GetPossessionItemSumWithCond(Common_Get(now_private), EMPTY_NO, mPr_ITEM_COND_NORMAL) == 0) {
|
||||
if (mPr_GetPossessionItemSumWithCond(Common_Get(now_private), EMPTY_NO, mPr_ITEM_COND_NORMAL) == 0) {
|
||||
mMsg_Set_continue_msg_num(msg_win, mSC_Radio_msg(taisou_actor, 2));
|
||||
taisou_actor->talk_proc = mSCR_TALK_9;
|
||||
} else {
|
||||
|
||||
+1
-1
@@ -1527,7 +1527,7 @@ static void mSM_draw_mail(GRAPH* graph, f32 pos_x, f32 pos_y, f32 scale, Mail_c*
|
||||
|
||||
if (mMl_check_send_mail(mail)) {
|
||||
type = mSM_MAIL_SEND;
|
||||
} else if (mail->content.font == mMl_FONT_4 || mail->content.font == mMl_FONT_2) {
|
||||
} else if (mail->content.font == mMl_FONT_RECV_PLAYER_PRESENT_READ || mail->content.font == mMl_FONT_RECV_READ) {
|
||||
type = mSM_MAIL_NORMAL2;
|
||||
} else {
|
||||
type = mSM_MAIL_NORMAL;
|
||||
|
||||
+8880
File diff suppressed because it is too large
Load Diff
+379
-386
@@ -2,581 +2,574 @@
|
||||
#include "m_house.h"
|
||||
|
||||
static int sChk_block_num_sub(u32 block_x, u32 block_z) {
|
||||
int res = FALSE;
|
||||
int res = FALSE;
|
||||
|
||||
if (block_x > FG_BLOCK_X_NUM && block_x != 0xFF) {
|
||||
mFRm_ERRORLINE(79);
|
||||
res = TRUE;
|
||||
}
|
||||
if (block_x > FG_BLOCK_X_NUM && block_x != 0xFF) {
|
||||
mFRm_ERRORLINE(79);
|
||||
res = TRUE;
|
||||
}
|
||||
|
||||
if (block_z > FG_BLOCK_Z_NUM && block_z != 0xFF) {
|
||||
mFRm_ERRORLINE(90);
|
||||
res = TRUE;
|
||||
}
|
||||
if (block_z > FG_BLOCK_Z_NUM && block_z != 0xFF) {
|
||||
mFRm_ERRORLINE(90);
|
||||
res = TRUE;
|
||||
}
|
||||
|
||||
if (block_z == mISL_BLOCK_Z && (block_x == mISL_BLOCK_X0 || block_x == mISL_BLOCK_X1)) {
|
||||
res = FALSE;
|
||||
}
|
||||
if (block_z == mISL_BLOCK_Z && (block_x == mISL_BLOCK_X0 || block_x == mISL_BLOCK_X1)) {
|
||||
res = FALSE;
|
||||
}
|
||||
|
||||
return res;
|
||||
return res;
|
||||
}
|
||||
|
||||
static int sChk_ut_num_sub(u32 ut_x, u32 ut_z) {
|
||||
int res = FALSE;
|
||||
int res = FALSE;
|
||||
|
||||
if (ut_x >= UT_X_NUM && ut_x != 0xFF) {
|
||||
mFRm_ERRORLINE(140);
|
||||
res = TRUE;
|
||||
}
|
||||
if (ut_x >= UT_X_NUM && ut_x != 0xFF) {
|
||||
mFRm_ERRORLINE(140);
|
||||
res = TRUE;
|
||||
}
|
||||
|
||||
if (ut_z >= UT_Z_NUM && ut_z != 0xFF) {
|
||||
mFRm_ERRORLINE(151);
|
||||
res = TRUE;
|
||||
}
|
||||
if (ut_z >= UT_Z_NUM && ut_z != 0xFF) {
|
||||
mFRm_ERRORLINE(151);
|
||||
res = TRUE;
|
||||
}
|
||||
|
||||
return res;
|
||||
return res;
|
||||
}
|
||||
|
||||
static int sChk_ItemFG_sub(mActor_name_t item) {
|
||||
int res = FALSE;
|
||||
int res = FALSE;
|
||||
|
||||
if (item != EMPTY_NO && (ITEM_NAME_GET_TYPE(item) >= NAME_TYPE_WARP || ITEM_NAME_GET_TYPE(item) < NAME_TYPE_FTR0)) {
|
||||
mFRm_ERRORLINE(201);
|
||||
res = TRUE;
|
||||
}
|
||||
if (item != EMPTY_NO && (ITEM_NAME_GET_TYPE(item) >= NAME_TYPE_WARP || ITEM_NAME_GET_TYPE(item) < NAME_TYPE_FTR0)) {
|
||||
mFRm_ERRORLINE(201);
|
||||
res = TRUE;
|
||||
}
|
||||
|
||||
return res;
|
||||
return res;
|
||||
}
|
||||
|
||||
static int sChk_cloth_sub(mActor_name_t item) {
|
||||
int valid_cloth;
|
||||
int res = FALSE;
|
||||
int valid_cloth;
|
||||
int res = FALSE;
|
||||
|
||||
valid_cloth = item == RSV_CLOTH || (item >= ITM_CLOTH_START && item < ITM_CLOTH_END);
|
||||
valid_cloth = item == RSV_CLOTH || (item >= ITM_CLOTH_START && item < ITM_CLOTH_END);
|
||||
|
||||
if (valid_cloth == FALSE && item != EMPTY_NO) {
|
||||
mFRm_ERRORLINE(247);
|
||||
res = TRUE;
|
||||
}
|
||||
if (valid_cloth == FALSE && item != EMPTY_NO) {
|
||||
mFRm_ERRORLINE(247);
|
||||
res = TRUE;
|
||||
}
|
||||
|
||||
return res;
|
||||
return res;
|
||||
}
|
||||
|
||||
static int sChk_fruit_sub(mActor_name_t item) {
|
||||
int res = FALSE;
|
||||
int res = FALSE;
|
||||
|
||||
if (item < ITM_FOOD_APPLE || item > ITM_FOOD_ORANGE) {
|
||||
mFRm_ERRORLINE(288);
|
||||
res = TRUE;
|
||||
}
|
||||
if (item < ITM_FOOD_APPLE || item > ITM_FOOD_ORANGE) {
|
||||
mFRm_ERRORLINE(288);
|
||||
res = TRUE;
|
||||
}
|
||||
|
||||
return res;
|
||||
return res;
|
||||
}
|
||||
|
||||
static int sChk_OSRTCTime_sub(OSRTCTime* time) {
|
||||
int res = FALSE;
|
||||
int res = FALSE;
|
||||
|
||||
if (time->year < GAME_YEAR_MIN || time->year > GAME_YEAR_MAX) {
|
||||
res = TRUE;
|
||||
}
|
||||
|
||||
if (time->month == 0 || time->month > lbRTC_MONTHS_MAX) {
|
||||
res = TRUE;
|
||||
}
|
||||
|
||||
if (time->day == 0 || time->day > 31) {
|
||||
res = TRUE;
|
||||
}
|
||||
|
||||
if (time->weekday > lbRTC_SATURDAY) {
|
||||
res = TRUE;
|
||||
}
|
||||
|
||||
if (time->hour > 23) {
|
||||
res = TRUE;
|
||||
}
|
||||
|
||||
if (time->min > 59) {
|
||||
res = TRUE;
|
||||
}
|
||||
|
||||
if (time->sec > 59) {
|
||||
res = TRUE;
|
||||
}
|
||||
|
||||
if (res == TRUE) {
|
||||
if (time->year == 0 && time->month == 0 && time->day == 0 && time->weekday == 0 && time->hour == 0 && time->min == 0 && time->sec == 0) {
|
||||
res = FALSE;
|
||||
if (time->year < GAME_YEAR_MIN || time->year > GAME_YEAR_MAX) {
|
||||
res = TRUE;
|
||||
}
|
||||
else if (mTM_AreTimesEqual(time, &mTM_rtcTime_clear_code) == TRUE) {
|
||||
res = FALSE;
|
||||
}
|
||||
else {
|
||||
mFRm_ERRORLINE(379);
|
||||
}
|
||||
}
|
||||
|
||||
return res;
|
||||
if (time->month == 0 || time->month > lbRTC_MONTHS_MAX) {
|
||||
res = TRUE;
|
||||
}
|
||||
|
||||
if (time->day == 0 || time->day > 31) {
|
||||
res = TRUE;
|
||||
}
|
||||
|
||||
if (time->weekday > lbRTC_SATURDAY) {
|
||||
res = TRUE;
|
||||
}
|
||||
|
||||
if (time->hour > 23) {
|
||||
res = TRUE;
|
||||
}
|
||||
|
||||
if (time->min > 59) {
|
||||
res = TRUE;
|
||||
}
|
||||
|
||||
if (time->sec > 59) {
|
||||
res = TRUE;
|
||||
}
|
||||
|
||||
if (res == TRUE) {
|
||||
if (time->year == 0 && time->month == 0 && time->day == 0 && time->weekday == 0 && time->hour == 0 &&
|
||||
time->min == 0 && time->sec == 0) {
|
||||
res = FALSE;
|
||||
} else if (mTM_AreTimesEqual(time, &mTM_rtcTime_clear_code) == TRUE) {
|
||||
res = FALSE;
|
||||
} else {
|
||||
mFRm_ERRORLINE(379);
|
||||
}
|
||||
}
|
||||
|
||||
return res;
|
||||
}
|
||||
|
||||
static int sChk_lbRTC_ymd_c_sub(lbRTC_ymd_c* ymd) {
|
||||
int res = FALSE;
|
||||
int res = FALSE;
|
||||
|
||||
if (ymd->year < GAME_YEAR_MIN || ymd->year > GAME_YEAR_MAX) {
|
||||
res = TRUE;
|
||||
}
|
||||
|
||||
if (ymd->month == 0 || ymd->month > lbRTC_MONTHS_MAX) {
|
||||
res = TRUE;
|
||||
}
|
||||
|
||||
if (ymd->day == 0 || ymd->day > 31) {
|
||||
res = TRUE;
|
||||
}
|
||||
|
||||
if (res == TRUE) {
|
||||
if (ymd->year == 0 && ymd->month == 0 && ymd->day == 0) {
|
||||
res = FALSE;
|
||||
if (ymd->year < GAME_YEAR_MIN || ymd->year > GAME_YEAR_MAX) {
|
||||
res = TRUE;
|
||||
}
|
||||
else if (ymd->year == mTM_rtcTime_ymd_clear_code.year && ymd->month == mTM_rtcTime_ymd_clear_code.month && ymd->day == mTM_rtcTime_ymd_clear_code.day) {
|
||||
res = FALSE;
|
||||
}
|
||||
else {
|
||||
mFRm_ERRORLINE(464);
|
||||
}
|
||||
}
|
||||
|
||||
return res;
|
||||
if (ymd->month == 0 || ymd->month > lbRTC_MONTHS_MAX) {
|
||||
res = TRUE;
|
||||
}
|
||||
|
||||
if (ymd->day == 0 || ymd->day > 31) {
|
||||
res = TRUE;
|
||||
}
|
||||
|
||||
if (res == TRUE) {
|
||||
if (ymd->year == 0 && ymd->month == 0 && ymd->day == 0) {
|
||||
res = FALSE;
|
||||
} else if (ymd->year == mTM_rtcTime_ymd_clear_code.year && ymd->month == mTM_rtcTime_ymd_clear_code.month &&
|
||||
ymd->day == mTM_rtcTime_ymd_clear_code.day) {
|
||||
res = FALSE;
|
||||
} else {
|
||||
mFRm_ERRORLINE(464);
|
||||
}
|
||||
}
|
||||
|
||||
return res;
|
||||
}
|
||||
|
||||
static int sChk_Mail_nm_c_sub(Mail_nm_c* mail_name, int depth) {
|
||||
int res = FALSE;
|
||||
int res = FALSE;
|
||||
|
||||
if (mail_name->type >= mMl_NAME_TYPE_NUM && mail_name->type != mMl_NAME_TYPE_CLEAR) {
|
||||
mFRm_ERRORLINE(519);
|
||||
res = TRUE;
|
||||
}
|
||||
if (mail_name->type >= mMl_NAME_TYPE_NUM && mail_name->type != mMl_NAME_TYPE_CLEAR) {
|
||||
mFRm_ERRORLINE(519);
|
||||
res = TRUE;
|
||||
}
|
||||
|
||||
return res;
|
||||
return res;
|
||||
}
|
||||
|
||||
static int sChk_Mail_hdr_c_sub(Mail_hdr_c* mail_header, int depth) {
|
||||
int res = FALSE;
|
||||
|
||||
res |= sChk_Mail_nm_c_sub(&mail_header->recipient, depth + 1);
|
||||
res |= sChk_Mail_nm_c_sub(&mail_header->sender, depth + 1);
|
||||
|
||||
return res;
|
||||
int res = FALSE;
|
||||
|
||||
res |= sChk_Mail_nm_c_sub(&mail_header->recipient, depth + 1);
|
||||
res |= sChk_Mail_nm_c_sub(&mail_header->sender, depth + 1);
|
||||
|
||||
return res;
|
||||
}
|
||||
|
||||
static int sChk_font_sub(u8* font_p) {
|
||||
int font = *font_p;
|
||||
int res = FALSE;
|
||||
int font = *font_p;
|
||||
int res = FALSE;
|
||||
|
||||
/* This check seems wrong lol */
|
||||
if (font != 0xFF && (font >= 0xFF || font >= mMl_FONT_NUM || font < mMl_FONT_0)) {
|
||||
mFRm_ERRORLINE(612);
|
||||
res = TRUE;
|
||||
}
|
||||
/* This check seems wrong lol */
|
||||
if (font != 0xFF && (font >= 0xFF || font >= mMl_FONT_NUM || font < mMl_FONT_RECV)) {
|
||||
mFRm_ERRORLINE(612);
|
||||
res = TRUE;
|
||||
}
|
||||
|
||||
return res;
|
||||
return res;
|
||||
}
|
||||
|
||||
static int sChk_header_back_start_sub(u8* header_back_start_p) {
|
||||
int res = FALSE;
|
||||
int res = FALSE;
|
||||
|
||||
if (*header_back_start_p > MAIL_HEADER_LEN) {
|
||||
mFRm_ERRORLINE(657);
|
||||
res = TRUE;
|
||||
}
|
||||
if (*header_back_start_p > MAIL_HEADER_LEN) {
|
||||
mFRm_ERRORLINE(657);
|
||||
res = TRUE;
|
||||
}
|
||||
|
||||
return res;
|
||||
return res;
|
||||
}
|
||||
|
||||
static int sChk_paper_type_sub(u8* paper_type) {
|
||||
int res = FALSE;
|
||||
int res = FALSE;
|
||||
|
||||
if (*paper_type > (ITM_PAPER63 - ITM_PAPER00)) {
|
||||
mFRm_ERRORLINE(701);
|
||||
res = TRUE;
|
||||
}
|
||||
if (*paper_type > (ITM_PAPER63 - ITM_PAPER00)) {
|
||||
mFRm_ERRORLINE(701);
|
||||
res = TRUE;
|
||||
}
|
||||
|
||||
return res;
|
||||
return res;
|
||||
}
|
||||
|
||||
static int sChk_Mail_ct_c_sub(Mail_ct_c* contents, int depth) {
|
||||
int res = sChk_font_sub(&contents->font);
|
||||
|
||||
res |= sChk_header_back_start_sub(&contents->header_back_start);
|
||||
int res = sChk_font_sub(&contents->font);
|
||||
|
||||
if (contents->mail_type > mMl_TYPE_12) {
|
||||
mFRm_ERRORLINE(766);
|
||||
res = TRUE;
|
||||
}
|
||||
res |= sChk_header_back_start_sub(&contents->header_back_start);
|
||||
|
||||
res |= sChk_paper_type_sub(&contents->paper_type);
|
||||
if (contents->mail_type > mMl_TYPE_NUM) {
|
||||
mFRm_ERRORLINE(766);
|
||||
res = TRUE;
|
||||
}
|
||||
|
||||
return res;
|
||||
res |= sChk_paper_type_sub(&contents->paper_type);
|
||||
|
||||
return res;
|
||||
}
|
||||
|
||||
static int sChk_Mail_c_sub(Mail_c* mail, int depth) {
|
||||
int res = FALSE;
|
||||
|
||||
res |= sChk_Mail_hdr_c_sub(&mail->header, depth + 1);
|
||||
res |= sChk_ItemFG_sub(mail->present);
|
||||
res |= sChk_Mail_ct_c_sub(&mail->content, depth + 1);
|
||||
int res = FALSE;
|
||||
|
||||
return res;
|
||||
res |= sChk_Mail_hdr_c_sub(&mail->header, depth + 1);
|
||||
res |= sChk_ItemFG_sub(mail->present);
|
||||
res |= sChk_Mail_ct_c_sub(&mail->content, depth + 1);
|
||||
|
||||
return res;
|
||||
}
|
||||
|
||||
static int sChk_mHm_rmsz_c_sub(mHm_rmsz_c* room_size, int depth) {
|
||||
lbRTC_ymd_c order_date_copy;
|
||||
int res;
|
||||
lbRTC_ymd_c order_date_copy;
|
||||
int res;
|
||||
|
||||
order_date_copy.day = room_size->upgrade_order_date.day;
|
||||
order_date_copy.month = room_size->upgrade_order_date.month;
|
||||
order_date_copy.year = room_size->upgrade_order_date.year;
|
||||
order_date_copy.day = room_size->upgrade_order_date.day;
|
||||
order_date_copy.month = room_size->upgrade_order_date.month;
|
||||
order_date_copy.year = room_size->upgrade_order_date.year;
|
||||
|
||||
res = sChk_lbRTC_ymd_c_sub(&order_date_copy);
|
||||
res = sChk_lbRTC_ymd_c_sub(&order_date_copy);
|
||||
|
||||
if (room_size->size >= mHm_HOMESIZE_NUM) {
|
||||
mFRm_ERRORLINE(880);
|
||||
res = TRUE;
|
||||
}
|
||||
if (room_size->size >= mHm_HOMESIZE_NUM) {
|
||||
mFRm_ERRORLINE(880);
|
||||
res = TRUE;
|
||||
}
|
||||
|
||||
if (room_size->next_size >= mHm_HOMESIZE_NUM) {
|
||||
mFRm_ERRORLINE(894);
|
||||
res = TRUE;
|
||||
}
|
||||
if (room_size->next_size >= mHm_HOMESIZE_NUM) {
|
||||
mFRm_ERRORLINE(894);
|
||||
res = TRUE;
|
||||
}
|
||||
|
||||
return res;
|
||||
return res;
|
||||
}
|
||||
|
||||
static int sChk_Haniwa_Item_c_sub(Haniwa_Item_c* haniwa_item, int depth) {
|
||||
int res = sChk_ItemFG_sub(haniwa_item->item);
|
||||
int res = sChk_ItemFG_sub(haniwa_item->item);
|
||||
|
||||
if (haniwa_item->exchange_type > mHm_HANIWA_TRADE_3) {
|
||||
mFRm_ERRORLINE(947);
|
||||
res = TRUE;
|
||||
}
|
||||
if (haniwa_item->exchange_type > mHm_HANIWA_TRADE_3) {
|
||||
mFRm_ERRORLINE(947);
|
||||
res = TRUE;
|
||||
}
|
||||
|
||||
return res;
|
||||
return res;
|
||||
}
|
||||
|
||||
static int sChk_Haniwa_c_sub(Haniwa_c* haniwa, int depth) {
|
||||
int i;
|
||||
int res = FALSE;
|
||||
int i;
|
||||
int res = FALSE;
|
||||
|
||||
for (i = 0; i < HANIWA_ITEM_HOLD_NUM; i++) {
|
||||
res |= sChk_Haniwa_Item_c_sub(haniwa->items + i, depth + 1);
|
||||
}
|
||||
for (i = 0; i < HANIWA_ITEM_HOLD_NUM; i++) {
|
||||
res |= sChk_Haniwa_Item_c_sub(haniwa->items + i, depth + 1);
|
||||
}
|
||||
|
||||
return res;
|
||||
return res;
|
||||
}
|
||||
|
||||
static int sChk_outlook_pal_sub(u8 outlook_pal) {
|
||||
int res = FALSE;
|
||||
int res = FALSE;
|
||||
|
||||
if (outlook_pal >= mHm_OUTLOOK_PAL_NUM) {
|
||||
mFRm_ERRORLINE(1035);
|
||||
res = TRUE;
|
||||
}
|
||||
if (outlook_pal >= mHm_OUTLOOK_PAL_NUM) {
|
||||
mFRm_ERRORLINE(1035);
|
||||
res = TRUE;
|
||||
}
|
||||
|
||||
return res;
|
||||
return res;
|
||||
}
|
||||
|
||||
static int sChk_mHm_goki_c_sub(mHm_goki_c* goki, int depth) {
|
||||
return sChk_OSRTCTime_sub(&goki->time);
|
||||
return sChk_OSRTCTime_sub(&goki->time);
|
||||
}
|
||||
|
||||
static int sChk_mHm_hs_c_sub(mHm_hs_c* house, int depth) {
|
||||
int i;
|
||||
int res = FALSE;
|
||||
int i;
|
||||
int res = FALSE;
|
||||
|
||||
res |= sChk_lbRTC_ymd_c_sub(&house->hra_mark_time);
|
||||
res |= sChk_mHm_rmsz_c_sub(&house->size_info, depth + 1);
|
||||
res |= sChk_outlook_pal_sub(house->outlook_pal);
|
||||
res |= sChk_outlook_pal_sub(house->ordered_outlook_pal);
|
||||
res |= sChk_outlook_pal_sub(house->next_outlook_pal);
|
||||
res |= sChk_lbRTC_ymd_c_sub(&house->hra_mark_time);
|
||||
res |= sChk_mHm_rmsz_c_sub(&house->size_info, depth + 1);
|
||||
res |= sChk_outlook_pal_sub(house->outlook_pal);
|
||||
res |= sChk_outlook_pal_sub(house->ordered_outlook_pal);
|
||||
res |= sChk_outlook_pal_sub(house->next_outlook_pal);
|
||||
|
||||
for (i = 0; i < HOME_MAILBOX_SIZE; i++) {
|
||||
res |= sChk_Mail_c_sub(house->mailbox + i, depth + 1);
|
||||
}
|
||||
for (i = 0; i < HOME_MAILBOX_SIZE; i++) {
|
||||
res |= sChk_Mail_c_sub(house->mailbox + i, depth + 1);
|
||||
}
|
||||
|
||||
res |= sChk_Haniwa_c_sub(&house->haniwa, depth + 1);
|
||||
res |= sChk_mHm_goki_c_sub(&house->goki, depth + 1);
|
||||
res |= sChk_Haniwa_c_sub(&house->haniwa, depth + 1);
|
||||
res |= sChk_mHm_goki_c_sub(&house->goki, depth + 1);
|
||||
|
||||
return res;
|
||||
return res;
|
||||
}
|
||||
|
||||
static int sChk_AnmPersonalID_c_sub(AnmPersonalID_c* pid, int depth) {
|
||||
int res = FALSE;
|
||||
int res = FALSE;
|
||||
|
||||
if (ITEM_NAME_GET_TYPE(pid->npc_id) != NAME_TYPE_NPC && pid->npc_id != EMPTY_NO) {
|
||||
mFRm_ERRORLINE(1200);
|
||||
res = TRUE;
|
||||
}
|
||||
if (ITEM_NAME_GET_TYPE(pid->npc_id) != NAME_TYPE_NPC && pid->npc_id != EMPTY_NO) {
|
||||
mFRm_ERRORLINE(1200);
|
||||
res = TRUE;
|
||||
}
|
||||
|
||||
if (pid->looks > mNpc_LOOKS_NUM) {
|
||||
mFRm_ERRORLINE(1214);
|
||||
res = TRUE;
|
||||
}
|
||||
if (pid->looks > mNpc_LOOKS_NUM) {
|
||||
mFRm_ERRORLINE(1214);
|
||||
res = TRUE;
|
||||
}
|
||||
|
||||
return res;
|
||||
return res;
|
||||
}
|
||||
|
||||
static int sChk_Anmplmail_c_sub(Anmplmail_c* animal_player_mail, int depth) {
|
||||
int res = FALSE;
|
||||
int res = FALSE;
|
||||
|
||||
res |= sChk_font_sub(&animal_player_mail->font);
|
||||
res |= sChk_paper_type_sub(&animal_player_mail->paper_type);
|
||||
res |= sChk_ItemFG_sub(animal_player_mail->present);
|
||||
res |= sChk_header_back_start_sub(&animal_player_mail->header_back_start);
|
||||
res |= sChk_lbRTC_ymd_c_sub(&animal_player_mail->date);
|
||||
res |= sChk_font_sub(&animal_player_mail->font);
|
||||
res |= sChk_paper_type_sub(&animal_player_mail->paper_type);
|
||||
res |= sChk_ItemFG_sub(animal_player_mail->present);
|
||||
res |= sChk_header_back_start_sub(&animal_player_mail->header_back_start);
|
||||
res |= sChk_lbRTC_ymd_c_sub(&animal_player_mail->date);
|
||||
|
||||
return res;
|
||||
return res;
|
||||
}
|
||||
|
||||
static int sChk_Anmmem_c_sub(Anmmem_c* animal_memory, int depth) {
|
||||
int res = FALSE;
|
||||
int res = FALSE;
|
||||
|
||||
res |= sChk_OSRTCTime_sub(&animal_memory->last_speak_time);
|
||||
res |= sChk_Anmplmail_c_sub(&animal_memory->letter, depth + 1);
|
||||
res |= sChk_OSRTCTime_sub(&animal_memory->last_speak_time);
|
||||
res |= sChk_Anmplmail_c_sub(&animal_memory->letter, depth + 1);
|
||||
|
||||
return res;
|
||||
return res;
|
||||
}
|
||||
|
||||
static int sChk_Anmhome_c_sub(Anmhome_c* animal_home, int depth) {
|
||||
int res = FALSE;
|
||||
int res = FALSE;
|
||||
|
||||
if (animal_home->type_unused > 5) {
|
||||
mFRm_ERRORLINE(1365);
|
||||
res = TRUE;
|
||||
}
|
||||
if (animal_home->type_unused > 5) {
|
||||
mFRm_ERRORLINE(1365);
|
||||
res = TRUE;
|
||||
}
|
||||
|
||||
res |= sChk_block_num_sub(animal_home->block_x, animal_home->block_z);
|
||||
res |= sChk_ut_num_sub(animal_home->ut_x, animal_home->ut_z);
|
||||
res |= sChk_block_num_sub(animal_home->block_x, animal_home->block_z);
|
||||
res |= sChk_ut_num_sub(animal_home->ut_x, animal_home->ut_z);
|
||||
|
||||
return res;
|
||||
return res;
|
||||
}
|
||||
|
||||
static int sChk_Animal_c_sub(Animal_c* animal, int depth) {
|
||||
int i;
|
||||
int res = FALSE;
|
||||
int i;
|
||||
int res = FALSE;
|
||||
|
||||
res |= sChk_AnmPersonalID_c_sub(&animal->id, depth + 1);
|
||||
res |= sChk_AnmPersonalID_c_sub(&animal->id, depth + 1);
|
||||
|
||||
for (i = 0; i < ANIMAL_MEMORY_NUM; i++) {
|
||||
res |= sChk_Anmmem_c_sub(animal->memories + i, depth + 1);
|
||||
}
|
||||
for (i = 0; i < ANIMAL_MEMORY_NUM; i++) {
|
||||
res |= sChk_Anmmem_c_sub(animal->memories + i, depth + 1);
|
||||
}
|
||||
|
||||
res |= sChk_Anmhome_c_sub(&animal->home_info, depth + 1);
|
||||
res |= sChk_Anmhome_c_sub(&animal->home_info, depth + 1);
|
||||
|
||||
if (animal->mood >= mNpc_MOOD_NUM) {
|
||||
mFRm_ERRORLINE(1458);
|
||||
res = TRUE;
|
||||
}
|
||||
if (animal->mood >= mNpc_MOOD_NUM) {
|
||||
mFRm_ERRORLINE(1458);
|
||||
res = TRUE;
|
||||
}
|
||||
|
||||
res |= sChk_cloth_sub(animal->cloth);
|
||||
res |= sChk_cloth_sub(animal->cloth);
|
||||
|
||||
if ((animal->is_home & ~1)) {
|
||||
mFRm_ERRORLINE(1474);
|
||||
res = TRUE;
|
||||
}
|
||||
if ((animal->is_home & ~1)) {
|
||||
mFRm_ERRORLINE(1474);
|
||||
res = TRUE;
|
||||
}
|
||||
|
||||
res |= sChk_cloth_sub(animal->present_cloth);
|
||||
res |= sChk_cloth_sub(animal->present_cloth);
|
||||
|
||||
return res;
|
||||
return res;
|
||||
}
|
||||
|
||||
static int sChk_Kabu_price_c_sub(Kabu_price_c* kabu_price, int depth) {
|
||||
int res = FALSE;
|
||||
int i;
|
||||
int res = FALSE;
|
||||
int i;
|
||||
|
||||
for (i = 0; i < lbRTC_WEEK; i++) {
|
||||
if (kabu_price->daily_price[i] < Kabu_PRICE_MIN || kabu_price->daily_price[i] > Kabu_PRICE_MAX) {
|
||||
mFRm_ERRORLINE(1531);
|
||||
res = TRUE;
|
||||
for (i = 0; i < lbRTC_WEEK; i++) {
|
||||
if (kabu_price->daily_price[i] < Kabu_PRICE_MIN || kabu_price->daily_price[i] > Kabu_PRICE_MAX) {
|
||||
mFRm_ERRORLINE(1531);
|
||||
res = TRUE;
|
||||
|
||||
break;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (kabu_price->trade_market >= Kabu_TRADE_MARKET_TYPE_NUM) {
|
||||
mFRm_ERRORLINE(1554);
|
||||
res = TRUE;
|
||||
}
|
||||
if (kabu_price->trade_market >= Kabu_TRADE_MARKET_TYPE_NUM) {
|
||||
mFRm_ERRORLINE(1554);
|
||||
res = TRUE;
|
||||
}
|
||||
|
||||
res |= sChk_OSRTCTime_sub(&kabu_price->update_time);
|
||||
res |= sChk_OSRTCTime_sub(&kabu_price->update_time);
|
||||
|
||||
return res;
|
||||
return res;
|
||||
}
|
||||
|
||||
static int sChk_PostOffice_c_sub(PostOffice_c* post_office, int depth) {
|
||||
int i;
|
||||
int res = FALSE;
|
||||
int i;
|
||||
int res = FALSE;
|
||||
|
||||
if (post_office->keep_mail_sum_players < 0 || post_office->keep_mail_sum_players > mPO_KEEP_MAIL_PLAYERS_MAX) {
|
||||
mFRm_ERRORLINE(1617);
|
||||
res = TRUE;
|
||||
}
|
||||
if (post_office->keep_mail_sum_players < 0 || post_office->keep_mail_sum_players > mPO_KEEP_MAIL_PLAYERS_MAX) {
|
||||
mFRm_ERRORLINE(1617);
|
||||
res = TRUE;
|
||||
}
|
||||
|
||||
if (post_office->keep_mail_sum_npcs < 0) {
|
||||
mFRm_ERRORLINE(1632);
|
||||
res = TRUE;
|
||||
}
|
||||
if (post_office->keep_mail_sum_npcs < 0) {
|
||||
mFRm_ERRORLINE(1632);
|
||||
res = TRUE;
|
||||
}
|
||||
|
||||
if (post_office->mail_recipient_flags & (u16)(~0b1111)) {
|
||||
mFRm_ERRORLINE(1647);
|
||||
res = TRUE;
|
||||
}
|
||||
if (post_office->mail_recipient_flags & (u16)(~0b1111)) {
|
||||
mFRm_ERRORLINE(1647);
|
||||
res = TRUE;
|
||||
}
|
||||
|
||||
for (i = 0; i < mPO_MAIL_STORAGE_SIZE; i++) {
|
||||
res |= sChk_Mail_c_sub(post_office->mail + i, depth + 1);
|
||||
}
|
||||
for (i = 0; i < mPO_MAIL_STORAGE_SIZE; i++) {
|
||||
res |= sChk_Mail_c_sub(post_office->mail + i, depth + 1);
|
||||
}
|
||||
|
||||
res |= sChk_Mail_c_sub(&post_office->leaflet, depth + 1);
|
||||
res |= sChk_Mail_c_sub(&post_office->event_leaflet, depth + 1);
|
||||
res |= sChk_Mail_c_sub(&post_office->leaflet, depth + 1);
|
||||
res |= sChk_Mail_c_sub(&post_office->event_leaflet, depth + 1);
|
||||
|
||||
if (post_office->leaflet_recipient_flags.leaflet_flags & (u16)(~0b1111)) {
|
||||
mFRm_ERRORLINE(1668);
|
||||
res = TRUE;
|
||||
}
|
||||
if (post_office->leaflet_recipient_flags.leaflet_flags & (u16)(~0b1111)) {
|
||||
mFRm_ERRORLINE(1668);
|
||||
res = TRUE;
|
||||
}
|
||||
|
||||
if (post_office->leaflet_recipient_flags.event_flags & (u16)(~0b1111)) {
|
||||
mFRm_ERRORLINE(1682);
|
||||
res = TRUE;
|
||||
}
|
||||
if (post_office->leaflet_recipient_flags.event_flags & (u16)(~0b1111)) {
|
||||
mFRm_ERRORLINE(1682);
|
||||
res = TRUE;
|
||||
}
|
||||
|
||||
res |= sChk_OSRTCTime_sub(&post_office->delivery_time);
|
||||
res |= sChk_OSRTCTime_sub(&post_office->delivery_time);
|
||||
|
||||
return res;
|
||||
return res;
|
||||
}
|
||||
|
||||
static int sChk_PoliceBox_c_sub(PoliceBox_c* police_box, int depth) {
|
||||
int i;
|
||||
int res = FALSE;
|
||||
int i;
|
||||
int res = FALSE;
|
||||
|
||||
for (i = 0; i < mPB_POLICE_BOX_ITEM_STORAGE_COUNT; i++) {
|
||||
res |= sChk_ItemFG_sub(police_box->keep_items[i]);
|
||||
}
|
||||
for (i = 0; i < mPB_POLICE_BOX_ITEM_STORAGE_COUNT; i++) {
|
||||
res |= sChk_ItemFG_sub(police_box->keep_items[i]);
|
||||
}
|
||||
|
||||
return res;
|
||||
return res;
|
||||
}
|
||||
|
||||
static int sChk_Config_c_sub(Config_c* config, int depth) {
|
||||
int res = FALSE;
|
||||
int res = FALSE;
|
||||
|
||||
if (config->sound_mode > Config_SOUND_MODE_NUM) {
|
||||
mFRm_ERRORLINE(1775);
|
||||
res = TRUE;
|
||||
}
|
||||
if (config->sound_mode > Config_SOUND_MODE_NUM) {
|
||||
mFRm_ERRORLINE(1775);
|
||||
res = TRUE;
|
||||
}
|
||||
|
||||
if (config->voice_mode > Config_VOICE_MODE_NUM) {
|
||||
mFRm_ERRORLINE(1789);
|
||||
res = TRUE;
|
||||
}
|
||||
if (config->voice_mode > Config_VOICE_MODE_NUM) {
|
||||
mFRm_ERRORLINE(1789);
|
||||
res = TRUE;
|
||||
}
|
||||
|
||||
if (config->vibration_enabled & (~1)) {
|
||||
mFRm_ERRORLINE(1803);
|
||||
res = TRUE;
|
||||
}
|
||||
if (config->vibration_enabled & (~1)) {
|
||||
mFRm_ERRORLINE(1803);
|
||||
res = TRUE;
|
||||
}
|
||||
|
||||
return res;
|
||||
return res;
|
||||
}
|
||||
|
||||
static int sChk_mMsr_time_c_sub(mMsr_time_c* mushroom_time, int depth) {
|
||||
int res = FALSE;
|
||||
int res = FALSE;
|
||||
|
||||
if (mushroom_time->year < GAME_YEAR_MIN && mushroom_time->year > GAME_YEAR_MAX) {
|
||||
res = TRUE;
|
||||
}
|
||||
|
||||
if (mushroom_time->month == 0 || mushroom_time->month > lbRTC_DECEMBER) {
|
||||
res = TRUE;
|
||||
}
|
||||
|
||||
if (mushroom_time->day == 0 || mushroom_time->day > 31) {
|
||||
res = TRUE;
|
||||
}
|
||||
|
||||
if (mushroom_time->hour > 23) {
|
||||
res = TRUE;
|
||||
}
|
||||
|
||||
if (res == TRUE) {
|
||||
if (
|
||||
mushroom_time->year == 0 &&
|
||||
mushroom_time->month == 0 &&
|
||||
mushroom_time->day == 0 &&
|
||||
mushroom_time->hour == 0 &&
|
||||
mushroom_time->hour_quarter == 0
|
||||
) {
|
||||
res = FALSE;
|
||||
if (mushroom_time->year < GAME_YEAR_MIN && mushroom_time->year > GAME_YEAR_MAX) {
|
||||
res = TRUE;
|
||||
}
|
||||
else {
|
||||
mFRm_ERRORLINE(1876);
|
||||
}
|
||||
}
|
||||
|
||||
return res;
|
||||
if (mushroom_time->month == 0 || mushroom_time->month > lbRTC_DECEMBER) {
|
||||
res = TRUE;
|
||||
}
|
||||
|
||||
if (mushroom_time->day == 0 || mushroom_time->day > 31) {
|
||||
res = TRUE;
|
||||
}
|
||||
|
||||
if (mushroom_time->hour > 23) {
|
||||
res = TRUE;
|
||||
}
|
||||
|
||||
if (res == TRUE) {
|
||||
if (mushroom_time->year == 0 && mushroom_time->month == 0 && mushroom_time->day == 0 &&
|
||||
mushroom_time->hour == 0 && mushroom_time->hour_quarter == 0) {
|
||||
res = FALSE;
|
||||
} else {
|
||||
mFRm_ERRORLINE(1876);
|
||||
}
|
||||
}
|
||||
|
||||
return res;
|
||||
}
|
||||
|
||||
static int sChk_MaskCat_c_sub(MaskCat_c* mask_cat, int depth) {
|
||||
int valid_cloth;
|
||||
int res = FALSE;
|
||||
int valid_cloth;
|
||||
int res = FALSE;
|
||||
|
||||
if (mask_cat->palette_no >= mNW_PALETTE_NUM) {
|
||||
mFRm_ERRORLINE(1935);
|
||||
res = TRUE;
|
||||
}
|
||||
if (mask_cat->palette_no >= mNW_PALETTE_NUM) {
|
||||
mFRm_ERRORLINE(1935);
|
||||
res = TRUE;
|
||||
}
|
||||
|
||||
/* This is definitely a macro */
|
||||
valid_cloth = (mActor_name_t)(mask_cat->cloth_no + ITM_CLOTH_START) >= ITM_CLOTH_START && (mActor_name_t)(mask_cat->cloth_no + ITM_CLOTH_START) < ITM_CLOTH_END;
|
||||
if (valid_cloth == FALSE) {
|
||||
mFRm_ERRORLINE(1949);
|
||||
res = TRUE;
|
||||
}
|
||||
/* This is definitely a macro */
|
||||
valid_cloth = (mActor_name_t)(mask_cat->cloth_no + ITM_CLOTH_START) >= ITM_CLOTH_START &&
|
||||
(mActor_name_t)(mask_cat->cloth_no + ITM_CLOTH_START) < ITM_CLOTH_END;
|
||||
if (valid_cloth == FALSE) {
|
||||
mFRm_ERRORLINE(1949);
|
||||
res = TRUE;
|
||||
}
|
||||
|
||||
if (mask_cat->talk_idx > mMC_TALK_IDX_MAX) {
|
||||
mFRm_ERRORLINE(1963);
|
||||
res = TRUE;
|
||||
}
|
||||
if (mask_cat->talk_idx > mMC_TALK_IDX_MAX) {
|
||||
mFRm_ERRORLINE(1963);
|
||||
res = TRUE;
|
||||
}
|
||||
|
||||
res |= sChk_OSRTCTime_sub(&mask_cat->time);
|
||||
res |= sChk_OSRTCTime_sub(&mask_cat->time);
|
||||
|
||||
return res;
|
||||
return res;
|
||||
}
|
||||
|
||||
static int sChk_check_save_data() {
|
||||
int res = FALSE;
|
||||
Save_t* save = Common_GetPointer(save.save);
|
||||
int i;
|
||||
int res = FALSE;
|
||||
Save_t* save = Common_GetPointer(save.save);
|
||||
int i;
|
||||
|
||||
for (i = 0; i < mHS_HOUSE_NUM; i++) {
|
||||
res |= sChk_mHm_hs_c_sub(save->homes + i, 1);
|
||||
}
|
||||
for (i = 0; i < mHS_HOUSE_NUM; i++) {
|
||||
res |= sChk_mHm_hs_c_sub(save->homes + i, 1);
|
||||
}
|
||||
|
||||
for (i = 0; i < ANIMAL_NUM_MAX; i++) {
|
||||
res |= sChk_Animal_c_sub(save->animals + i, 1);
|
||||
}
|
||||
for (i = 0; i < ANIMAL_NUM_MAX; i++) {
|
||||
res |= sChk_Animal_c_sub(save->animals + i, 1);
|
||||
}
|
||||
|
||||
res |= sChk_AnmPersonalID_c_sub(&save->last_removed_animal_id, 1);
|
||||
res |= sChk_Kabu_price_c_sub(&save->kabu_price_schedule, 1);
|
||||
res |= sChk_fruit_sub(save->fruit);
|
||||
res |= sChk_OSRTCTime_sub(&save->all_grow_renew_time);
|
||||
res |= sChk_PostOffice_c_sub(&save->post_office, 1);
|
||||
res |= sChk_PoliceBox_c_sub(&save->police_box, 1);
|
||||
res |= sChk_Config_c_sub(&save->config, 1);
|
||||
res |= sChk_lbRTC_ymd_c_sub(&save->renew_time);
|
||||
res |= sChk_OSRTCTime_sub(&save->last_grow_time);
|
||||
res |= sChk_mMsr_time_c_sub(&save->mushroom_time, 1);
|
||||
res |= sChk_lbRTC_ymd_c_sub(&save->_021322);
|
||||
res |= sChk_OSRTCTime_sub(&save->_02136E);
|
||||
res |= sChk_OSRTCTime_sub(&save->treasure_buried_time);
|
||||
res |= sChk_OSRTCTime_sub(&save->treasure_checked_time);
|
||||
res |= sChk_lbRTC_ymd_c_sub(&save->force_remove_date);
|
||||
res |= sChk_MaskCat_c_sub(&save->mask_cat, 1);
|
||||
res |= sChk_AnmPersonalID_c_sub(&save->last_removed_animal_id, 1);
|
||||
res |= sChk_Kabu_price_c_sub(&save->kabu_price_schedule, 1);
|
||||
res |= sChk_fruit_sub(save->fruit);
|
||||
res |= sChk_OSRTCTime_sub(&save->all_grow_renew_time);
|
||||
res |= sChk_PostOffice_c_sub(&save->post_office, 1);
|
||||
res |= sChk_PoliceBox_c_sub(&save->police_box, 1);
|
||||
res |= sChk_Config_c_sub(&save->config, 1);
|
||||
res |= sChk_lbRTC_ymd_c_sub(&save->renew_time);
|
||||
res |= sChk_OSRTCTime_sub(&save->last_grow_time);
|
||||
res |= sChk_mMsr_time_c_sub(&save->mushroom_time, 1);
|
||||
res |= sChk_lbRTC_ymd_c_sub(&save->_021322);
|
||||
res |= sChk_OSRTCTime_sub(&save->_02136E);
|
||||
res |= sChk_OSRTCTime_sub(&save->treasure_buried_time);
|
||||
res |= sChk_OSRTCTime_sub(&save->treasure_checked_time);
|
||||
res |= sChk_lbRTC_ymd_c_sub(&save->force_remove_date);
|
||||
res |= sChk_MaskCat_c_sub(&save->mask_cat, 1);
|
||||
|
||||
return res;
|
||||
return res;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user