Add file with function for making generic attachables

This commit is contained in:
2024-10-01 14:29:53 +01:00
parent 15262c4817
commit cb461963f0
+14
View File
@@ -0,0 +1,14 @@
module Dodge.Item.Attach
(makeAttach
)
where
import Dodge.Data.Item
import Dodge.Default.Item
import Control.Lens
makeAttach :: AttachType -> Item
makeAttach t = defaultHeldItem
& itType .~ ATTACH t
& itUse .~ UseAttach APNothing