From b5dd0c18949cf6d512c5b5c4a83d0a114962ae57 Mon Sep 17 00:00:00 2001 From: Pasi Kallinen Date: Thu, 19 Feb 2015 20:47:08 +0200 Subject: [PATCH] Make sokoban prize not depend on the map layout --- dat/sokoban.des | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/dat/sokoban.des b/dat/sokoban.des index 6b2d2b862..c2394448f 100644 --- a/dat/sokoban.des +++ b/dat/sokoban.des @@ -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"