cav->height = MIN(level->fieldy, MAX_PLAYFIELD_HEIGHT);
cav->time_seconds = level->time;
- cav->required = level->gems_needed;
+ cav->gems_needed = level->gems_needed;
cav->emerald_score = level->score[SC_EMERALD];
cav->diamond_score = level->score[SC_DIAMOND];
level->fieldy = MIN(cav->height, MAX_LEV_FIELDY);
level->time = cav->time_seconds;
- level->gems_needed = cav->required;
+ level->gems_needed = cav->gems_needed;
sprintf(level->name, "Level %d", level->file_info.nr);
game_mm.score :
game.score);
int gems = (level.game_engine_type == GAME_ENGINE_TYPE_EM ?
- game_em.lev->required :
+ game_em.lev->gems_needed :
level.game_engine_type == GAME_ENGINE_TYPE_SP ?
game_sp.infotrons_still_needed :
level.game_engine_type == GAME_ENGINE_TYPE_MM ?
game_mm.kettles_still_needed :
game.gems_still_needed);
int exit_closed = (level.game_engine_type == GAME_ENGINE_TYPE_EM ?
- game_em.lev->required > 0 :
+ game_em.lev->gems_needed > 0 :
level.game_engine_type == GAME_ENGINE_TYPE_SP ?
game_sp.infotrons_still_needed > 0 :
level.game_engine_type == GAME_ENGINE_TYPE_MM ?
}
cav.time_seconds = 0;
- cav.required = 0;
+ cav.gems_needed = 0;
cav.eater_score = 0;
cav.alien_score = 0;
cav.bug_score = 0;
cav.tank_score = 0;
+ cav.slurp_score = 0;
+ cav.nut_score = 0;
cav.emerald_score = 0;
cav.diamond_score = 0;
- cav.nut_score = 0;
- cav.slurp_score = 0;
cav.dynamite_score = 0;
cav.key_score = 0;
cav.lenses_score = 0;
int player_y[MAX_PLAYERS]; /* player y pos */
int time_seconds; /* available time (seconds) */
- int required; /* emeralds needed */
+ int gems_needed; /* emeralds needed */
int eater_score; /* score for killing eater */
int alien_score; /* score for killing alien */
int bug_score; /* score for killing bug */
int tank_score; /* score for killing tank */
+ int slurp_score; /* score for slurping alien with spring */
+ int nut_score; /* score for cracking nut to emerald */
int emerald_score; /* score for collecting emerald */
int diamond_score; /* score for collecting diamond */
- int nut_score; /* score for cracking nut */
- int slurp_score; /* score for slurping alien with spring */
int dynamite_score; /* score for collecting dynamite */
int key_score; /* score for colleting key */
int lenses_score; /* score for collecting lenses */
lev.next[x][y] = lev.draw[x][y] = lev.cave[x][y];
lev.time = cav.time_seconds;
-
- lev.required = cav.required;
+ lev.gems_needed = cav.gems_needed;
lev.score = 0;
lev.eater_score = cav.eater_score;
int bottom; /* cave bottom edge */
int time; /* time remaining */
- int required; /* emeralds needed */
+ int gems_needed; /* emeralds needed */
int score; /* score */
int eater_score; /* score for killing eater */
int alien_score; /* score for killing alien */
int bug_score; /* score for killing bug */
int tank_score; /* score for killing tank */
+ int slurp_score; /* score for slurping alien with spring */
+ int nut_score; /* score for cracking nut to emerald */
int emerald_score; /* score for collecting emerald */
int diamond_score; /* score for collecting diamond */
- int nut_score; /* score for cracking nut */
- int slurp_score; /* score for slurping alien with spring */
int dynamite_score; /* score for collecting dynamite */
int key_score; /* score for colleting key */
int lenses_score; /* score for collecting lenses */
next[x][y] = Zplayer;
play_element_sound(x, y, SOUND_collect, element);
lev.score += lev.diamond_score;
- lev.required = lev.required < 3 ? 0 : lev.required - 3;
+ lev.gems_needed = lev.gems_needed < 3 ? 0 : lev.gems_needed - 3;
game.snapshot.collected_item = TRUE;
ply->anim = PLY_walk_n + anim;
ply->x = x;
next[x][y] = Zplayer;
play_element_sound(x, y, SOUND_collect, element);
lev.score += lev.emerald_score;
- lev.required = lev.required < 1 ? 0 : lev.required - 1;
+ lev.gems_needed = lev.gems_needed < 1 ? 0 : lev.gems_needed - 1;
game.snapshot.collected_item = TRUE;
ply->anim = PLY_walk_n + anim;
ply->x = x;
next[x][y] = Xblank;
play_element_sound(x, y, SOUND_collect, element);
lev.score += lev.diamond_score;
- lev.required = lev.required < 3 ? 0 : lev.required - 3;
+ lev.gems_needed = lev.gems_needed < 3 ? 0 : lev.gems_needed - 3;
game.snapshot.collected_item = TRUE;
ply->anim = PLY_walk_n + anim;
break;
next[x][y] = Xblank;
play_element_sound(x, y, SOUND_collect, element);
lev.score += lev.emerald_score;
- lev.required = lev.required < 1 ? 0 : lev.required - 1;
+ lev.gems_needed = lev.gems_needed < 1 ? 0 : lev.gems_needed - 1;
game.snapshot.collected_item = TRUE;
ply->anim = PLY_walk_n + anim;
break;
static void Lexit(int x, int y)
{
- if (lev.required > 0)
+ if (lev.gems_needed > 0)
return;
switch (RANDOM(64) / 21)
if (cav.time_seconds > 9999)
cav.time_seconds = 9999;
- cav.required = src[2095];
+ cav.gems_needed = src[2095];
/* scores */