Updated some log messages and DDD board colors

master
Wynd 2025-11-02 23:50:25 +02:00
parent 42689499d3
commit 7e7653ec83
7 changed files with 24 additions and 25 deletions

View File

@ -97,7 +97,7 @@ table.board {
height: 70%;
position: relative;
left: 15px;
background-color: #cbf;
background-color: #eee;
z-index: 10;
align-content: center;
font-size: 14px;
@ -222,6 +222,5 @@ table.board {
width: 100%;
height: 100%;
z-index: 0;
/*color: #3c3c3c;*/
color: #ccbbff;
color: #eee;
}

View File

@ -39,15 +39,15 @@ pub struct Module;
impl RuntimeModule for Module {
fn start_module() {
tracing::info!("Loading abilities data from {}", ABILITIES_PATH);
tracing::info!("Loading BBS abilities data from {}", ABILITIES_PATH);
let abilities_str = std::fs::read_to_string(ABILITIES_PATH).unwrap();
let abilities = serde_json::from_str::<Vec<Ability>>(&abilities_str).unwrap();
tracing::info!("Loading finishers data from {}", ABILITIES_PATH);
tracing::info!("Loading BBS finishers data from {}", ABILITIES_PATH);
let finishers_str = std::fs::read_to_string(FINISHERS_PATH).unwrap();
let finishers = serde_json::from_str::<HashMap<String, Finisher>>(&finishers_str).unwrap();
tracing::info!("Loading commands data from {}", ABILITIES_PATH);
tracing::info!("Loading BBS commands data from {}", ABILITIES_PATH);
let commands_str = std::fs::read_to_string(COMMANDS_PATH).unwrap();
let mut commands = serde_json::from_str::<Vec<Command>>(&commands_str).unwrap();
@ -66,7 +66,7 @@ impl RuntimeModule for Module {
}
}
tracing::info!("Generating the BBS melding table template");
tracing::info!("Generating BBS melding table template");
let melding_template = CommandsTemplate { commands, crystals };
create_file("./out/bbs", "melding", melding_template).unwrap();

View File

@ -22,7 +22,7 @@ pub struct Module;
impl RuntimeModule for Module {
fn start_module() {
tracing::info!("Loading ability boards data from {}", ABILITIES_PATH);
tracing::info!("Loading DDD ability boards data from {}", ABILITIES_PATH);
let mut boards: Vec<Board> = vec![];
// Loading multiple files into one vector due to the size of each board
let paths = std::fs::read_dir(ABILITIES_PATH)
@ -49,7 +49,7 @@ impl RuntimeModule for Module {
}
boards.sort_by(|a, b| a.order.cmp(&b.order));
tracing::info!("Generating the DDD ability boards template");
tracing::info!("Generating DDD ability boards template");
let boards_template = AbilitiesTemplate { boards };
create_file("./out/ddd", "boards", boards_template).unwrap();

View File

@ -25,10 +25,10 @@ pub struct Module;
impl RuntimeModule for Module {
fn start_module() {
tracing::info!("Loading synthesis data from {}", SYNTHESIS_PATH);
tracing::info!("Loading KH1 synthesis data from {}", SYNTHESIS_PATH);
let synth = Synthesis::new(SYNTHESIS_PATH);
tracing::info!("Generating the KH1 synth template");
tracing::info!("Generating KH1 synth template");
let synth_template = SynthTemplate { data: synth };
create_file("./out/kh1", "synth", synth_template).unwrap();

View File

@ -25,20 +25,20 @@ pub struct Module;
impl RuntimeModule for Module {
fn start_module() {
tracing::info!("Loading enemy data from {}", ENEMIES_PATH);
tracing::info!("Loading KH1FM enemy data from {}", ENEMIES_PATH);
let enemies = Enemy::import(ENEMIES_PATH);
let drops = Drops::new(Game::Kh1(GameProps::final_mix()), enemies);
tracing::info!("Loading synthesis data from {}", SYNTHESIS_PATH);
tracing::info!("Loading KH1FM synthesis data from {}", SYNTHESIS_PATH);
let synth = Synthesis::new(SYNTHESIS_PATH);
tracing::info!("Generating the KH1FM, drops template");
tracing::info!("Generating KH1FM drops template");
let drops_template = DropsTemplate { data: drops };
create_file("./out/kh1fm", "drops", drops_template).unwrap();
tracing::info!("Generating the KH1FM synth template");
tracing::info!("Generating KH1FM synth template");
let synth_template = SynthTemplate { data: synth };
create_file("./out/kh1fm", "synth", synth_template).unwrap();

View File

@ -18,12 +18,12 @@ pub struct Module;
impl RuntimeModule for Module {
fn start_module() {
tracing::info!("Loading enemy data from {}", ENEMIES_PATH);
tracing::info!("Loading KH2FM enemy data from {}", ENEMIES_PATH);
let enemies = Enemy::import(ENEMIES_PATH);
let drops = Drops::new(Game::Kh2(GameProps::final_mix()), enemies);
tracing::info!("Generating the KH2FM drops template");
tracing::info!("Generating KH2FM drops template");
let drops_template = DropsTemplate { data: drops };
create_file("./out/kh2fm", "drops", drops_template).unwrap();

View File

@ -48,36 +48,36 @@ pub struct Module;
impl RuntimeModule for Module {
fn start_module() {
tracing::info!("Loading enemy data from {}", ENEMIES_PATH);
tracing::info!("Loading KH3 enemy data from {}", ENEMIES_PATH);
let enemies = Enemy::import(ENEMIES_PATH);
let drops = Drops::new(Game::Kh3, enemies);
tracing::info!("Loading ingredients data from {}", ENEMIES_PATH);
tracing::info!("Loading KH3 ingredients data from {}", ENEMIES_PATH);
let ingredients = Ingredient::import(INGREDIENTS_PATH);
tracing::info!("Loading recipes data from {}", RECIPES_PATH);
tracing::info!("Loading KH3 recipes data from {}", RECIPES_PATH);
let recipes_str = std::fs::read_to_string(RECIPES_PATH).unwrap();
let recipes = toml::from_str::<Recipes>(&recipes_str).unwrap();
tracing::info!("Loading pro codes data from {}", PRO_CODES_PATH);
tracing::info!("Loading KH3 pro codes data from {}", PRO_CODES_PATH);
let pro_codes_str = std::fs::read_to_string(PRO_CODES_PATH).unwrap();
let pro_codes = toml::from_str::<ProCodes>(&pro_codes_str).unwrap();
let pro_code_fights_str = std::fs::read_to_string(PRO_CODE_FIGHTS_PATH).unwrap();
let pro_code_fights = toml::from_str::<ProCodeFights>(&pro_code_fights_str).unwrap();
tracing::info!("Generating the KH3 drops template");
tracing::info!("Generating KH3 drops template");
let drops_template = DropsTemplate { data: drops };
create_file("./out/kh3", "drops", drops_template).unwrap();
tracing::info!("Generating the KH3 ingredients template");
tracing::info!("Generating KH3 ingredients template");
let ingredients_template = IngredientsTemplate { ingredients };
create_file("./out/kh3", "ingredients", ingredients_template).unwrap();
tracing::info!("Generating the KH3 recipes template");
tracing::info!("Generating KH3 recipes template");
let food_template = RecipesTemplate { recipes };
create_file("./out/kh3", "food-sim", food_template).unwrap();
tracing::info!("Generating the KH3 pro codes template");
tracing::info!("Generating KH3 pro codes template");
let pro_codes_template = ProCodesTemplate {
pro_codes: pro_codes.codes,
fights: pro_code_fights.fights,