New level compiler: des-file changes

This commit is contained in:
Pasi Kallinen
2015-02-18 21:46:42 +02:00
parent 47bb9abace
commit 79eb17a0a7
24 changed files with 4197 additions and 4009 deletions

View File

@@ -23,13 +23,13 @@ MAP
ENDMAP
LADDER:(11,05),down
# The lord and his court
MONSTER:'V',"Vlad the Impaler",(06,05)
MONSTER:'V',random,(03,09)
MONSTER:'V',random,(07,09)
MONSTER:'V',random,(11,09)
MONSTER:'V',random,(03,01)
MONSTER:'V',random,(07,01)
MONSTER:'V',random,(11,01)
MONSTER:('V',"Vlad the Impaler"),(06,05)
MONSTER:'V',(03,09)
MONSTER:'V',(07,09)
MONSTER:'V',(11,09)
MONSTER:'V',(03,01)
MONSTER:'V',(07,01)
MONSTER:'V',(11,01)
# The doors
DOOR:closed,(08,03)
DOOR:closed,(10,03)
@@ -39,13 +39,13 @@ DOOR:locked,(08,07)
DOOR:locked,(10,07)
DOOR:closed,(03,06)
# treasures
OBJECT:'(',"chest",(07,05)
OBJECT:'(',"chest",(03,09)
OBJECT:'(',"chest",(07,09)
OBJECT:'(',"chest",(11,09)
OBJECT:'(',"chest",(03,01)
OBJECT:'(',"chest",(07,01)
OBJECT:'(',"chest",(11,01)
OBJECT:('(',"chest"),(07,05)
OBJECT:('(',"chest"),(03,09)
OBJECT:('(',"chest"),(07,09)
OBJECT:('(',"chest"),(11,09)
OBJECT:('(',"chest"),(03,01)
OBJECT:('(',"chest"),(07,01)
OBJECT:('(',"chest"),(11,01)
# We have to protect the tower against outside attacks
NON_DIGGABLE:(00,00,14,10)
@@ -68,24 +68,27 @@ MAP
--- --- ---
ENDMAP
# Random places are the 10 niches
RANDOM_PLACES:(03,01),(07,01),(11,01),(01,03),(13,03),
(01,07),(13,07),(03,09),(07,09),(11,09)
$place = { (03,01),(07,01),(11,01),(01,03),(13,03),
(01,07),(13,07),(03,09),(07,09),(11,09) }
SHUFFLE: $place
LADDER:(11,05),up
LADDER:(03,07),down
DOOR:locked,(10,04)
DOOR:locked,(09,07)
MONSTER:'&',random,place[0]
MONSTER:'&',random,place[1]
MONSTER:'d',"hell hound pup",place[2]
MONSTER:'d',"hell hound pup",place[3]
MONSTER:'d',"winter wolf",place[4]
CONTAINER:'(',"chest",place[5]
OBJECT:'"',"amulet of life saving",contained
CONTAINER:'(',"chest",place[6]
OBJECT:'"',"amulet of strangulation",contained
OBJECT:'[',"water walking boots",place[7]
OBJECT:'[',"crystal plate mail",place[8]
OBJECT:'+',"invisibility",place[9]
MONSTER:'&',$place[0]
MONSTER:'&',$place[1]
MONSTER:('d',"hell hound pup"),$place[2]
MONSTER:('d',"hell hound pup"),$place[3]
MONSTER:('d',"winter wolf"),$place[4]
CONTAINER:('(',"chest"),$place[5] {
OBJECT:('"',"amulet of life saving")
}
CONTAINER:('(',"chest"),$place[6] {
OBJECT:('"',"amulet of strangulation")
}
OBJECT:('[',"water walking boots"),$place[7]
OBJECT:('[',"crystal plate mail"),$place[8]
OBJECT:('+',"invisibility"),$place[9]
# Walls in the tower are non diggable
NON_DIGGABLE:(00,00,14,10)
@@ -110,29 +113,30 @@ MAP
---------------
ENDMAP
# Random places are the 10 niches
RANDOM_PLACES:(05,01),(09,01),(13,01),(03,03),(15,03),
(03,07),(15,07),(05,09),(09,09),(13,09)
$place = { (05,01),(09,01),(13,01),(03,03),(15,03),
(03,07),(15,07),(05,09),(09,09),(13,09) }
SHUFFLE: $place
BRANCH:(02,05,02,05),(00,00,00,00)
LADDER:(05,07),up
# Entry door is, of course, locked
DOOR:locked,(14,05)
# Let's put a dragon behind the door, just for the fun...
MONSTER:'D',random,(13,05)
MONSTER:random,random,(12,04)
MONSTER:random,random,(12,06)
MONSTER:random,random,random
MONSTER:random,random,random
MONSTER:random,random,random
MONSTER:random,random,random
MONSTER:random,random,random
MONSTER:random,random,random
OBJECT:')',"long sword",place[0]
TRAP:random,place[0]
OBJECT:'(',"lock pick",place[1]
TRAP:random,place[1]
OBJECT:'[',"elven cloak",place[2]
TRAP:random,place[2]
OBJECT:'(',"blindfold",place[3]
TRAP:random,place[3]
MONSTER:'D',(13,05)
MONSTER:random,(12,04)
MONSTER:random,(12,06)
MONSTER:random,random
MONSTER:random,random
MONSTER:random,random
MONSTER:random,random
MONSTER:random,random
MONSTER:random,random
OBJECT:(')',"long sword"),$place[0]
TRAP:random,$place[0]
OBJECT:('(',"lock pick"),$place[1]
TRAP:random,$place[1]
OBJECT:('[',"elven cloak"),$place[2]
TRAP:random,$place[2]
OBJECT:('(',"blindfold"),$place[3]
TRAP:random,$place[3]
# Walls in the tower are non diggable
NON_DIGGABLE:(00,00,18,12)