From cb461963f01a4f87c035df91c1ae59037e8e066f Mon Sep 17 00:00:00 2001 From: justin Date: Tue, 1 Oct 2024 14:29:53 +0100 Subject: [PATCH] Add file with function for making generic attachables --- src/Dodge/Item/Attach.hs | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 src/Dodge/Item/Attach.hs diff --git a/src/Dodge/Item/Attach.hs b/src/Dodge/Item/Attach.hs new file mode 100644 index 000000000..69de04fcb --- /dev/null +++ b/src/Dodge/Item/Attach.hs @@ -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 +