Implement copier, an item that copies the value displayed by other items
This commit is contained in:
@@ -4,6 +4,7 @@ module Dodge.Item.Display (
|
||||
itemBaseName,
|
||||
itemString,
|
||||
basicItemDisplay,
|
||||
itemInternalValue,
|
||||
) where
|
||||
|
||||
import ShortShow
|
||||
@@ -36,7 +37,7 @@ itemInternalValue itm
|
||||
| Just x <- itm ^? itConsumables . magLoadStatus . iaLoaded = Just $ Left x
|
||||
| UseAttach (APInt i) <- itm ^. itUse = Just $ Left i
|
||||
| UseAttach (APProjectiles x) <- itm ^. itUse = Just . Right $ show x
|
||||
| otherwise = mempty
|
||||
| v <- itm ^? itUse . uValue = v
|
||||
|
||||
|
||||
maybeWarmupStatus :: Item -> Maybe String
|
||||
|
||||
Reference in New Issue
Block a user