module Hrpg.Framework.Items.ItemDefinition
      ( ItemId   (..)
      , ItemType (..)
      , ItemDefinition (..)
      ) where

import Data.Text

import Hrpg.Framework.Combat.Dmg
import Hrpg.Framework.Stats

newtype ItemId = ItemId Int deriving (Show, Eq)

data ItemType = 
    Weapon
  | Armour
  | Junk
  deriving (Show, Eq)

data ItemDefinition = ItemDefinition 
    { itemId    :: ItemId
    , itemName  :: Text
    , itemType  :: ItemType
    , weaponDmg :: Maybe Dmg
    , itemStats :: Maybe Stats
    } deriving Show
