New heroes: thief steals gold, monk ignores spells, ranger lays snares, inquisitor turns weak creatures
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
a1a8f9d71d
commit
ff48a69571
29 files changed
+724
-12
No files matched your search
@@ -243,3 +243,24 @@ fn export_grove_scene() {
|
||||
run(&mut g, 1.0);
|
||||
save("mushroom-grove", &mut g, x as f32 + 0.5, y as f32 + 0.5, 12.0, 0.0, false);
|
||||
}
|
||||
|
||||
// the rogues of the later waves in a dungeon: thief, monk, ranger, inquisitor and a snare
|
||||
#[test]
|
||||
#[ignore]
|
||||
fn export_rogues_scene() {
|
||||
std::fs::create_dir_all("/tmp/scenes").unwrap();
|
||||
let mut g = Game::new(11, 80, 64);
|
||||
let (cx, cy) = g.map.core;
|
||||
open(&mut g, cx - 9, cy - 8, cx + 11, cy + 9);
|
||||
g.place_all_torches();
|
||||
for (k, kind) in [EK::Thief, EK::Monk, EK::Ranger, EK::Inquisitor].into_iter().enumerate() {
|
||||
let id = g.spawn(kind, true, cx as f32 + 4.5 + k as f32 * 1.2, cy as f32 + 5.5, 3);
|
||||
if let Some(e) = g.ents.iter_mut().find(|e| e.id == id) {
|
||||
e.guard = true;
|
||||
e.home = Some((e.x, e.y));
|
||||
}
|
||||
}
|
||||
g.snares.push(idx(cx + 5, cy + 3));
|
||||
g.snares.push(idx(cx + 7, cy + 3));
|
||||
save("rogues", &mut g, cx as f32 + 6.5, cy as f32 + 4.5, 8.0, 0.0, false);
|
||||
}
|
||||
Reference in new issue
Block a user