Tweaks to make playable
This commit is contained in:
@@ -254,7 +254,7 @@ startCr = defaultCreature
|
|||||||
, _crUpdate = stateUpdate yourControl
|
, _crUpdate = stateUpdate yourControl
|
||||||
, _crRad = 10
|
, _crRad = 10
|
||||||
, _crMass = 10
|
, _crMass = 10
|
||||||
, _crHP = 10000
|
, _crHP = 1000
|
||||||
, _crMaxHP = 1500
|
, _crMaxHP = 1500
|
||||||
, _crInv = startInventory
|
, _crInv = startInventory
|
||||||
, _crCorpse = onLayer CorpseLayer $ color (greyN 0.5) $ pictures [color (greyN 0.8) $ circleSolid 10, circLine 10]
|
, _crCorpse = onLayer CorpseLayer $ color (greyN 0.5) $ pictures [color (greyN 0.8) $ circleSolid 10, circLine 10]
|
||||||
@@ -264,7 +264,7 @@ Items you start with.
|
|||||||
-}
|
-}
|
||||||
startInventory = IM.fromList (zip [0..20]
|
startInventory = IM.fromList (zip [0..20]
|
||||||
(
|
(
|
||||||
[pistol
|
[--pistol
|
||||||
--,blinkGun
|
--,blinkGun
|
||||||
--,spawnGun lamp
|
--,spawnGun lamp
|
||||||
--,poisonSprayer
|
--,poisonSprayer
|
||||||
|
|||||||
+11
-8
@@ -41,13 +41,6 @@ roomTreex = do
|
|||||||
let t' = padCorridors struct
|
let t' = padCorridors struct
|
||||||
t = treeFromTrunk
|
t = treeFromTrunk
|
||||||
[[StartRoom]
|
[[StartRoom]
|
||||||
,[Corridor]
|
|
||||||
,[SpecificRoom $ fmap (pure . Right) armouredCorridor]
|
|
||||||
,[Corridor]
|
|
||||||
,[TreasureAno [addArmour autoCrit,addArmour autoCrit] [launcher]]
|
|
||||||
-- ,[BossAno $ addArmour launcherCrit & crHP +~ 800
|
|
||||||
-- & crState . crDropsOnDeath .~ DropSpecific [0]
|
|
||||||
-- ]
|
|
||||||
,[Corridor]
|
,[Corridor]
|
||||||
,[OrAno [[DoorAno]
|
,[OrAno [[DoorAno]
|
||||||
,[Corridor]
|
,[Corridor]
|
||||||
@@ -55,7 +48,17 @@ roomTreex = do
|
|||||||
]
|
]
|
||||||
,[FirstWeapon]
|
,[FirstWeapon]
|
||||||
,[Corridor]
|
,[Corridor]
|
||||||
,[SpecificRoom $ branchRectWith $ fmap (pure . Left) armouredChasers]
|
,[SpecificRoom $ fmap (pure . Right) testRoom]
|
||||||
|
,[Corridor]
|
||||||
|
,[OrAno [[SpecificRoom $ branchRectWith $ fmap (pure . Left) armouredChasers]
|
||||||
|
,[BossAno $ addArmour launcherCrit & crHP +~ 800
|
||||||
|
& crState . crDropsOnDeath .~ DropSpecific [0] ]
|
||||||
|
]
|
||||||
|
]
|
||||||
|
,[Corridor]
|
||||||
|
,[SpecificRoom $ fmap (pure . Right) armouredCorridor]
|
||||||
|
,[Corridor]
|
||||||
|
,[TreasureAno [addArmour autoCrit,addArmour autoCrit] [launcher]]
|
||||||
]
|
]
|
||||||
t'
|
t'
|
||||||
fmap (shiftExpandTree . expandTreeBy id) $ mapM annoToRoomTree t
|
fmap (shiftExpandTree . expandTreeBy id) $ mapM annoToRoomTree t
|
||||||
|
|||||||
@@ -1104,7 +1104,7 @@ moveLaser phaseV pos dir mcid w pt
|
|||||||
hitEffect
|
hitEffect
|
||||||
= case thHit of
|
= case thHit of
|
||||||
Just (p,E3x1 cr)
|
Just (p,E3x1 cr)
|
||||||
-> over (creatures . ix (_crID cr) . crState . crDamage) ((:) $ Lasering 3 pos p xp)
|
-> over (creatures . ix (_crID cr) . crState . crDamage) ((:) $ Lasering 19 pos p xp)
|
||||||
-- . over worldEvents ((.) $ flareAt yellow (flarePos p))
|
-- . over worldEvents ((.) $ flareAt yellow (flarePos p))
|
||||||
Just (p,E3x2 wl) -> createSpark 8 colID (p +.+ safeNormalizeV (pos -.- p))
|
Just (p,E3x2 wl) -> createSpark 8 colID (p +.+ safeNormalizeV (pos -.- p))
|
||||||
(reflectDir wl) Nothing
|
(reflectDir wl) Nothing
|
||||||
|
|||||||
@@ -47,8 +47,8 @@ armouredChasers :: RandomGen g => State g Room
|
|||||||
armouredChasers = do
|
armouredChasers = do
|
||||||
ps <- takeN 5 [(x,y) | x <- [-200,-120 .. 200] ,y <- [-200,-120 .. 200] ]
|
ps <- takeN 5 [(x,y) | x <- [-200,-120 .. 200] ,y <- [-200,-120 .. 200] ]
|
||||||
as <- replicateM 5 . state $ randomR (0,2*pi)
|
as <- replicateM 5 . state $ randomR (0,2*pi)
|
||||||
let theCrits = zipWith3 (\p a c -> PS p a (PutCrit armourChaseCrit)) ps as cs
|
let theCrits = zipWith3 (\p a c -> PS p a (PutCrit c)) ps as cs
|
||||||
pure $ roomOctogon 300 & rmPS %~ (++ theCrits)
|
pure $ roomOctogon 300 & rmPS %~ (++ theCrits)
|
||||||
where
|
where
|
||||||
cs = (armourChaseCrit & crState . crDropsOnDeath .~ DropSpecific [0])
|
cs = (armourChaseCrit & crState . crDropsOnDeath .~ DropSpecific [0])
|
||||||
: replicate 4 (armourChaseCrit & crState . crDropsOnDeath .~ DropSpecific [1])
|
: replicate 4 chaseCrit
|
||||||
|
|||||||
Reference in New Issue
Block a user