diff --git a/crates/ghostlight-dungeon/src/playtest_atlas.rs b/crates/ghostlight-dungeon/src/playtest_atlas.rs index 4b8f05a..c6032f6 100644 --- a/crates/ghostlight-dungeon/src/playtest_atlas.rs +++ b/crates/ghostlight-dungeon/src/playtest_atlas.rs @@ -329,6 +329,7 @@ struct World { commitments: Vec, regards: Vec, materials: Vec, + pressures: Vec, unread: Vec, } @@ -543,6 +544,7 @@ fn parse_world(view: &str) -> World { world.unread.push(format!("fact: {piece}")); } } + world.pressures = items(body("Pressures")); for piece in items(body("Commitments")) { match commitment_of(&piece) { Some(commitment) => world.commitments.push(commitment), @@ -600,6 +602,26 @@ impl World { keyed.insert(format!("office:{}:{}", subject.id, office.name), ("office", format!("{} of {}", office.name, subject.label))); } } + // What a sweep changes without adding a thing: a subject's holdings, + // dependencies, authority or offices, a regard, a persona's material, a + // pressure. Each new state is a key of its own, first seen when it appears. + for subject in &self.subjects { + let state = format!("holdings: {}; depends on: {}; authority: {}; offices held: {}; forums: {}", subject.holdings, subject.depends, subject.authority, subject.offices_held.len(), subject.forums); + keyed.insert(format!("state:{}:{state}", subject.id), ("state", format!("{} ({state})", subject.label))); + } + for regard in &self.regards { + keyed.insert( + format!("regard:{}:{}:{}", regard.holder_id, regard.toward, regard.total), + ("regard", format!("{} regards {}: {} ({})", regard.holder, regard.toward, regard.word, regard.total)), + ); + } + for material in &self.materials { + let name = self.subjects.iter().find(|subject| subject.id == material.id).map_or(material.id.as_str(), |subject| subject.label.as_str()); + keyed.insert(format!("material:{}:{}|{}|{}", material.id, material.voice, material.values, material.memories), ("persona", format!("{name}: voice {}; values {}", material.voice, material.values))); + } + for pressure in &self.pressures { + keyed.insert(format!("pressure:{pressure}"), ("pressure", pressure.clone())); + } for fact in &self.facts { keyed.insert(format!("fact:{}", fact.id), ("fact", fact.statement.clone())); } @@ -1055,7 +1077,7 @@ per-patch evidence references are not readable outside the kernel, so an entry n let sweeps: BTreeSet = seen.values().map(|entry| entry.sweep).collect(); for sweep in sweeps { let mut by_lens: BTreeMap>> = BTreeMap::new(); - for entry in seen.values().filter(|entry| entry.sweep == sweep) { + for entry in seen.values().filter(|entry| entry.sweep == sweep && !(sweep == 0 && entry.section == "state")) { by_lens.entry(if sweep == 0 { "Begin's seed".to_owned() } else { lens_names(&entry.lenses) }).or_default().entry(entry.section).or_default().push(&entry.label); } out.push_str(&format!("### Sweep {sweep}{}\n\n", if sweep == 0 { " (Begin's seed and run-ahead)" } else { "" }));