Cleanup
This commit is contained in:
@@ -4,7 +4,6 @@ module Dodge.Creature.Impulse.UseItem (
|
|||||||
useItem,
|
useItem,
|
||||||
) where
|
) where
|
||||||
|
|
||||||
import Dodge.ToggleExamine
|
|
||||||
import Control.Lens
|
import Control.Lens
|
||||||
import Data.Maybe
|
import Data.Maybe
|
||||||
import Dodge.Data.ComposedItem
|
import Dodge.Data.ComposedItem
|
||||||
@@ -124,3 +123,10 @@ toggleEquipmentAt invid cr w = case getEquipmentAllocation invid w of
|
|||||||
itm = itmat invid
|
itm = itmat invid
|
||||||
onequip itm' = doItmCrWdWd ((_eeOnEquip . _uequipEffect . _itUse) itm') itm'
|
onequip itm' = doItmCrWdWd ((_eeOnEquip . _uequipEffect . _itUse) itm') itm'
|
||||||
onremove itm' = doItmCrWdWd ((_eeOnRemove . _uequipEffect . _itUse) itm') itm'
|
onremove itm' = doItmCrWdWd ((_eeOnRemove . _uequipEffect . _itUse) itm') itm'
|
||||||
|
|
||||||
|
toggleExamineInv :: World -> World
|
||||||
|
toggleExamineInv w = case w ^? hud . hudElement . subInventory of
|
||||||
|
Just ExamineInventory{} -> w & thepointer .~ NoSubInventory
|
||||||
|
_ -> w & thepointer .~ ExamineInventory
|
||||||
|
where
|
||||||
|
thepointer = hud . hudElement . subInventory
|
||||||
|
|||||||
@@ -438,7 +438,6 @@ updateInitialPressInGame uv sc = case sc of
|
|||||||
ScancodeP -> pauseGame uv
|
ScancodeP -> pauseGame uv
|
||||||
ScancodeF -> over uvWorld youDropItem uv
|
ScancodeF -> over uvWorld youDropItem uv
|
||||||
ScancodeM -> toggleMap uv
|
ScancodeM -> toggleMap uv
|
||||||
-- ScancodeR -> over (uvWorld . cWorld . lWorld . creatures . ix 0) crReloadToggle uv
|
|
||||||
ScancodeT -> over uvWorld testEvent uv
|
ScancodeT -> over uvWorld testEvent uv
|
||||||
ScancodeC -> toggleCombineInv uv
|
ScancodeC -> toggleCombineInv uv
|
||||||
-- the following should be put in a more sensible place
|
-- the following should be put in a more sensible place
|
||||||
|
|||||||
Reference in New Issue
Block a user