Improve placementspots
This commit is contained in:
+2
-1
@@ -128,7 +128,8 @@ doAfterPlacement pmntis gw = gRandify gw $ do
|
||||
return $ newgw & gRooms . ix i .~ rm
|
||||
|
||||
doInPlacements :: ( IM.IntMap [Placement],GenWorld) -> GenWorld
|
||||
doInPlacements (im,w) = let (gw,rms) = mapAccumR (doRoomInPlacements im) w (_gRooms w)
|
||||
doInPlacements (im,w) =
|
||||
let (gw,rms) = mapAccumR (doRoomInPlacements im) w (_gRooms w)
|
||||
in gw {_gRooms = rms}
|
||||
|
||||
doRoomInPlacements :: IM.IntMap [Placement] -> GenWorld -> Room -> (GenWorld, Room)
|
||||
|
||||
Reference in New Issue
Block a user