Refactor, try to limit dependencies
This commit is contained in:
@@ -1,13 +1,15 @@
|
||||
module Dodge.Placement.Random where
|
||||
import Dodge.Data
|
||||
|
||||
import Dodge.Data.Item
|
||||
import Dodge.Item
|
||||
import RandomHelp
|
||||
|
||||
{- Probabilites of the type of the first floor weapon. -}
|
||||
randFirstWeapon :: State StdGen Item
|
||||
randFirstWeapon = takeOne $
|
||||
replicate 10 pistol
|
||||
++ replicate 5 (bangStick 4)
|
||||
++ replicate 5 (volleyGun 3)
|
||||
++ replicate 5 bangCone
|
||||
++ [lasGun]
|
||||
randFirstWeapon =
|
||||
takeOne $
|
||||
replicate 10 pistol
|
||||
++ replicate 5 (bangStick 4)
|
||||
++ replicate 5 (volleyGun 3)
|
||||
++ replicate 5 bangCone
|
||||
++ [lasGun]
|
||||
|
||||
Reference in New Issue
Block a user