Implement pulse rifle with explodable pulse balls
This commit is contained in:
@@ -25,7 +25,7 @@ destroyMcType mt mc = case mt of
|
||||
|
||||
mcKillTerm :: Machine -> World -> World
|
||||
mcKillTerm mc w = fromMaybe w $ do
|
||||
tmid <- mc ^? mcMounts . ix ObTerminal
|
||||
tmid <- mc ^? mcMounts . ix OTTerminal
|
||||
tm <- w ^? cWorld . lWorld . terminals . ix tmid
|
||||
return $
|
||||
w
|
||||
@@ -33,5 +33,5 @@ mcKillTerm mc w = fromMaybe w $ do
|
||||
|
||||
mcKillBut :: Machine -> World -> World
|
||||
mcKillBut mc w = fromMaybe w $ do
|
||||
btid <- mc ^? mcMounts . ix ObButton
|
||||
btid <- mc ^? mcMounts . ix OTButton
|
||||
return $ w & cWorld . lWorld . buttons . at btid .~ Nothing
|
||||
|
||||
Reference in New Issue
Block a user