des.replace_terrain({ region={01,01, 74,18}, fromterrain="C", toterrain=param, chance=100 });
end
+function setup4(param)
+ local mapstr = [[
+------------
+|CCCC|CCC| |
+|---C|C|C|--
+| |CCC|CCC|
+------------
+]];
+ des.map({ x = POS.x - 1, y = POS.y - 1, map = mapstr });
+ des.replace_terrain({ region={01,01, 74,18}, fromterrain="C", toterrain=param, chance=100 });
+end
+
local basicmoves = {
-- move
h = { dx = -1, dy = 0, number_pad = 0 },
{ key = ctrl("k"), x = POS.x, y = POS.y - 3, number_pad = 0, setup = setup3, param = "." },
{ key = ctrl("k"), x = POS.x + 4, y = POS.y - 3, number_pad = 0, setup = setup3, param = "#" },
+ { key = ctrl("l"), x = POS.x + 3, y = POS.y, number_pad = 0, setup = setup4, param = "." },
+ { key = ctrl("l"), x = POS.x + 9, y = POS.y + 2, number_pad = 0, setup = setup4, param = "#" },
+
};