Tutorial: Firing missiles and quiver

This commit is contained in:
Pasi Kallinen
2023-03-18 11:42:48 +02:00
parent 3f3c275ed5
commit 20dbd989f1
2 changed files with 28 additions and 9 deletions

View File

@@ -192,6 +192,7 @@ local tutorial_whitelist_commands = {
["kick"] = true, ["kick"] = true,
["search"] = true, ["search"] = true,
["pickup"] = true, ["pickup"] = true,
["wait"] = true,
["wear"] = true, ["wear"] = true,
["wield"] = true, ["wield"] = true,
-- ["save"] = true, -- ["save"] = true,
@@ -258,6 +259,7 @@ local tutorial_events = {
func = function() func = function()
tutorial_whitelist_commands["throw"] = true; tutorial_whitelist_commands["throw"] = true;
tutorial_whitelist_commands["fire"] = true; tutorial_whitelist_commands["fire"] = true;
tutorial_whitelist_commands["quiver"] = true;
end, end,
}, },
}; };

View File

@@ -5,13 +5,13 @@ des.level_flags("mazelevel", "noflip",
des.map([[ des.map([[
--------------------------------------------------------------------------- ---------------------------------------------------------------------------
|-.--|.......|......|..S....|.............................................| |-.--|.......|......|..S....|.F.......|...................................|
|.-..........|......|--|....|.............................................| |.-..........|......|--|....|.F.....|.|...................................|
||.--|.......|..T......|....|.............................................| ||.--|.......|..T......|....|.F.....|.|...................................|
||.|.|.......|......|-.|....|.............................................| ||.|.|.......|......|-.|....|.F.....|.|...................................|
||.|.|.......|......||.|-.---.............................................| ||.|.|.......|......||.|-.-----------.-...................................|
|-+-S---------..---.||......+.............................................| |-+-S---------..---.||....................................................|
|......| |.---------.............................................| |......| |.-------------------...................................|
|......| ###### |.........|.............................................| |......| ###### |.........|.............................................|
|----.-| -+- # |.....---.|.............................................| |----.-| -+- # |.....---.|.............................................|
|----+----.----+---.|.--|.|.|.............................................| |----+----.----+---.|.--|.|.|.............................................|
@@ -165,8 +165,25 @@ des.engraving({ coord = { 25,5 }, type = "engrave", text = "Throw items with '"
-- --
des.door({ coord = { 28,6 }, state = "locked" }); des.monster({ id = "wolf", coord = { 29,2 }, peaceful = 0, waiting = true, countbirth = false });
des.engraving({ coord = { 29,6 }, type = "burn", text = "UNDER CONSTRUCTION", degrade = false });
des.engraving({ coord = { 37,4 }, type = "engrave", text = "Missiles, such as rocks, work better when fired from appropriate launcher", degrade = false });
des.object({ coord = { 37,3 }, id = "sling", buc = "not-cursed", spe = 9 });
des.engraving({ coord = { 37,3 }, type = "engrave", text = "Wield the sling", degrade = false });
des.engraving({ coord = { 36,1 }, type = "engrave", text = "Use '" .. nh.eckey("fire") .. "' to fire missiles with the wielded launcher", degrade = false });
des.engraving({ coord = { 35,4 }, type = "engrave", text = "Firing launches items from your quiver; Use '" .. nh.eckey("quiver") .. "' to put items in it", degrade = false });
des.engraving({ coord = { 33,4 }, type = "engrave", text = "You can wait a turn with '" .. nh.eckey("wait") .. "'", degrade = false });
--
des.door({ coord = { 38,6 }, state = "locked" });
des.engraving({ coord = { 39,6 }, type = "burn", text = "UNDER CONSTRUCTION", degrade = false });
des.trap({ type = "magic portal", coord = { 45,6 }, seen = true });
---------------- ----------------