#include_function "script\Ikareimu\Stage.dnh"

task Stage6 {
  SetCommonData(GetCommonData("difficulty")~"Stage6Practice", true);
  SaveCommonData;
  
  Wait(60);
  
  if(GetCommonData("gamemode")=="start"){
    SetCommonData("gameevent", "credits");
    return ;
  }
  else if(GetCommonData("gamemode")=="practiceStart"){
    SetCommonData("gameevent", "clear");
    return ;
  }
  else {
    RaiseError("CommonData [gamemode] is not saving correctly.", "Ikareimu Bug");
  }
}

sub Stage6BG {
  if(GetCommonData("gamestate")=="stage6"){
    DrawText("Stage 6", GetClipMinX, GetClipMaxY-30, 18, 255);
  }
}