Skip to content

Commit

Permalink
FULLPIPE: Implement sceneHandler38_point()
Browse files Browse the repository at this point in the history
  • Loading branch information
sev- committed Jan 21, 2014
1 parent 7d49a97 commit 5137f60
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
3 changes: 3 additions & 0 deletions engines/fullpipe/constants.h
Expand Up @@ -1316,8 +1316,11 @@ namespace Fullpipe {
#define MV_GLV_LOOKMAN 2167
#define ST_DMS_3 3319
#define ST_DMS_4 3320
#define ST_GLV_HAMMER 2156
#define ST_GLV_NOHAMMER 2159
#define ST_MLS_LEFT2 2291
#define QU_GLV_TOSMALL 2208
#define QU_GLV_TOSMALL_NOHMR 2209
#define QU_MLS_TURNR 2221
#define QU_SC38_SHOWBOTTLE 2199
#define QU_SC38_SHOWBOTTLE_ONTABLE 2838
Expand Down
14 changes: 13 additions & 1 deletion engines/fullpipe/scenes/scene38.cpp
Expand Up @@ -106,7 +106,19 @@ void sceneHandler38_propose() {
}

void sceneHandler38_point() {
warning("STUB: sceneHandler38_point()");
if ((!g_vars->scene38_boss->_movement && ((g_vars->scene38_boss->_flags & 4) || !(g_vars->scene38_boss->_flags & 2)))
&& g_vars->scene38_var05 > 0
&& g_fp->_rnd->getRandomNumber(32767) < 32767) {
if (g_vars->scene38_boss->_statics->_staticsId == ST_GLV_HAMMER) {
chainQueue(QU_GLV_TOSMALL, 0);
g_vars->scene38_var05 = 0;
} else {
if (g_vars->scene38_boss->_statics->_staticsId == ST_GLV_NOHAMMER)
chainQueue(QU_GLV_TOSMALL_NOHMR, 0);

g_vars->scene38_var05 = 0;
}
}
}

void sceneHandler38_hammerKick() {
Expand Down

0 comments on commit 5137f60

Please sign in to comment.