Source:NetHack 5.0.0/dat/soko4-2.lua
Jump to navigation
Jump to search
Below is the full text to soko4-2.lua from the source code of NetHack 5.0.0. To link to a particular line, write [[Source:NetHack 5.0.0/dat/soko4-2.lua#line12]], for example.
The NetHack General Public License applies to screenshots, source code and other content from NetHack.
This content was modified from the original NetHack source code distribution (by splitting up NetHack content between wiki pages, and possibly further editing). See the page history for a list of who changed it, and on what dates.
1. -- NetHack sokoban soko4-2.lua $NHDT-Date: 1652196036 2022/05/10 15:20:36 $ $NHDT-Branch: NetHack-3.7 $:$NHDT-Revision: 1.2 $ 2. -- Copyright (c) 1998-1999 by Kevin Hugo 3. -- NetHack may be freely redistributed. See license for details. 4. -- 5. des.level_init({ style = "solidfill", fg = " " }); 6. 7. des.level_flags("mazelevel", "noteleport", "hardfloor", "premapped", "sokoban", "solidify"); 8. 9. des.map([[ 10. -------- ------ 11. |.|....|-|....| 12. |.|-..........| 13. |.||....|.....| 14. |.||....|.....| 15. |.|-----|.----- 16. |.| |......| 17. |.-----|......| 18. |.............| 19. |..|---|......| 20. ---- -------- 21. ]]); 22. des.levregion({ region = {03,01,03,01}, type = "branch" }) 23. des.stair("up", 01,01) 24. des.region(selection.area(00,00,14,10),"lit") 25. des.non_diggable(selection.area(00,00,14,10)) 26. des.non_passwall(selection.area(00,00,14,10)) 27. 28. -- Boulders 29. des.object("boulder",05,02) 30. des.object("boulder",06,02) 31. des.object("boulder",06,03) 32. des.object("boulder",07,03) 33. -- 34. des.object("boulder",09,05) 35. des.object("boulder",10,03) 36. des.object("boulder",11,02) 37. des.object("boulder",12,03) 38. -- 39. des.object("boulder",07,08) 40. des.object("boulder",08,08) 41. des.object("boulder",09,08) 42. des.object("boulder",10,08) 43. 44. -- prevent monster generation over the (filled) pits 45. des.exclusion({ type = "monster-generation", region = { 01,01, 01,09 } }); 46. des.exclusion({ type = "monster-generation", region = { 01,08, 07,09 } }); 47. -- Traps 48. des.trap("pit",01,02) 49. des.trap("pit",01,03) 50. des.trap("pit",01,04) 51. des.trap("pit",01,05) 52. des.trap("pit",01,06) 53. des.trap("rolling boulder",01,07) 54. 55. des.trap("pit",01,08) 56. des.trap("pit",02,08) 57. des.trap("pit",03,08) 58. des.trap("pit",04,08) 59. des.trap("pit",05,08) 60. des.trap("rolling boulder",06,08) 61. 62. -- A little help 63. des.object("scroll of earth",01,09) 64. des.object("scroll of earth",02,09) 65. 66. -- Random objects 67. des.object({ class = "%" }); 68. des.object({ class = "%" }); 69. des.object({ class = "%" }); 70. des.object({ class = "%" }); 71. des.object({ class = "=" }); 72. des.object({ class = "/" }); 73. 74.