Skip to content

Commit

Permalink
menu,stageinfo: hide stuff that's not ready [dokomi]
Browse files Browse the repository at this point in the history
  • Loading branch information
Akaricchi committed Jun 16, 2024
1 parent e7ddd64 commit a62119a
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/menu/spellpractice.c
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ MenuData* create_spell_menu(void) {
for(int i = 0; i < n; ++i) {
StageInfo *stg = stageinfo_get_by_index(i);

if(stg->type != STAGE_SPELL) {
if(stg->type != STAGE_SPELL || stg->hidden) {
continue;
}

Expand Down
2 changes: 1 addition & 1 deletion src/menu/stagepractice.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ MenuData* create_stgpract_menu(Difficulty diff) {
for(int i = 0; i < n; ++i) {
StageInfo *stg = stageinfo_get_by_index(i);

if(stg->type != STAGE_STORY) {
if(stg->type != STAGE_STORY || stg->hidden) {
break;
}

Expand Down
7 changes: 7 additions & 0 deletions src/stageinfo.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

#include "stageinfo.h"
#include "stages/stages.h"
#include "stages/stagex/stagex.h"

#include "dynstage.h"

Expand Down Expand Up @@ -154,6 +155,12 @@ static void stageinfo_fill(StagesExports *e) {

dynarray_compact(&stageinfo.stages);

stageinfo_get_by_id(7)->hidden = true;
struct stagex_spells_s *stagex_spells = (struct stagex_spells_s*)e->stagex.spells;
stageinfo_get_by_spellcard(&stagex_spells->midboss.trap_representation, D_Lunatic)->hidden = true;
stageinfo_get_by_spellcard(&stagex_spells->midboss.fork_bomb, D_Lunatic)->hidden = true;
stageinfo_get_by_spellcard(&stagex_spells->boss.pipe_dream, D_Lunatic)->hidden = true;

#ifdef DEBUG
dynarray_foreach(&stageinfo.stages, int i, StageInfo *stg, {
if(stg->type == STAGE_SPELL && !(stg->id & STAGE_SPELL_BIT)) {
Expand Down
1 change: 1 addition & 0 deletions src/stageinfo.h
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ typedef struct StageInfo {
char *subtitle;
AttackInfo *spell;
Difficulty difficulty;
bool hidden;
} StageInfo;

size_t stageinfo_get_num_stages(void);
Expand Down

0 comments on commit a62119a

Please sign in to comment.