Tutorial: eating food

Also document the lua timers a bit more.
This commit is contained in:
Pasi Kallinen
2023-04-04 13:04:35 +03:00
parent 201ee8383e
commit 12dd5323c8
2 changed files with 39 additions and 7 deletions

View File

@@ -5,11 +5,11 @@ des.level_flags("mazelevel", "noflip",
des.map([[
---------------------------------------------------------------------------
|-.--|.......|......|..S....|.F.......|...................................|
|.-..........|......|--|....|.F.....|.|S-------...........................|
||.--|.......|..T......|....|.F.....|.|.......|...........................|
||.|.|.......|......|-.|....|.F.....|.|.......|...........................|
||.|.|.......|......||.|-.-----------.-.......|...........................|
|-.--|.......|......|..S....|.F.......|.............|.....................|
|.-..........|......|--|....|.F.....|.|S-------.....|.....................|
||.--|.......|..T......|....|.F.....|.|.......|.....|.....................|
||.|.|.......|......|-.|....|.F.....|.|.......|.....|.....................|
||.|.|.......|......||.|-.-----------.-.......|------.....................|
|-+-S---------..---.||........................|...........................|
|......| |.-------------------.......|...........................|
|......| ###### |.........| |..S.......|...........................|
@@ -203,6 +203,16 @@ des.trap({ type = "magic portal", coord = { 27,14 }, seen = true });
--
des.engraving({ coord = { 48,1 }, type = "burn", text = "Use '" .. nh.eckey("eat") .. "' to eat edible things", degrade = false });
des.object({ coord = { 50,3 }, id = "apple", buc = "not-cursed" });
des.object({ coord = { 50,3 }, id = "candy bar", buc = "not-cursed" });
local otmp = des.object({ coord = { 50,3 }, id = "corpse", montype = "newt", buc = "not-cursed" });
otmp:stop_timer("rot-corpse");
--
des.engraving({ coord = { 55,9 }, type = "burn", text = "UNDER CONSTRUCTION", degrade = false });