mirror of
https://github.com/zeldaret/tp
synced 2026-06-16 06:45:54 -04:00
d_a_npc cleanup (#2466)
* d_a_npc first cleanup pass * more d_a_npc cleanup
This commit is contained in:
@@ -940,12 +940,12 @@ int dShopSystem_c::seq_start(fopAc_ac_c* actor, dMsgFlow_c* i_flow) {
|
||||
if (i_flow->doFlow(actor, NULL, 0)) {
|
||||
int itemNo;
|
||||
if (mFlow.getEventId(&itemNo) == 1) {
|
||||
if (mItemId == -1) {
|
||||
mItemId = fopAcM_createItemForPresentDemo(¤t.pos, itemNo, 0, -1,
|
||||
if (mItemPartnerId == fpcM_ERROR_PROCESS_ID_e) {
|
||||
mItemPartnerId = fopAcM_createItemForPresentDemo(¤t.pos, itemNo, 0, -1,
|
||||
-1, NULL, NULL);
|
||||
}
|
||||
|
||||
if (fpcEx_IsExist(mItemId)) {
|
||||
if (fpcEx_IsExist(mItemPartnerId)) {
|
||||
mEvtNo = 1;
|
||||
evtChange();
|
||||
return 1;
|
||||
@@ -1244,12 +1244,12 @@ int dShopSystem_c::seq_decide_yes(fopAc_ac_c* actor, dMsgFlow_c* i_flow) {
|
||||
int itemNo;
|
||||
if (mFlow.getEventId(&itemNo) == 1) {
|
||||
if (i_flow->doFlow(actor, NULL, 0)) {
|
||||
if (mItemId == -1) {
|
||||
mItemId =
|
||||
if (mItemPartnerId == fpcM_ERROR_PROCESS_ID_e) {
|
||||
mItemPartnerId =
|
||||
fopAcM_createItemForPresentDemo(¤t.pos, itemNo, 0, -1, -1, NULL, NULL);
|
||||
}
|
||||
|
||||
if (fpcEx_IsExist(mItemId)) {
|
||||
if (fpcEx_IsExist(mItemPartnerId)) {
|
||||
offFlag(8);
|
||||
setSoldOutItemHide();
|
||||
mEvtNo = 1;
|
||||
|
||||
Reference in New Issue
Block a user