Cleanup item combinations, prevent creation of identical items
This commit is contained in:
@@ -52,3 +52,6 @@ moduleModification imt = case imt of
|
||||
where
|
||||
p = fromMaybe (_crPos cr) $ it ^? itTargeting . tgPos . _Just
|
||||
a = argV (mouseWorldPos w -.- p)
|
||||
|
||||
applyModules :: Item -> Item
|
||||
applyModules it = foldr moduleModification it (_iyModules (_itType it))
|
||||
|
||||
Reference in New Issue
Block a user