Tweak rewind gun
This commit is contained in:
@@ -58,7 +58,7 @@ rmInvItem cid invid w = case w ^? getcid . crInv . ix invid . itUse . useAmount
|
||||
& pointcid . crInv %~ f
|
||||
& pointcid . crInvSel %~ stopCrInvSelAction
|
||||
& pointcid . crInvSel . iselPos %~ g
|
||||
& pointcid . crLeftInvSel %~ g'
|
||||
& pointcid . crLeftInvSel . lisMPos %~ g'
|
||||
& removeAnySlotEquipment
|
||||
& dounequipfunction
|
||||
& doanyitemeffect
|
||||
@@ -260,7 +260,7 @@ setEquipActivation :: World -> World
|
||||
setEquipActivation w = case w ^? rbOptions . opAllocateEquipment of
|
||||
Just DoNotMoveEquipment -> w
|
||||
Just RemoveEquipment{} ->
|
||||
case _crLeftInvSel (you w) of
|
||||
case you w ^. crLeftInvSel . lisMPos of
|
||||
Just i
|
||||
| i == invsel ->
|
||||
w & rbOptions . opActivateEquipment
|
||||
@@ -269,7 +269,7 @@ setEquipActivation w = case w ^? rbOptions . opAllocateEquipment of
|
||||
}
|
||||
_ -> w & rbOptions . opActivateEquipment .~ NoChangeActivateEquipment
|
||||
Just rbos ->
|
||||
case _crLeftInvSel (you w) of
|
||||
case you w ^. crLeftInvSel . lisMPos of
|
||||
Just i | i == invsel -> w & rbOptions . opActivateEquipment .~ NoChangeActivateEquipment
|
||||
Just i
|
||||
| invselcanactivate ->
|
||||
@@ -339,7 +339,7 @@ changeSwapInvSel k w
|
||||
where
|
||||
updatecreature =
|
||||
(crInv %~ IM.safeSwapKeys (i `mod` n) swapi)
|
||||
. (crLeftInvSel . _Just %~ updateLeftInvSel)
|
||||
. (crLeftInvSel . lisMPos . _Just %~ updateLeftInvSel)
|
||||
. (crInvSel . iselPos %~ (`mod` n) . subtract k)
|
||||
. (crInvEquipped %~ IM.safeSwapKeys i swapi)
|
||||
. swapSite i swapi
|
||||
|
||||
Reference in New Issue
Block a user