Allow for stacking of items and combining sensibly
This commit is contained in:
@@ -5,13 +5,16 @@ import Dodge.Default.Weapon
|
||||
--import Picture
|
||||
--import Geometry
|
||||
|
||||
makeTypeCraft :: CombineType -> Item
|
||||
makeTypeCraft ct = defaultCraftable
|
||||
{ _itInvSize = 1
|
||||
makeTypeCraftNum :: Int -> CombineType -> Item
|
||||
makeTypeCraftNum i ct = defaultCraftable
|
||||
{ _itInvSize = 0.5
|
||||
, _itCurseStatus = Uncursed
|
||||
, _itName = show ct
|
||||
, _itCombineType = ct
|
||||
, _itConsumption = ItemItselfConsumable 3 3
|
||||
, _itConsumption = ItemItselfConsumable i
|
||||
}
|
||||
|
||||
makeTypeCraft :: CombineType -> Item
|
||||
makeTypeCraft = makeTypeCraftNum 1
|
||||
pipe :: Item
|
||||
pipe = makeTypeCraft PIPE
|
||||
|
||||
Reference in New Issue
Block a user