From f121f12eb150d94e299164272c65ccaf164144fc Mon Sep 17 00:00:00 2001 From: Dandaedre Date: Tue, 2 Dec 2025 20:31:57 +0100 Subject: [PATCH] More on show --- bin_efo/src/commands.rs | 1 + bin_efo/src/commands/epoch.rs | 23 +- bin_efo/src/commands/show.rs | 38 + bin_efo/src/main.rs | 37 +- lib_efo/src/entity.rs | 2 +- naming.json | 2360 +++++++++++++++++++++++++++++++++ 6 files changed, 2426 insertions(+), 35 deletions(-) create mode 100644 bin_efo/src/commands/show.rs create mode 100644 naming.json diff --git a/bin_efo/src/commands.rs b/bin_efo/src/commands.rs index 2b3f2e9..1e8a1e0 100644 --- a/bin_efo/src/commands.rs +++ b/bin_efo/src/commands.rs @@ -10,6 +10,7 @@ pub mod epoch; pub mod init; +pub mod show; // pub mod diff; // pub mod utils; // pub mod event; diff --git a/bin_efo/src/commands/epoch.rs b/bin_efo/src/commands/epoch.rs index d260bfd..930d1a7 100644 --- a/bin_efo/src/commands/epoch.rs +++ b/bin_efo/src/commands/epoch.rs @@ -38,7 +38,7 @@ pub mod cli_epoch; /// /// The function never panics under normal operation. All errors are /// reported via the returned `Result`. -pub fn handle_cmd(cmd: cli_epoch::EpochCmd) -> Result<(), AppError> { +pub fn handle_cmd(cmd: &cli_epoch::EpochCmd) -> Result<(), AppError> { let mut main_epoch = EpochConfig::new_from_path(None)?; // // TODO[2]: Remove this debug debug!("The main epoch befor any action is {:#?}", main_epoch); @@ -66,14 +66,17 @@ pub fn handle_cmd(cmd: cli_epoch::EpochCmd) -> Result<(), AppError> { /// /// This helper is internal to the `epoch` sub-command and is not part /// of the public API. -fn handle_summary(args: cli_epoch::Summary, main_epoch: &mut EpochConfig) -> Result<(), AppError> { +fn handle_summary(args: &cli_epoch::Summary, main_epoch: &mut EpochConfig) -> Result<(), AppError> { let epoch_id = main_epoch.epoch_id; main_epoch.try_load(&epoch_id)?; #[allow(clippy::unwrap_used)] // The epoch_id must exists at this point if let Some(epoch) = main_epoch.list_existing_epochs.get_mut(&epoch_id).unwrap() { epoch.summary = args.summary.clone(); epoch.save_with_context("Saving new summary", &lib_efo::epoch::SaveMode::Erase)?; - display_success(&SuccessMessages::ChangedSummary(epoch_id, args.summary)); + display_success(&SuccessMessages::ChangedSummary( + epoch_id, + args.summary.clone(), + )); } Ok(()) @@ -86,7 +89,7 @@ fn handle_summary(args: cli_epoch::Summary, main_epoch: &mut EpochConfig) -> Res /// /// This helper is internal to the `epoch` sub-command and is not part /// of the public API. -fn handle_diff(args: cli_epoch::Diff) -> Result<(), AppError> { +fn handle_diff(args: &cli_epoch::Diff) -> Result<(), AppError> { let _ = args; unimplemented!("Blocker: There is actually no way to diff the world yet") } @@ -100,7 +103,7 @@ fn handle_diff(args: cli_epoch::Diff) -> Result<(), AppError> { /// underlying `EpochConfig::log_elements` implementation. /// /// This helper is internal to the `epoch` sub-command. -fn handle_log(args: cli_epoch::Log, main_epoch: &mut EpochConfig) -> Result<(), AppError> { +fn handle_log(args: &cli_epoch::Log, main_epoch: &mut EpochConfig) -> Result<(), AppError> { let limit = args.limit; let start_id = &main_epoch.epoch_id; @@ -122,7 +125,7 @@ fn handle_log(args: cli_epoch::Log, main_epoch: &mut EpochConfig) -> Result<(), /// success message via `display_success`. /// /// This helper is internal to the `epoch` sub-command. -fn handle_switch(args: cli_epoch::Switch, main_epoch: &mut EpochConfig) -> Result<(), AppError> { +fn handle_switch(args: &cli_epoch::Switch, main_epoch: &mut EpochConfig) -> Result<(), AppError> { let target = main_epoch.get(&args.target)?; main_epoch.try_load(&target)?; main_epoch.epoch_id = target; @@ -150,7 +153,7 @@ fn handle_switch(args: cli_epoch::Switch, main_epoch: &mut EpochConfig) -> Resul /// * `Ok(())` if the next epoch was successfully computed. /// * `Err(AppError::Epoch(EpochError::FutureEpochExist))` if there are /// no future epochs to advance to. -fn handle_next(_args: cli_epoch::Next, main_epoch: &mut EpochConfig) -> Result<(), AppError> { +fn handle_next(_args: &cli_epoch::Next, main_epoch: &mut EpochConfig) -> Result<(), AppError> { let current_id = main_epoch.epoch_id; // Check that there are no future epochs @@ -183,7 +186,7 @@ fn handle_next(_args: cli_epoch::Next, main_epoch: &mut EpochConfig) -> Result<( /// # Returns /// * `Ok(())` if all future epochs were successfully removed. /// * `Err(AppError)` if any deletion fails. -fn handle_reset(args: cli_epoch::Reset, main_epoch: &mut EpochConfig) -> Result<(), AppError> { +fn handle_reset(args: &cli_epoch::Reset, main_epoch: &mut EpochConfig) -> Result<(), AppError> { let _ = args; let current_id = main_epoch.epoch_id; // for id in main_epoch @@ -217,7 +220,7 @@ fn handle_reset(args: cli_epoch::Reset, main_epoch: &mut EpochConfig) -> Result< /// already exists in another epoch. /// * `Err(AppError::Epoch(EpochError::Unknown))` if the epoch cannot /// be found or saved. -fn handle_taging(args: cli_epoch::Tag, main_epoch: &mut EpochConfig) -> Result<(), AppError> { +fn handle_taging(args: &cli_epoch::Tag, main_epoch: &mut EpochConfig) -> Result<(), AppError> { // Load into memory the current epoch main_epoch.try_load(&main_epoch.epoch_id.clone())?; @@ -263,7 +266,7 @@ fn handle_taging(args: cli_epoch::Tag, main_epoch: &mut EpochConfig) -> Result<( /// command may also print a diagnostic message to the user. /// /// This helper is internal to the `epoch` sub-command. -fn handle_fsck(args: cli_epoch::Fsck, main_epoch: &mut EpochConfig) -> Result<(), AppError> { +fn handle_fsck(args: &cli_epoch::Fsck, main_epoch: &mut EpochConfig) -> Result<(), AppError> { let _ = main_epoch; let _ = args; unimplemented!() diff --git a/bin_efo/src/commands/show.rs b/bin_efo/src/commands/show.rs new file mode 100644 index 0000000..b00fd59 --- /dev/null +++ b/bin_efo/src/commands/show.rs @@ -0,0 +1,38 @@ +//! The show commands +//! + +use clap::Subcommand; +use lib_efo::{Displayable, entity::Entity, naming::NAMING}; + +use crate::error::AppError; +#[derive(Subcommand, Debug)] +/// Show command +pub enum ShowCmd { + /// Show an event + Event, +} + +/// Handle all show cmds +pub fn handle_show_cmd(cmd: &ShowCmd) -> Result<(), AppError> { + let _ = cmd; + let mut e = Entity::default(); + e.name = NAMING.generate_long_character_name(); + println!("Original Struct: \n{e:#?}"); + println!("\n\n\nONELINES"); + println!("{}", e.oneline_display()); + println!("{}", e.oneline_display()); + println!("{}", e.oneline_display()); + println!("{}", e.oneline_display()); + println!("{}", e.oneline_display()); + println!("{}", e.oneline_display()); + println!("{}", e.oneline_display()); + println!("\n\n\n SHORT"); + e.print_short(); + + println!("\n\n\n LONG"); + e.print_full(); + println!("\n\n\n TREE"); + println!("{}", e.to_pretty_tree()); + + Ok(()) +} diff --git a/bin_efo/src/main.rs b/bin_efo/src/main.rs index e5e66f1..966fdca 100644 --- a/bin_efo/src/main.rs +++ b/bin_efo/src/main.rs @@ -23,12 +23,14 @@ #![warn(missing_docs, clippy::missing_docs_in_private_items)] #![deny(clippy::unwrap_used)] -use clap::{ArgAction, Parser, Subcommand}; -use lib_efo::Displayable; -use lib_efo::entity::Entity; +use std::fmt::Debug; -use crate::commands::init::InitCmd; -use crate::{commands::epoch::cli_epoch::EpochCmd, error::AppError}; +use clap::{ArgAction, Parser, Subcommand}; + +use crate::{ + commands::{epoch::cli_epoch::EpochCmd, init::InitCmd, show::ShowCmd}, + error::AppError, +}; mod commands; mod error; mod success; @@ -61,6 +63,9 @@ enum TopLevelCmd { /// Advance or query the current epoch. #[command(subcommand)] Epoch(EpochCmd), + /// Display some elements + #[command(subcommand)] + Show(ShowCmd), // Event(commands::event::EventCmd), // Org(commands::org::OrgCmd), // Chr(commands::chr::ChrCmd), @@ -77,18 +82,6 @@ enum TopLevelCmd { fn main() -> miette::Result<()> { env_logger::init(); - let e = Entity::default(); - // println!("{e:#?}"); - println!("{}", e.oneline_display()); - println!("{}", e.oneline_display()); - println!("{}", e.oneline_display()); - println!("{}", e.oneline_display()); - println!("{}", e.oneline_display()); - println!("{}", e.oneline_display()); - println!("{}", e.oneline_display()); - // e.print_short(); - // e.print_full(); - // println!("{}", e.to_pretty_tree()); let cli = Cli::parse(); if let Err(e) = exec_dispatch(cli) { @@ -113,12 +106,8 @@ fn main() -> miette::Result<()> { /// stdout and returned as a `miette::Result<()>`. fn exec_dispatch(cli: Cli) -> Result<(), AppError> { match cli.command { - TopLevelCmd::Init(cmd) => { - commands::init::init(&cmd)?; - } - TopLevelCmd::Epoch(cmd) => { - commands::epoch::handle_cmd(cmd)?; - } + TopLevelCmd::Init(cmd) => commands::init::init(&cmd), + TopLevelCmd::Epoch(cmd) => commands::epoch::handle_cmd(&cmd), + TopLevelCmd::Show(cmd) => commands::show::handle_show_cmd(&cmd), } - Ok(()) } diff --git a/lib_efo/src/entity.rs b/lib_efo/src/entity.rs index 21e658b..93bc703 100644 --- a/lib_efo/src/entity.rs +++ b/lib_efo/src/entity.rs @@ -22,7 +22,7 @@ pub mod implementations; #[derive(Serialize, Deserialize, Debug, Clone, Default)] pub struct Entity { /// The name of the entity - name: String, + pub name: String, /// Runtime statistics that determine the entity’s behaviour. /// /// These values are updated by the game loop and reflect the diff --git a/naming.json b/naming.json new file mode 100644 index 0000000..a52eba0 --- /dev/null +++ b/naming.json @@ -0,0 +1,2360 @@ +{ + "first_names": [ + "Aeron", + "Brienne", + "Cedric", + "Darya", + "Eldon", + "Fiora", + "Galen", + "Hela", + "Ivor", + "Juno", + "Aldric", + "Briar", + "Caelum", + "Dorin", + "Elysia", + "Fendrel", + "Gryphon", + "Hector", + "Iseult", + "Kael", + "Lysander", + "Morgath", + "Nyx", + "Odin", + "Riven", + "Sylvan", + "Thorne", + "Valen", + "Wraith", + "Xander", + "Yara", + "Zarek", + "Artemis", + "Baldric", + "Corvin", + "Draven", + "Eira", + "Fenris", + "Gale", + "Helios", + "Ivy", + "Jasper", + "Kara", + "Luna", + "Mira", + "Nimrod", + "Onyx", + "Peregrine", + "Quinn", + "Aegon", + "Brek", + "Calandra", + "Darrion", + "Eryndor", + "Fenn", + "Galax", + "Hestia", + "Ilarion", + "Jareth", + "Kassandra", + "Lyris", + "Maelor", + "Nyssa", + "Oren", + "Phaedra", + "Quillon", + "Rhea", + "Soren", + "Thalia", + "Uther", + "Vesper", + "Wulfric", + "Xara", + "Yoren", + "Zorath", + "Aerith", + "Baldrick", + "Cress", + "Dazai", + "Elara", + "Fira" + ], + "last_names": [ + "Ashwood", + "Blackthorn", + "Cinderglow", + "Dunwynn", + "Everfield", + "Frosthelm", + "Goldleaf", + "Holloway", + "Iverson", + "Jasper", + "Ravencrest", + "Stormblade", + "Nightshade", + "Wraithborne", + "Dreadmoor", + "Ironhart", + "Bloodstone", + "Stonegate", + "Gloomreach", + "Sablewick", + "Rookhaven", + "Ironcrest", + "Bleakmoor", + "Thornshield", + "Wyrmwood", + "Darkwater", + "Stormbreaker", + "Ebonhart", + "Bloodbane", + "Eclipseborne", + "Firethorn", + "Silvershade", + "Blackfrost", + "Sorrowblade", + "Stonehelm", + "Gravelock", + "Voidwalker", + "Nightfall", + "Ashenfall", + "Ashenridge", + "Duskfall", + "Thornhaven", + "Gloombreaker", + "Riftwalker", + "Althmar", + "Brimstone", + "Cinderfall", + "Duskbane", + "Emberforge", + "Frostbane", + "Grimsbane", + "Ironbark", + "Jaggedspire", + "Keldrith", + "Lament", + "Mistveil", + "Nightglow", + "Oathbreaker", + "Palegrave", + "Quicksilver", + "Riftshard", + "Shadowforge", + "Thornbane", + "Umbral", + "Vengeance", + "Wraithbane", + "Xylander", + "Yester", + "Zephyr", + "Blackfire", + "Bloodthorn", + "Crimsonveil", + "Dreadspire", + "Eboncrest", + "Firebrand", + "Grimshard", + "Ironheart", + "Javelin", + "Krait", + "Luminous", + "Marrowbone", + "Nocturne", + "Obsidian", + "Pyre", + "Quagmire", + "Reaver", + "Sableheart", + "Tidebreaker" + ], + "town_prefixes": [ + "Ash", + "Bright", + "Cedar", + "Deep", + "Elder", + "Frost", + "Glen", + "High", + "Iron", + "Jade", + "Ashen", + "Blood", + "Cobalt", + "Dusk", + "Ebon", + "Gloom", + "Ironforge", + "Keen", + "Mourn", + "Raven", + "Storm", + "Void", + "Wraith", + "Night", + "Silvers", + "Black", + "Crimson", + "Fire", + "Grim", + "Briar", + "Obsidian", + "Shade", + "Thorn", + "Sable", + "Rift", + "Dread", + "Sorrow", + "Bleak", + "Eclipse", + "Eternity", + "Glint", + "Gleam", + "Hollow", + "Lament", + "Mire", + "Molt", + "Nocturne", + "Onyx", + "Pale", + "Rook", + "Shimmer", + "Stonem", + "Stone", + "Stonehold", + "Stonekeep", + "Stoneforge", + "Stormfall", + "Stormgate", + "Stormhold", + "Stormreach", + "Stormspire", + "Stormwind", + "Throne", + "Twilight", + "Valiant", + "Valest", + "Valer", + "Vex", + "Vile", + "Warden" + ], + "town_suffixes": [ + "brook", + "dale", + "field", + "haven", + "keep", + "moor", + "port", + "reach", + "stone", + "vale", + "forge", + "shard", + "hollow", + "cove", + "hall", + "watch", + "spire", + "glade", + "cliff", + "glen", + "tower", + "fort", + "hold", + "bastion", + "crypt", + "crossing", + "crown", + "ridge", + "fell", + "breach", + "briar", + "bloom", + "field", + "river", + "canyon", + "fen", + "crag", + "gate", + "bridge", + "watchtower", + "watcher", + "mire", + "waste", + "breach", + "fall", + "crone", + "shadow", + "veil", + "blight", + "soul", + "night", + "storm", + "fire", + "ice", + "iron", + "dark", + "glimmer", + "glare", + "scar", + "scarred", + "spire", + "peak", + "ridge", + "hall", + "hold", + "spire", + "vale", + "vale", + "haven", + "hollow", + "breach", + "crust" + ], + "character_adjectives": [ + "the Blind", + "the Magnificent", + "the Cunning", + "the Swift", + "the Stoic", + "the Fearless", + "the Enigmatic", + "the Shadow", + "the Light", + "the Wanderer", + "the Unbroken", + "the Relentless", + "the Ruthless", + "the Merciless", + "the Devourer", + "the Ancient", + "the Fallen", + "the Immortal", + "the Vengeful", + "the Stormborn", + "the Silent", + "the Bloodied", + "the Corrupt", + "the Darkened", + "the Ember", + "the Crimson", + "the Iron", + "the Sable", + "the Radiant", + "the Tempest", + "the Gloom", + "the Warlord", + "the Titan", + "the Behemoth", + "the Leviathan", + "the Doombringer", + "the Wraith", + "the Sundered", + "the Gloomstalker", + "the Blight", + "the Harbinger", + "the Abyssal", + "the Scourge", + "the Dread", + "the Fury", + "the Specter", + "the Maw", + "the Protector", + "the Guardian", + "the Champion", + "the Savior", + "the Reaper", + "the Harvester", + "the Seeker", + "the Whisperer", + "the Tempest-born", + "the Iron-clad", + "the Moonlit", + "the Sun-scarred", + "the Bone-choked", + "the Frost-kissed", + "the Ashen", + "the Shattered", + "the Echo-bound", + "the Vile", + "the Harsh", + "the Unseen", + "the Unyielding", + "of the North", + "of the South", + "of the East", + "of the West", + "of the Dark", + "of the Light", + "of the Forgotten", + "of the Broken", + "of the Eternal", + "of the Shadowlands", + "of the Burning", + "of the Frozen", + "of the Storm", + "of the Depths", + "of the Maw", + "of the Ashen Sea", + "of the Crimson Dawn" + ], + "character_prefixes": [ + "Sir", + "Lady", + "Mighty", + "Elder", + "Grand", + "Humble", + "Radiant", + "Lord", + "High", + "Royal", + "Ancient", + "Warden", + "Seer", + "Master" + ], + "event_ideas": [ + { + "name": "storm_flood", + "description": "A sudden storm floods the river, threatening the local farms.", + "stats": [ + { + "stat": "Population", + "value": -5 + }, + { + "stat": "Food", + "value": -12 + } + ], + "duration": { + "Duration": 1 + }, + "application": "PermanentEffectToApply", + "effect_bounds": { + "min": 10, + "max": 70 + } + }, + { + "name": "earthquake", + "description": "A massive quake ripples across the region.", + "stats": [ + { + "stat": "Transportation", + "value": -9 + }, + { + "stat": "Sprawl", + "value": -5 + }, + { + "stat": "Health", + "value": -3 + }, + { + "stat": "Industry", + "value": -2 + }, + { + "stat": "Population", + "value": -10 + }, + { + "stat": "Happiness", + "value": -8 + } + ], + "duration": { + "Duration": 1 + }, + "application": "PermanentEffectToApply", + "effect_bounds": { + "min": 10, + "max": 110 + } + }, + { + "name": "region_blood_monsoon", + "description": "A crimson rain falls over the region, poisoning crops and water sources.", + "stats": [ + { + "stat": "Food", + "value": -18 + }, + { + "stat": "Health", + "value": -12 + }, + { + "stat": "Population", + "value": -7 + } + ], + "duration": { + "Duration": 1 + }, + "application": "PermanentEffectToApply", + "effect_bounds": { + "min": 10, + "max": 110 + } + }, + { + "name": "town_haunted_market", + "description": "Spectral merchants appear, selling cryptic ware from a bygone era.", + "stats": [ + { + "stat": "Trade", + "value": 9 + }, + { + "stat": "Science", + "value": 9 + }, + { + "stat": "Food", + "value": 13 + }, + { + "stat": "Crime", + "value": 7 + }, + { + "stat": "Threat", + "value": 11 + } + ], + "duration": { + "Duration": 3 + }, + "application": "WhenPresent", + "effect_bounds": { + "min": 10, + "max": 80 + } + }, + { + "name": "region_darkening_sun", + "description": "The sky is shrouded in an unnatural pallid dusk, lowering morale and crop yields.", + "stats": [ + { + "stat": "Happiness", + "value": -14 + }, + { + "stat": "Food", + "value": -10 + }, + { + "stat": "Culture", + "value": -5 + } + ], + "duration": { + "Duration": 6 + }, + "application": "WhenPresent", + "effect_bounds": { + "min": 20, + "max": 90 + } + }, + { + "name": "town_giant_earthworm", + "description": "A colossal earthworm burrows beneath the town, destabilizing foundations and causing tremors.", + "stats": [ + { + "stat": "Food", + "value": -5 + }, + { + "stat": "Industry", + "value": -2 + }, + { + "stat": "Happiness", + "value": -12 + }, + { + "stat": "Fortification", + "value": -8 + }, + { + "stat": "Population", + "value": -4 + } + ], + "duration": { + "Duration": 4 + }, + "application": "WhenPresent", + "effect_bounds": { + "min": 30, + "max": 70 + } + }, + { + "name": "region_arcane_surge", + "description": "An uncontrollable surge of raw sangressence tears through reality, causing unpredictable effects.", + "stats": [ + { + "stat": "Science", + "value": 12 + }, + { + "stat": "Education", + "value": 8 + }, + { + "stat": "Population", + "value": -6 + } + ], + "duration": { + "Duration": 6 + }, + "application": "WhenPresent", + "effect_bounds": { + "min": 30, + "max": 70 + } + }, + { + "name": "town_mushroom_meteor", + "description": "A meteor of colossal fungi explodes over a town, releasing spores that induce vivid hallucinations.", + "stats": [ + { + "stat": "Health", + "value": -10 + }, + { + "stat": "Crime", + "value": 6 + }, + { + "stat": "Population", + "value": -3 + } + ], + "duration": { + "Duration": 1 + }, + "application": "PermanentEffectToApply", + "effect_bounds": { + "min": 20, + "max": 90 + } + }, + { + "name": "region_infernal_flood", + "description": "Molten rivers run through the region, boiling over cities and devouring forests.", + "stats": [ + { + "stat": "Transportation", + "value": -4 + }, + { + "stat": "Sprawl", + "value": -5 + }, + { + "stat": "Happiness", + "value": -19 + }, + { + "stat": "Food", + "value": -15 + }, + { + "stat": "Population", + "value": -12 + } + ], + "duration": { + "Duration": 5 + }, + "application": "WhenPresent", + "effect_bounds": { + "min": 20, + "max": 90 + } + }, + { + "name": "region_sand_vortex", + "description": "A vortex of shifting sands sweeps the region, burying entire nations under dunes.", + "stats": [ + { + "stat": "Bureaucracy", + "value": -14 + }, + { + "stat": "Transportation", + "value": -14 + }, + { + "stat": "Sprawl", + "value": -14 + }, + { + "stat": "Population", + "value": -16 + }, + { + "stat": "Trade", + "value": -10 + } + ], + "duration": { + "Duration": 5 + }, + "application": "WhenPresent", + "effect_bounds": { + "min": 20, + "max": 90 + } + }, + { + "name": "region_wind_of_gods", + "description": "A relentless gale from the gods tears through the region, scattering armies and wrecking supply lines.", + "stats": [ + { + "stat": "Transportation", + "value": -12 + }, + { + "stat": "Army", + "value": -9 + }, + { + "stat": "Population", + "value": -3 + } + ], + "duration": { + "Duration": 8 + }, + "application": "WhenPresent", + "effect_bounds": { + "min": 20, + "max": 90 + } + }, + { + "name": "region_ancient_sunrise", + "description": "The sun rises in a crimson glow, amplifying the power of all dark cults and spreading fear.", + "stats": [ + { + "stat": "Crime", + "value": 9 + }, + { + "stat": "Happiness", + "value": -8 + }, + { + "stat": "Influence", + "value": -5 + } + ], + "duration": { + "Duration": 7 + }, + "application": "WhenPresent", + "effect_bounds": { + "min": 20, + "max": 90 + } + }, + { + "name": "town_forest_of_eyes", + "description": "A forest that watches every step, slowly siphoning the life force from any who walk through.", + "stats": [ + { + "stat": "Health", + "value": -10 + }, + { + "stat": "Crime", + "value": 7 + }, + { + "stat": "Happiness", + "value": 7 + }, + { + "stat": "Population", + "value": -14 + } + ], + "duration": { + "Duration": 8 + }, + "application": "WhenPresent", + "effect_bounds": { + "min": 20, + "max": 90 + } + }, + { + "name": "city_corruption_scandal", + "description": "A high‑ranking magistrate is discovered embezzling city funds, sparking public outrage and a demand for accountability.", + "stats": [ + { + "stat": "Food", + "value": -4 + }, + { + "stat": "Industry", + "value": -3 + }, + { + "stat": "Science", + "value": -3 + }, + { + "stat": "Trade", + "value": -8 + }, + { + "stat": "Bureaucracy", + "value": -7 + }, + { + "stat": "Crime", + "value": 7 + } + ], + "duration": { + "Duration": 1 + }, + "application": "PermanentEffectToApply", + "effect_bounds": { + "min": 22, + "max": 86 + } + }, + { + "name": "city_tax_reform", + "description": "The council implements a sweeping tax overhaul that raises revenue but triggers protests among merchants.", + "stats": [ + { + "stat": "Food", + "value": 9 + }, + { + "stat": "Industry", + "value": 10 + }, + { + "stat": "Science", + "value": 7 + }, + { + "stat": "Trade", + "value": 13 + }, + { + "stat": "Happiness", + "value": -4 + }, + { + "stat": "Crime", + "value": 5 + } + ], + "duration": { + "Duration": 1 + }, + "application": "PermanentEffectToApply", + "effect_bounds": { + "min": 25, + "max": 92 + } + }, + { + "name": "city_watch_mutiny", + "description": "The city guard, disgruntled by unpaid wages, mutinies turns bandits.", + "stats": [ + { + "stat": "Strength", + "value": -6 + }, + { + "stat": "Crime", + "value": 8 + }, + { + "stat": "Population", + "value": -2 + } + ], + "duration": { + "Duration": 1 + }, + "application": "PermanentEffectToApply", + "effect_bounds": { + "min": 18, + "max": 80 + } + }, + { + "name": "city_water_contamination", + "description": "Tainted water leaks into the municipal supply, causing a sudden spike in illnesses.", + "stats": [ + { + "stat": "Health", + "value": -14 + }, + { + "stat": "Population", + "value": -5 + }, + { + "stat": "Bureaucracy", + "value": -3 + } + ], + "duration": { + "Duration": 1 + }, + "application": "PermanentEffectToApply", + "effect_bounds": { + "min": 21, + "max": 88 + } + }, + { + "name": "city_bureaucratic_bureaucracy", + "description": "A new procedural reform overhauls city administration, halting projects for months and stalling economic growth.", + "stats": [ + { + "stat": "Bureaucracy", + "value": 14 + }, + { + "stat": "Sprawl", + "value": -9 + }, + { + "stat": "Health", + "value": -7 + }, + { + "stat": "Food", + "value": 3 + }, + { + "stat": "Industry", + "value": 2 + }, + { + "stat": "Science", + "value": 3 + }, + { + "stat": "Trade", + "value": 4 + } + ], + "duration": { + "Duration": 1 + }, + "application": "PermanentEffectToApply", + "effect_bounds": { + "min": 23, + "max": 90 + } + }, + { + "name": "city_guild_suppression", + "description": "The council cracks down on the city's merchant guilds, confiscating goods and driving merchants underground.", + "stats": [ + { + "stat": "Trade", + "value": -11 + }, + { + "stat": "Crime", + "value": 6 + }, + { + "stat": "Population", + "value": -3 + } + ], + "duration": { + "Duration": 1 + }, + "application": "PermanentEffectToApply", + "effect_bounds": { + "min": 19, + "max": 83 + } + }, + { + "name": "city_civic_riot", + "description": "An assembly of disgruntled workers erupts into a violent riot, tearing through market stalls and public buildings.", + "stats": [ + { + "stat": "Trade", + "value": -12 + }, + { + "stat": "Happiness", + "value": -9 + }, + { + "stat": "Crime", + "value": 10 + } + ], + "duration": { + "Duration": 2 + }, + "application": "WhenPresent", + "effect_bounds": { + "min": 25, + "max": 95 + } + }, + { + "name": "city_public_health_crisis", + "description": "A mysterious disease spreads through the city's crowded streets, overwhelming the local infirmaries.", + "stats": [ + { + "stat": "Health", + "value": -3 + }, + { + "stat": "Population", + "value": -3 + }, + { + "stat": "Happiness", + "value": -2 + } + ], + "duration": { + "Duration": 6 + }, + "application": "Recurring", + "effect_bounds": { + "min": 20, + "max": 95 + } + }, + { + "name": "city_transport_infrastructure_fail", + "description": "The city's main aqueduct collapses, cutting off water supply to half the districts.", + "stats": [ + { + "stat": "Transportation", + "value": -15 + }, + { + "stat": "Population", + "value": -4 + }, + { + "stat": "Bureaucracy", + "value": -2 + } + ], + "duration": { + "Duration": 1 + }, + "application": "PermanentEffectToApply", + "effect_bounds": { + "min": 20, + "max": 90 + } + }, + { + "name": "city_festival_corruption", + "description": "During a grand city festival, officials accept bribes to award contracts, compromising civic integrity.", + "stats": [ + { + "stat": "Bureaucracy", + "value": -8 + }, + { + "stat": "Crime", + "value": 4 + }, + { + "stat": "Happiness", + "value": -3 + } + ], + "duration": { + "Duration": 1 + }, + "application": "PermanentEffectToApply", + "effect_bounds": { + "min": 20, + "max": 90 + } + }, + { + "name": "city_gold_exodus", + "description": "A sudden discovery of gold in the hinterlands draws merchants away, leaving local markets starved of currency.", + "stats": [ + { + "stat": "Food", + "value": -4 + }, + { + "stat": "Industry", + "value": -4 + }, + { + "stat": "Trade", + "value": -8 + }, + { + "stat": "Population", + "value": -2 + } + ], + "duration": { + "Duration": 1 + }, + "application": "PermanentEffectToApply", + "effect_bounds": { + "min": 20, + "max": 90 + } + }, + { + "name": "regional_drought", + "description": "An extended dry spell cripples crop yields, driving up food prices and crippling the agrarian economy.", + "stats": [ + { + "stat": "Food", + "value": -15 + }, + { + "stat": "Trade", + "value": -13 + }, + { + "stat": "Happiness", + "value": -5 + } + ], + "duration": { + "Duration": 1 + }, + "application": "PermanentEffectToApply", + "effect_bounds": { + "min": 20, + "max": 90 + } + }, + { + "name": "city_tariff_levy", + "description": "The city council imposes a high tariff on imported goods to boost local industry, sparking backlash from merchants.", + "stats": [ + { + "stat": "Trade", + "value": -10 + }, + { + "stat": "Food", + "value": -4 + }, + { + "stat": "Industry", + "value": -6 + }, + { + "stat": "Science", + "value": -3 + }, + { + "stat": "Crime", + "value": 15 + } + ], + "duration": { + "Duration": 1 + }, + "application": "PermanentEffectToApply", + "effect_bounds": { + "min": 20, + "max": 90 + } + }, + { + "name": "market_hoarding", + "description": "A powerful merchant cartel hoards staple goods, manipulating prices to inflate profits at the cost of ordinary citizens.", + "stats": [ + { + "stat": "Food", + "value": -7 + }, + { + "stat": "Industry", + "value": -6 + }, + { + "stat": "Trade", + "value": -7 + }, + { + "stat": "Population", + "value": -3 + } + ], + "duration": { + "Duration": 7 + }, + "application": "WhenPresent", + "effect_bounds": { + "min": 20, + "max": 90 + } + }, + { + "name": "industrial_explosion", + "description": "A catastrophic blast at the main ironworks destroys equipment and halts production for months.", + "stats": [ + { + "stat": "Industry", + "value": -19 + }, + { + "stat": "Food", + "value": -3 + }, + { + "stat": "Trade", + "value": -7 + }, + { + "stat": "Population", + "value": -4 + } + ], + "duration": { + "Duration": 1 + }, + "application": "PermanentEffectToApply", + "effect_bounds": { + "min": 20, + "max": 90 + } + }, + { + "name": "foreign_investment_boom", + "description": "A foreign dynasty invests heavily in local mining, sparking a surge in jobs and wealth but also widening inequality.", + "stats": [ + { + "stat": "Industry", + "value": 12 + }, + { + "stat": "Science", + "value": 3 + }, + { + "stat": "Trade", + "value": 8 + }, + { + "stat": "Crime", + "value": 5 + } + ], + "duration": { + "Duration": 1 + }, + "application": "PermanentEffectToApply", + "effect_bounds": { + "min": 20, + "max": 90 + } + }, + { + "name": "tax_evasion_scheme", + "description": "A sophisticated tax evasion network siphons off a large portion of city revenue, forcing austerity measures.", + "stats": [ + { + "stat": "Food", + "value": -8 + }, + { + "stat": "Industry", + "value": -7 + }, + { + "stat": "Trade", + "value": -9 + }, + { + "stat": "Crime", + "value": 15 + }, + { + "stat": "Bureaucracy", + "value": -6 + }, + { + "stat": "Population", + "value": -2 + } + ], + "duration": { + "Duration": 6 + }, + "application": "WhenPresent", + "effect_bounds": { + "min": 25, + "max": 95 + } + }, + { + "name": "currency_devaluation", + "description": "The city's coinage is devalued by a sudden policy shift, causing imported goods to skyrocket in price.", + "stats": [ + { + "stat": "Food", + "value": -8 + }, + { + "stat": "Industry", + "value": -3 + }, + { + "stat": "Trade", + "value": -9 + }, + { + "stat": "Health", + "value": -4 + } + ], + "duration": { + "Duration": 1 + }, + "application": "PermanentEffectToApply", + "effect_bounds": { + "min": 23, + "max": 95 + } + }, + { + "name": "artisan_fair_success", + "description": "A grand artisan fair attracts wealthy patrons, boosting local crafts and increasing export revenues.", + "stats": [ + { + "stat": "Industry", + "value": 8 + }, + { + "stat": "Industry", + "value": 9 + }, + { + "stat": "Trade", + "value": 9 + }, + { + "stat": "Population", + "value": 2 + } + ], + "duration": { + "Duration": 1 + }, + "application": "PermanentEffectToApply", + "effect_bounds": { + "min": 23, + "max": 95 + } + }, + { + "name": "resource_piracy", + "description": "Sea‑borne raiders seize a shipment of precious stones destined for the city, flooding the market with counterfeit goods.", + "stats": [ + { + "stat": "Trade", + "value": -12 + }, + { + "stat": "Food", + "value": -7 + }, + { + "stat": "Industry", + "value": -6 + }, + { + "stat": "Threat", + "value": 3 + }, + { + "stat": "Crime", + "value": 14 + } + ], + "duration": { + "Duration": 4 + }, + "application": "WhenPresent", + "effect_bounds": { + "min": 25, + "max": 95 + } + }, + { + "name": "steel_furnace_overheat", + "description": "A critical failure in the city's primary steel furnace sparks an uncontrollable fire, destroying production lines.", + "stats": [ + { + "stat": "Industry", + "value": -17 + }, + { + "stat": "Trade", + "value": -9 + }, + { + "stat": "Happiness", + "value": -2 + }, + { + "stat": "Population", + "value": -3 + } + ], + "duration": { + "Duration": 1 + }, + "application": "PermanentEffectToApply", + "effect_bounds": { + "min": 24, + "max": 95 + } + }, + { + "name": "artisan_tech_innovation", + "description": "A guild of master craftsmen invents a new forging technique that doubles output and lowers raw material usage.", + "stats": [ + { + "stat": "Industry", + "value": 14 + }, + { + "stat": "Industry", + "value": 13 + }, + { + "stat": "Science", + "value": 15 + }, + { + "stat": "Trade", + "value": 9 + }, + { + "stat": "Crime", + "value": 3 + } + ], + "duration": { + "Duration": 1 + }, + "application": "PermanentEffectToApply", + "effect_bounds": { + "min": 26, + "max": 95 + } + }, + { + "name": "coal_mine_sabotage", + "description": "Covert saboteurs collapse a major coal shaft, halting fuel supply to all local factories for weeks.", + "stats": [ + { + "stat": "Industry", + "value": -15 + }, + { + "stat": "Crime", + "value": 6 + } + ], + "duration": { + "Duration": 1 + }, + "application": "PermanentEffectToApply", + "effect_bounds": { + "min": 23, + "max": 95 + } + }, + { + "name": "foreign_factory_purchase", + "description": "A foreign conglomerate purchases the city's largest textile mill, imposing new quotas that reduce local employment.", + "stats": [ + { + "stat": "Industry", + "value": -9 + }, + { + "stat": "Population", + "value": -4 + } + ], + "duration": { + "Duration": 1 + }, + "application": "PermanentEffectToApply", + "effect_bounds": { + "min": 22, + "max": 95 + } + }, + { + "name": "blacksmiths_rebel", + "description": "Skilled blacksmiths organize a strike demanding better wages, halting the production of critical weapons.", + "stats": [ + { + "stat": "Industry", + "value": -10 + }, + { + "stat": "Strength", + "value": -5 + }, + { + "stat": "Crime", + "value": 4 + } + ], + "duration": { + "Duration": 6 + }, + "application": "WhenPresent", + "effect_bounds": { + "min": 22, + "max": 95 + } + }, + { + "name": "machine_revolution", + "description": "The introduction of automated presses in the leather works cuts labor costs but renders many artisans obsolete.", + "stats": [ + { + "stat": "Industry", + "value": 11 + }, + { + "stat": "Population", + "value": -5 + }, + { + "stat": "Crime", + "value": 3 + } + ], + "duration": { + "Duration": 1 + }, + "application": "PermanentEffectToApply", + "effect_bounds": { + "min": 22, + "max": 95 + } + }, + { + "name": "bottleneck_transportation", + "description": "The city's main mean of transportation is seized by gangsters, disrupting the flow of raw materials to factories.", + "stats": [ + { + "stat": "Transportation", + "value": -8 + }, + { + "stat": "Industry", + "value": -6 + }, + { + "stat": "Crime", + "value": 7 + } + ], + "duration": { + "Duration": 3 + }, + "application": "WhenPresent", + "effect_bounds": { + "min": 23, + "max": 95 + } + }, + { + "name": "export_tariff_relief", + "description": "An unexpected removal of export tariffs on metal goods opens new markets, boosting production rates.", + "stats": [ + { + "stat": "Industry", + "value": 12 + }, + { + "stat": "Trade", + "value": 9 + } + ], + "duration": { + "Duration": 1 + }, + "application": "PermanentEffectToApply", + "effect_bounds": { + "min": 23, + "max": 95 + } + }, + { + "name": "smelter_piracy", + "description": "A band of raiders captures a shipment of precious ores destined for the city, flooding the market with cheap counterfeit.", + "stats": [ + { + "stat": "Industry", + "value": -11 + }, + { + "stat": "Trade", + "value": -7 + }, + { + "stat": "Crime", + "value": 10 + } + ], + "duration": { + "Duration": 4 + }, + "application": "WhenPresent", + "effect_bounds": { + "min": 23, + "max": 95 + } + }, + { + "name": "frontline_betrayal", + "description": "A key vanguard commander secretly defects, scattering a significant portion of the army and boosting enemy threat.", + "stats": [ + { + "stat": "Strength", + "value": -6 + }, + { + "stat": "Threat", + "value": 11 + } + ], + "duration": { + "Duration": 1 + }, + "application": "PermanentEffectToApply", + "effect_bounds": { + "min": 22, + "max": 95 + } + }, + { + "name": "naval_battle_victory", + "description": "The city's navy defeats a hostile threat, securing coastal trade routes and striking a blow to the enemy's threat level.", + "stats": [ + { + "stat": "Strength", + "value": 12 + }, + { + "stat": "Threat", + "value": -9 + } + ], + "duration": { + "Duration": 1 + }, + "application": "PermanentEffectToApply", + "effect_bounds": { + "min": 23, + "max": 95 + } + }, + { + "name": "disease_in_soldiers", + "description": "A virulent pestilence breaks out among the ranks, lowering army numbers and damaging overall health.", + "stats": [ + { + "stat": "Army", + "value": -14 + }, + { + "stat": "Health", + "value": -10 + }, + { + "stat": "Strength", + "value": -5 + } + ], + "duration": { + "Duration": 1 + }, + "application": "PermanentEffectToApply", + "effect_bounds": { + "min": 23, + "max": 95 + } + }, + { + "name": "recruitment_panic", + "description": "A surge of conscripts floods the army, but poor training causes a sharp drop in combat effectiveness.", + "stats": [ + { + "stat": "Army", + "value": 8 + }, + { + "stat": "Strength", + "value": -9 + }, + { + "stat": "Threat", + "value": 3 + } + ], + "duration": { + "Duration": 1 + }, + "application": "PermanentEffectToApply", + "effect_bounds": { + "min": 23, + "max": 95 + } + }, + { + "name": "training_expedition", + "description": "A focused military academy expedition hones the troops' skills, raising overall strength at the cost of a temporary manpower drain.", + "stats": [ + { + "stat": "Strength", + "value": 11 + }, + { + "stat": "Army", + "value": -6 + }, + { + "stat": "Threat", + "value": -5 + } + ], + "duration": { + "Duration": 1 + }, + "application": "PermanentEffectToApply", + "effect_bounds": { + "min": 23, + "max": 95 + } + }, + { + "name": "spy_operation_success", + "description": "A covert spy network uncovers threats around, reducing the threat level and providing a tactical advantage.", + "stats": [ + { + "stat": "Threat", + "value": -10 + }, + { + "stat": "Influence", + "value": 3 + }, + { + "stat": "Strength", + "value": 4 + } + ], + "duration": { + "Duration": 1 + }, + "application": "PermanentEffectToApply", + "effect_bounds": { + "min": 23, + "max": 95 + } + }, + { + "name": "war_taxes_harsh", + "description": "The council imposes severe war taxes to fund the army, inflating military budgets but cracking public happiness.", + "stats": [ + { + "stat": "Strength", + "value": 9 + }, + { + "stat": "Happiness", + "value": -8 + }, + { + "stat": "Food", + "value": -3 + }, + { + "stat": "Industry", + "value": -3 + }, + { + "stat": "Science", + "value": -3 + }, + { + "stat": "Trade", + "value": -3 + } + ], + "duration": { + "Duration": 1 + }, + "application": "PermanentEffectToApply", + "effect_bounds": { + "min": 23, + "max": 95 + } + }, + { + "name": "battlefield_innovation", + "description": "A revolutionary tactic is adopted on the front lines, dramatically boosting army strength and lowering enemy threat.", + "stats": [ + { + "stat": "Strength", + "value": 13 + }, + { + "stat": "Threat", + "value": -8 + } + ], + "duration": { + "Duration": 1 + }, + "application": "PermanentEffectToApply", + "effect_bounds": { + "min": 23, + "max": 95 + } + }, + { + "name": "trade_agreement", + "description": "The city brokered a favorable trade pact with a neighboring realm, opening new markets for local goods.", + "stats": [ + { + "stat": "Trade", + "value": 12 + }, + { + "stat": "Food", + "value": 3 + }, + { + "stat": "Industry", + "value": 3 + }, + { + "stat": "Science", + "value": 3 + }, + { + "stat": "Trade", + "value": 3 + }, + { + "stat": "Population", + "value": 3 + } + ], + "duration": { + "Duration": 1 + }, + "application": "PermanentEffectToApply", + "effect_bounds": { + "min": 23, + "max": 95 + } + }, + { + "name": "peace_council", + "description": "A diplomatic summit ends a long-standing border conflict, reducing threat levels and fostering cultural exchange.", + "stats": [ + { + "stat": "Trade", + "value": 10 + }, + { + "stat": "Culture", + "value": 7 + }, + { + "stat": "Happiness", + "value": 5 + } + ], + "duration": { + "Duration": 1 + }, + "application": "PermanentEffectToApply", + "effect_bounds": { + "min": 22, + "max": 95 + } + }, + { + "name": "bounty_hunt_success", + "description": "A coordinated hunt eliminates a notorious calamity, restoring safety to nearby villages.", + "stats": [ + { + "stat": "Crime", + "value": -12 + }, + { + "stat": "Threat", + "value": -8 + }, + { + "stat": "Happiness", + "value": 4 + } + ], + "duration": { + "Duration": 1 + }, + "application": "PermanentEffectToApply", + "effect_bounds": { + "min": 23, + "max": 95 + } + }, + { + "name": "technological_breakthrough", + "description": "Inventors in the city unveiled new technologies with huge applications in the industrial field.", + "stats": [ + { + "stat": "Science", + "value": 15 + }, + { + "stat": "Industry", + "value": 6 + }, + { + "stat": "Food", + "value": 3 + }, + { + "stat": "Trade", + "value": 3 + } + ], + "duration": { + "Duration": 1 + }, + "application": "PermanentEffectToApply", + "effect_bounds": { + "min": 21, + "max": 95 + } + }, + { + "name": "festival_of_luxury", + "description": "A grand festival draws wealthy merchants and foreign dignitaries, boosting tourism and local pride.", + "stats": [ + { + "stat": "Tourism", + "value": 13 + }, + { + "stat": "Science", + "value": 3 + }, + { + "stat": "Trade", + "value": 3 + }, + { + "stat": "Culture", + "value": 3 + }, + { + "stat": "Influence", + "value": 3 + }, + { + "stat": "Happiness", + "value": 6 + } + ], + "duration": { + "Duration": 1 + }, + "application": "PermanentEffectToApply", + "effect_bounds": { + "min": 22, + "max": 95 + } + }, + { + "name": "military_training_expedition", + "description": "An intensive training expedition sharpens the army's tactics, increasing overall strength without cost.", + "stats": [ + { + "stat": "Strength", + "value": 12 + }, + { + "stat": "Army", + "value": 3 + }, + { + "stat": "Threat", + "value": -5 + } + ], + "duration": { + "Duration": 1 + }, + "application": "PermanentEffectToApply", + "effect_bounds": { + "min": 21, + "max": 95 + } + }, + { + "name": "health_initiative", + "description": "A citywide vaccination campaign eradicates a deadly plague, dramatically improving public health.", + "stats": [ + { + "stat": "Health", + "value": 16 + }, + { + "stat": "Population", + "value": 4 + }, + { + "stat": "Happiness", + "value": 5 + } + ], + "duration": { + "Duration": 1 + }, + "application": "PermanentEffectToApply", + "effect_bounds": { + "min": 23, + "max": 95 + } + }, + { + "name": "artisan_summit", + "description": "A gathering of master artisans leads to the sharing of techniques that double production efficiency.", + "stats": [ + { + "stat": "Industry", + "value": 14 + }, + { + "stat": "Science", + "value": 8 + }, + { + "stat": "Trade", + "value": 3 + }, + { + "stat": "Population", + "value": 2 + } + ], + "duration": { + "Duration": 1 + }, + "application": "PermanentEffectToApply", + "effect_bounds": { + "min": 21, + "max": 95 + } + }, + { + "name": "infrastructure_repair", + "description": "A massive repair drive restores crumbling roads and bridges, slashing travel time and boosting trade.", + "stats": [ + { + "stat": "Sprawl", + "value": 10 + }, + { + "stat": "Transportation", + "value": 9 + }, + { + "stat": "Health", + "value": 7 + }, + { + "stat": "Industry", + "value": 7 + }, + { + "stat": "Trade", + "value": 7 + }, + { + "stat": "Food", + "value": 5 + }, + { + "stat": "Trade", + "value": 4 + } + ], + "duration": { + "Duration": 1 + }, + "application": "PermanentEffectToApply", + "effect_bounds": { + "min": 24, + "max": 95 + } + }, + { + "name": "cultural_exposition", + "description": "The city hosts an international exposition, showcasing its heritage and attracting scholars and tourists alike.", + "stats": [ + { + "stat": "Culture", + "value": 12 + }, + { + "stat": "Tourism", + "value": 10 + }, + { + "stat": "Happiness", + "value": 4 + }, + { + "stat": "Influence", + "value": 4 + } + ], + "duration": { + "Duration": 1 + }, + "application": "PermanentEffectToApply", + "effect_bounds": { + "min": 23, + "max": 95 + } + }, + { + "name": "great_earthquake", + "description": "A massive quake rips through the city, shattering buildings, collapsing bridges, and killing thousands.", + "stats": [ + { + "stat": "Health", + "value": -19 + }, + { + "stat": "Population", + "value": -18 + }, + { + "stat": "Happiness", + "value": -15 + } + ], + "duration": { + "Duration": 1 + }, + "application": "PermanentEffectToApply", + "effect_bounds": { + "min": 26, + "max": 95 + } + }, + { + "name": "plague_of_scorpion", + "description": "A deadly disease spreads through the populace, turning citizens into venom‑infused monsters.", + "stats": [ + { + "stat": "Health", + "value": -14 + }, + { + "stat": "Population", + "value": -10 + }, + { + "stat": "Crime", + "value": 8 + } + ], + "duration": { + "Duration": 14 + }, + "application": "WhenPresent", + "effect_bounds": { + "min": 23, + "max": 95 + } + }, + { + "name": "oil_fire_in_barnyard", + "description": "An oil storage depot explodes, sending a wave of fire over the city that reduces the army's morale and strength.", + "stats": [ + { + "stat": "Industry", + "value": -9 + }, + { + "stat": "Happiness", + "value": -4 + }, + { + "stat": "Threat", + "value": 10 + } + ], + "duration": { + "Duration": 1 + }, + "application": "PermanentEffectToApply", + "effect_bounds": { + "min": 22, + "max": 95 + } + }, + { + "name": "fire_of_sacred_temple", + "description": "The city's most revered temple is consumed by a supernatural inferno, spilling holy ash into the streets and igniting widespread panic.", + "stats": [ + { + "stat": "Culture", + "value": -15 + }, + { + "stat": "Threat", + "value": 12 + }, + { + "stat": "Happiness", + "value": -6 + } + ], + "duration": { + "Duration": 1 + }, + "application": "PermanentEffectToApply", + "effect_bounds": { + "min": 24, + "max": 95 + } + }, + { + "name": "cursed_great_flood", + "description": "An unseasonal deluge swallows the city, flooding every district, destroying crops, and causing widespread disease.", + "stats": [ + { + "stat": "Food", + "value": -13 + }, + { + "stat": "Industry", + "value": -6 + }, + { + "stat": "Trade", + "value": -8 + }, + { + "stat": "Threat", + "value": 13 + } + ], + "duration": { + "Duration": 1 + }, + "application": "PermanentEffectToApply", + "effect_bounds": { + "min": 25, + "max": 95 + } + }, + { + "name": "massive_barricade_breach", + "description": "A minor calamity overpowers the city's fortifications, unleashing a wave of slaughter and chaos.", + "stats": [ + { + "stat": "Fortification", + "value": -19 + }, + { + "stat": "Threat", + "value": 19 + }, + { + "stat": "Happiness", + "value": -12 + } + ], + "duration": { + "Duration": 1 + }, + "application": "PermanentEffectToApply", + "effect_bounds": { + "min": 24, + "max": 95 + } + }, + { + "name": "invasion_of_the_undead", + "description": "A horde of reanimated civilians under the influence of a calamity attack citizens and military alike.", + "stats": [ + { + "stat": "Threat", + "value": 14 + }, + { + "stat": "Crime", + "value": -10 + }, + { + "stat": "Population", + "value": -12 + } + ], + "duration": { + "Duration": 5 + }, + "application": "WhenPresent", + "effect_bounds": { + "min": 23, + "max": 95 + } + } + ] +} \ No newline at end of file