Allow for random choice between placements in different rooms
This commit is contained in:
@@ -12,7 +12,13 @@ import Control.Lens
|
||||
|
||||
data GenWorld = GenWorld
|
||||
{ _gWorld :: World
|
||||
, _gPlacements :: IM.IntMap [Placement]
|
||||
, _gPlacements :: IM.IntMap [(Placement,Int)]
|
||||
, _gRooms :: IM.IntMap Room
|
||||
}
|
||||
worldToGenWorld :: IM.IntMap Room -> World -> GenWorld
|
||||
worldToGenWorld rms w = GenWorld
|
||||
{ _gWorld = w
|
||||
, _gPlacements = IM.empty
|
||||
, _gRooms = rms
|
||||
}
|
||||
worldToGenWorld w = GenWorld w IM.empty
|
||||
makeLenses ''GenWorld
|
||||
|
||||
Reference in New Issue
Block a user