Add file with function for making generic attachables
This commit is contained in:
@@ -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
|
||||||
|
|
||||||
Reference in New Issue
Block a user