Remove _itInvColor

This commit is contained in:
2023-09-25 10:51:24 +01:00
parent 9ee925f13a
commit f9c6769262
10 changed files with 23 additions and 69 deletions
+3 -2
View File
@@ -9,6 +9,7 @@ import Dodge.Data.SelectionList
import Dodge.Data.World
import Dodge.Item.SlotsTaken
import Dodge.Item.Display
import Dodge.Item.InventoryColor
import LensHelp
import Picture.Base
@@ -26,7 +27,7 @@ invSelectionItem cr i it =
where
anyhotkey = maybe [] ((' ':) .hotkeyToString) (cr ^? crInvHotkeys . ix i)
anyequippos = maybe [] (rightPad 8 ' ' . (' ':) . eqPosText) (cr ^? crInvEquipped . ix i)
col = _itInvColor it
col = itemInvColor it
(yoff,pics) = case _itCurseStatus it of
UndroppableIdentified -> itemDisplayOffset cr it
_ -> itemDisplayOffset cr it
@@ -64,5 +65,5 @@ closeObjectToSelectionItem e =
--
closeObjectToTextPictures :: Either FloorItem Button -> ([String], Color)
closeObjectToTextPictures e = case e of
Left flit -> let it = _flIt flit in (basicItemDisplay it, _itInvColor it)
Left flit -> let it = _flIt flit in (basicItemDisplay it, itemInvColor it)
Right bt -> ([_btText bt], yellow)