Rename ItemAttachments
This commit is contained in:
@@ -39,7 +39,7 @@ magShield :: Item
|
||||
magShield = defaultEquipment
|
||||
{ _itEquipPict = \_ _ -> (,) emptySH blank
|
||||
, _itID = Nothing
|
||||
, _itAttachment = ItMInt Nothing
|
||||
, _itAttachment = AttachMInt Nothing
|
||||
}
|
||||
& itUse . eqEq . eqUse .~ useMagShield
|
||||
& itUse . eqEq . eqSite .~ GoesOnWrist
|
||||
@@ -53,7 +53,7 @@ useMagShield it cr w = w & magnets . at mgid ?~ themagnet
|
||||
,_mgPos = _crPos cr
|
||||
,_mgField = curveAroundField 50 200
|
||||
}
|
||||
mgid = case it ^? itAttachment . itMInt . _Just of
|
||||
mgid = case it ^? itAttachment . atMInt . _Just of
|
||||
Just mgid' -> mgid'
|
||||
Nothing -> IM.newKey $ _magnets w
|
||||
-- it = _crInv cr IM.! invid
|
||||
|
||||
Reference in New Issue
Block a user