Splash arrows in lava
This commit is contained in:
1 parent
3b710516d8
commit
ee88fc04a5
3 files changed
+116
-7
No files matched your search
+13
@@ -73,6 +73,19 @@ impl Game {
|
||||
g.map.t[idx(x, y)].owner = Owner::Player;
|
||||
}
|
||||
}
|
||||
// lava pools in front of the human arrow towers, with gaps so the path to the bridge stays open
|
||||
for (x0, y0, x1, y1) in [(RIVER_X + 5, BRIDGE_Y - 4, RIVER_X + 6, BRIDGE_Y - 3), (RIVER_X + 9, BRIDGE_Y - 1, RIVER_X + 10, BRIDGE_Y)] {
|
||||
for y in y0..=y1 {
|
||||
for x in x0..=x1 {
|
||||
let t = &mut g.map.t[idx(x, y)];
|
||||
if t.kind == Kind::Floor && t.owner == Owner::Hero {
|
||||
t.kind = Kind::Lava;
|
||||
t.owner = Owner::None;
|
||||
t.gold = 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
// a few rooms on the dungeon side for the look of it
|
||||
for (x0, y0, x1, y1, k) in [(8, 13, 13, 17, Kind::Lair), (8, 30, 13, 34, Kind::Training), (17, 12, 21, 15, Kind::Farm)] {
|
||||
for y in y0..=y1 {
|
||||
|
||||
Reference in new issue
Block a user