]> granicus.if.org Git - nethack/commitdiff
Make sokoban prize not depend on the map layout
authorPasi Kallinen <paxed@alt.org>
Thu, 19 Feb 2015 18:47:08 +0000 (20:47 +0200)
committerPasi Kallinen <paxed@alt.org>
Tue, 17 Mar 2015 16:52:53 +0000 (18:52 +0200)
dat/sokoban.des

index 6b2d2b862773e0e6fd51eeefd1ee87eeb65a2cfa..c2394448f41219e035f70107980a2d2d517ab2d1 100644 (file)
@@ -529,7 +529,11 @@ DOOR:closed,(17,11)
 DOOR:closed,(17,13)
 DOOR:closed,(17,15)
 REGION:(18,10,22,16),lit,"zoo",filled,irregular
-OBJECT:('(',"bag of holding"),$place[0]
+IF [50%] {
+  OBJECT:('(',"bag of holding"),$place[0]
+} ELSE {
+  OBJECT:('"',"amulet of reflection"),$place[0]
+}
 ENGRAVING:$place[0],burn,"Elbereth"
 
 
@@ -625,5 +629,9 @@ DOOR:closed,(17,10)
 DOOR:closed,(17,12)
 DOOR:closed,(17,14)
 REGION:(18,09,22,15),lit,"zoo",filled,irregular
-OBJECT:('"',"amulet of reflection"),$place[0]
+IF [50%] {
+  OBJECT:('(',"bag of holding"),$place[0]
+} ELSE {
+  OBJECT:('"',"amulet of reflection"),$place[0]
+}
 ENGRAVING:$place[0],burn,"Elbereth"