Distinguish between selected item and root-selected item
This commit is contained in:
@@ -23,7 +23,7 @@ doFloorEffect NoFloorEffect = const id
|
||||
|
||||
onOffEff :: ItInvEffect -> ItInvEffect -> Item -> Creature -> World -> World
|
||||
onOffEff f g it
|
||||
| _itIsHeld it = doInvEffect f it
|
||||
| _itIsRoot it = doInvEffect f it
|
||||
| otherwise = doInvEffect g it
|
||||
|
||||
--timeScrollEffect :: Item -> Creature -> World -> World
|
||||
|
||||
Reference in New Issue
Block a user