Move UseCondition out of record

This commit is contained in:
2025-06-05 19:41:33 +01:00
parent 16f5c05f19
commit 816ab4222f
15 changed files with 325 additions and 382 deletions
+11
View File
@@ -0,0 +1,11 @@
module Dodge.ItemUseCondition (itUseCondition) where
import Dodge.Data.Item
import Dodge.Data.UseCondition
itUseCondition :: Item -> UseCondition
itUseCondition itm = case _itType itm of
DETECTOR _ -> UseableAnytime
HELD BLINKER -> UseableAnytime
HELD UNSAFEBLINKER -> UseableAnytime
_ -> UseableWhenAimed