Tutorial: eating food
Also document the lua timers a bit more.
This commit is contained in:
@@ -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 });
|
||||
|
||||
|
||||
Reference in New Issue
Block a user