Defence towers: arrow (piercing), cannon (splash + knockback), magic (mana, slow, chain); 3 levels, repair by imps, heroes attack towers; torture/temple room tools prepared

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Richard ZinkandClaude Opus 5.5 committed 2026-11-03 07:47:50 +01:00
1 parent a1fe02ffa6
commit 903d6fb0f4
10 files changed
+708 -19

No files matched your search

+4 -2
View File
@@ -48,10 +48,11 @@ pub enum Kind {
Gate,
Torture,
Tower, // floor tile occupied by a defence tower (not walkable)
Temple,
}
// order matters for the packed savegame codec: only append new kinds
const KINDS: [Kind; 14] = [
const KINDS: [Kind; 15] = [
Kind::Rock,
Kind::Earth,
Kind::Gold,
@@ -66,6 +67,7 @@ const KINDS: [Kind; 14] = [
Kind::Gate,
Kind::Torture,
Kind::Tower,
Kind::Temple,
];
#[derive(Clone, Copy, PartialEq, Eq, Debug, Serialize, Deserialize)]
@@ -115,7 +117,7 @@ impl Tile {
pub fn walkable(&self) -> bool {
matches!(
self.kind,
Kind::Floor | Kind::Treasury | Kind::Lair | Kind::Farm | Kind::Training | Kind::Library | Kind::Portal | Kind::Gate | Kind::Torture
Kind::Floor | Kind::Treasury | Kind::Lair | Kind::Farm | Kind::Training | Kind::Library | Kind::Portal | Kind::Gate | Kind::Torture | Kind::Temple
)
}
}