mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-03 17:33:05 +00:00
FULLPIPE: More scene03 functions
This commit is contained in:
parent
95c7cba9f4
commit
38dfb4da38
@ -29,6 +29,7 @@ namespace Fullpipe {
|
||||
#define ANI_DOMINO_3 2732
|
||||
#define ANI_EGGEATER 334
|
||||
#define ANI_IN1MAN 5110
|
||||
#define ANI_INV_COIN 875
|
||||
#define ANI_INV_EGGAPL 1564
|
||||
#define ANI_INV_EGGBOOT 1570
|
||||
#define ANI_INV_EGGCOIN 1567
|
||||
|
@ -1627,6 +1627,34 @@ void sceneHandler03_giveItem(ExCommand *ex) {
|
||||
sceneHandler03_swallowEgg(ex->_parentId);
|
||||
}
|
||||
|
||||
int sceneHandler03_swallowedEgg1State() {
|
||||
return g_vars->swallowedEgg1->_value.intValue;
|
||||
}
|
||||
|
||||
void sceneHandler03_getCoin(ExCommand *ex) {
|
||||
MessageQueue *mq = g_fullpipe->_globalMessageQueueList->getMessageQueueById(ex->_parId);
|
||||
|
||||
if (mq && mq->getCount() > 0) {
|
||||
ExCommand *ex0 = mq->getExCommandByIndex(0);
|
||||
ExCommand *ex1 = mq->getExCommandByIndex(1);
|
||||
|
||||
if (sceneHandler03_swallowedEgg1State()) {
|
||||
ex0->_messageKind = 1;
|
||||
ex1->_messageKind = 1;
|
||||
|
||||
getGameLoaderInventory()->removeItem(ANI_INV_COIN, 1);
|
||||
} else {
|
||||
ex0->_messageKind = 0;
|
||||
ex0->_excFlags |= 1;
|
||||
|
||||
ex1->_messageKind = 0;
|
||||
ex1->_excFlags |= 1;
|
||||
|
||||
g_vars->scene03_eggeater->_flags &= 0xFF7Fu;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
int sceneHandler03(ExCommand *ex) {
|
||||
#if 0
|
||||
if (ex->_messageKind != 17) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user