Tutorial: looting containers, zapping wands

This commit is contained in:
Pasi Kallinen
2023-03-18 12:07:46 +02:00
parent 20dbd989f1
commit 633487849b
2 changed files with 32 additions and 12 deletions

View File

@@ -262,6 +262,14 @@ local tutorial_events = {
tutorial_whitelist_commands["quiver"] = true;
end,
},
{
ucoord = { 38, 6 },
remove = true,
func = function()
tutorial_whitelist_commands["loot"] = true;
tutorial_whitelist_commands["zap"] = true;
end,
},
};
function tutorial_turn()

View File

@@ -6,15 +6,15 @@ des.level_flags("mazelevel", "noflip",
des.map([[
---------------------------------------------------------------------------
|-.--|.......|......|..S....|.F.......|...................................|
|.-..........|......|--|....|.F.....|.|...................................|
||.--|.......|..T......|....|.F.....|.|...................................|
||.|.|.......|......|-.|....|.F.....|.|...................................|
||.|.|.......|......||.|-.-----------.-...................................|
|-+-S---------..---.||....................................................|
|......| |.-------------------...................................|
|......| ###### |.........|.............................................|
|----.-| -+- # |.....---.|.............................................|
|----+----.----+---.|.--|.|.|.............................................|
|.-..........|......|--|....|.F.....|.|S-------...........................|
||.--|.......|..T......|....|.F.....|.|.......|...........................|
||.|.|.......|......|-.|....|.F.....|.|.......|...........................|
||.|.|.......|......||.|-.-----------.-.......|...........................|
|-+-S---------..---.||........................|...........................|
|......| |.-------------------.......|...........................|
|......| ###### |.........|.........S.......|...........................|
|----.-| -+- # |.....---.|.........|.......S...........................|
|----+----.----+---.|.--|.|.|.........---------...........................|
|........|.|......|.|...F...|.............................................|
|.P......-S|......|------.---.............................................|
|..........|......+.|...|.|...............................................|
@@ -180,10 +180,22 @@ des.engraving({ coord = { 33,4 }, type = "engrave", text = "You can wait a turn
--
des.door({ coord = { 38,6 }, state = "locked" });
des.engraving({ coord = { 39,6 }, type = "burn", text = "UNDER CONSTRUCTION", degrade = false });
des.door({ coord = { 38,6 }, state = "closed" });
des.trap({ type = "magic portal", coord = { 45,6 }, seen = true });
des.engraving({ coord = { 39,6 }, type = "engrave", text = "You loot containers with '" .. nh.eckey("loot") .. "'", degrade = false });
des.object({ coord = { 42,6 }, id = "large box", broken = true,
contents = function(obj)
des.object({ id = "secret door detection", class = "/", spe = 30 }); end
});
des.engraving({ coord = { 45,6 }, type = "engrave", text = "Magic wands are used with '" .. nh.eckey("zap") .. "'", degrade = false });
--
des.engraving({ coord = { 55,9 }, type = "burn", text = "UNDER CONSTRUCTION", degrade = false });
des.trap({ type = "magic portal", coord = { 60,9 }, seen = true });
----------------