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
+58
-2
@@ -1455,6 +1455,58 @@ fn sprite_rows(k: EK) -> [&'static str; 10] {
|
||||
"..kBkkBk..",
|
||||
"..kk..kk..",
|
||||
],
|
||||
// thief: a dark hood and mask, a dagger, a sack of gold on the back
|
||||
EK::Thief => [
|
||||
"...kkkk...",
|
||||
"..kddddk..",
|
||||
"..kdfkfk.Y",
|
||||
"..kddddkYy",
|
||||
".kdddddkYy",
|
||||
"skdddddk..",
|
||||
".kdkdddk..",
|
||||
"..kddddk..",
|
||||
"..kdkkdk..",
|
||||
"..kk..kk..",
|
||||
],
|
||||
// monk: shaven head, an orange robe tied with a rope, bare fists
|
||||
EK::Monk => [
|
||||
"...kkkk...",
|
||||
"..kffffk..",
|
||||
"..kfkfkk..",
|
||||
"..kffffk..",
|
||||
".kooooook.",
|
||||
"kfoooooofk",
|
||||
".kooyyook.",
|
||||
".kOooooOk.",
|
||||
".kOooooOk.",
|
||||
"..kkkkkk..",
|
||||
],
|
||||
// ranger: a green hood and cloak, a long bow, leather boots
|
||||
EK::Ranger => [
|
||||
"...kkkk.b.",
|
||||
"..kgGGgkkb",
|
||||
"..kGfkfk.b",
|
||||
"..kGfffk.b",
|
||||
".kGgggggkb",
|
||||
".kGgbbggkb",
|
||||
".kGggggk.b",
|
||||
"..kBBBBk.b",
|
||||
"..kBkkBkb.",
|
||||
"..kk..kk..",
|
||||
],
|
||||
// inquisitor: a tall red hat, white and red robes, a glowing holy book
|
||||
EK::Inquisitor => [
|
||||
"...kRRk...",
|
||||
"..kRrrRk..",
|
||||
"..kRrrRk..",
|
||||
"..kffffk..",
|
||||
"..kfkfkk..",
|
||||
".kwwrrwwk.",
|
||||
"kwkwrrwkek",
|
||||
".kwwrrwwkk",
|
||||
".kRwwwwRk.",
|
||||
"..kkkkkk..",
|
||||
],
|
||||
EK::Priest => [
|
||||
"....yy....",
|
||||
"...kkkk...",
|
||||
@@ -1739,7 +1791,7 @@ fn pal(ch: char) -> Option<Color> {
|
||||
})
|
||||
}
|
||||
|
||||
pub const SPRITE_KINDS: [EK; 27] = [
|
||||
pub const SPRITE_KINDS: [EK; 31] = [
|
||||
EK::Worker,
|
||||
EK::Kobold,
|
||||
EK::Spider,
|
||||
@@ -1767,6 +1819,10 @@ pub const SPRITE_KINDS: [EK; 27] = [
|
||||
EK::CaveBear,
|
||||
EK::Beetle,
|
||||
EK::Trader,
|
||||
EK::Thief,
|
||||
EK::Monk,
|
||||
EK::Ranger,
|
||||
EK::Inquisitor,
|
||||
];
|
||||
// width of the sprite texture in pixels
|
||||
pub const SPRITE_TEX_W: f32 = (SPRITE_KINDS.len() * 12) as f32;
|
||||
@@ -1784,7 +1840,7 @@ pub fn gear_tier(level: u32) -> u32 {
|
||||
}
|
||||
|
||||
fn is_hero_kind(k: EK) -> bool {
|
||||
matches!(k, EK::Knight | EK::Archer | EK::Priest | EK::Dwarf | EK::Paladin | EK::Giant | EK::Fairy | EK::BattleMage)
|
||||
matches!(k, EK::Knight | EK::Archer | EK::Priest | EK::Dwarf | EK::Paladin | EK::Giant | EK::Fairy | EK::BattleMage | EK::Thief | EK::Monk | EK::Ranger | EK::Inquisitor)
|
||||
}
|
||||
|
||||
// Views of a sprite for eight directions (the others are mirrored): 0 front, 1 front
|
||||
|
||||
Reference in new issue
Block a user