i/o stuff: skeleton framework for morgue files, and a config.toml file

This commit is contained in:
Llywelwyn 2023-08-24 22:34:05 +01:00
parent b2010958e7
commit 3023a33cc5
17 changed files with 209 additions and 56 deletions

View file

@ -3,7 +3,7 @@ use crate::components::*;
use crate::gamesystem::*;
use crate::gui::Ancestry;
use crate::random_table::RandomTable;
use crate::LOG_SPAWNING;
use crate::config::CONFIG;
use regex::Regex;
use rltk::prelude::*;
use specs::prelude::*;
@ -543,7 +543,7 @@ pub fn spawn_named_mob(
eb = eb.with(LootTable { table: loot.table.clone(), chance: loot.chance });
}
if LOG_SPAWNING {
if CONFIG.logging.log_spawning {
rltk::console::log(
format!(
"SPAWNLOG: {} ({}HP, {}MANA, {}BAC) spawned at level {} ({}[base], {}[map difficulty], {}[player level]), worth {} XP",