2024-03-27 19:07:09 +00:00
|
|
|
#include "th02/score.h"
|
|
|
|
|
2023-03-25 19:05:28 +00:00
|
|
|
static const int8_t LIVES_MAX = 5;
|
|
|
|
static const int8_t BOMBS_MAX = 5;
|
|
|
|
|
2021-01-17 15:28:56 +00:00
|
|
|
#define RES_ID "MIKOConfig"
|
2024-01-17 08:03:39 +00:00
|
|
|
struct resident_t {
|
2021-01-17 15:28:56 +00:00
|
|
|
char id[sizeof(RES_ID)];
|
|
|
|
unsigned char stage;
|
|
|
|
char debug;
|
|
|
|
int8_t padding_1;
|
2024-03-27 19:07:09 +00:00
|
|
|
score_t score;
|
2023-10-27 11:25:46 +00:00
|
|
|
unsigned int continues_used;
|
2021-01-17 15:28:56 +00:00
|
|
|
char rem_bombs;
|
|
|
|
char rem_lives;
|
|
|
|
char rank;
|
|
|
|
char start_power;
|
|
|
|
char bgm_mode;
|
2024-04-03 22:56:07 +00:00
|
|
|
uint8_t start_bombs;
|
|
|
|
uint8_t start_lives;
|
2021-01-17 15:28:56 +00:00
|
|
|
int8_t padding_2;
|
|
|
|
long frame;
|
|
|
|
int unused_1;
|
|
|
|
char unused_2;
|
|
|
|
unsigned char op_main_retval;
|
2023-03-18 16:11:35 +00:00
|
|
|
bool reduce_effects;
|
2021-01-17 15:28:56 +00:00
|
|
|
char unused_3;
|
2024-03-29 14:24:07 +00:00
|
|
|
uint8_t shottype;
|
2021-01-17 15:28:56 +00:00
|
|
|
char demo_num;
|
|
|
|
int skill;
|
|
|
|
int unused_4;
|
|
|
|
long score_highest;
|
2024-01-17 08:03:39 +00:00
|
|
|
};
|
2021-01-17 15:28:56 +00:00
|
|
|
|
|
|
|
extern resident_t *resident;
|
2023-03-18 16:11:35 +00:00
|
|
|
|
|
|
|
// Redundant copies of resident structure fields to static data
|
|
|
|
// ------------------------------------------------------------
|
|
|
|
|
2023-03-25 19:05:28 +00:00
|
|
|
extern int8_t bombs;
|
|
|
|
extern int8_t lives;
|
2023-03-18 16:11:35 +00:00
|
|
|
extern bool reduce_effects;
|
|
|
|
// ------------------------------------------------------------
|