Reorganise

This commit is contained in:
2023-05-03 20:03:05 +01:00
parent ff512348e0
commit d99d612e68
+12
View File
@@ -0,0 +1,12 @@
module Dodge.Item.SlotsTaken (
itSlotsTaken,
) where
import Control.Lens
import Dodge.Data.Item
import Dodge.Module
itSlotsTaken :: Item -> Int
itSlotsTaken it = case it ^? itUse . useAmount of
Nothing -> moduleSizes it + ceiling (_itInvSize it)
Just i -> moduleSizes it + ceiling (_itInvSize it * fromIntegral i)