LambdaHack-0.2.14: A roguelike game engine in early development

Safe HaskellNone
LanguageHaskell2010

Game.LambdaHack.Content.ItemKind

Description

The type of kinds of weapons, treasure, organs, shrapnel and actors.

Synopsis

Documentation

data ItemKind Source

Item properties that are fixed for a given kind of items.

Constructors

ItemKind 

Fields

isymbol :: !Char

map symbol

iname :: !Text

generic name

ifreq :: !Freqs

frequency within groups

iflavour :: ![Flavour]

possible flavours

icount :: !Dice

created in that quantity

irarity :: ![(Int, Int)]

rarity on given depths

iverbHit :: !Part

the verb for applying and melee

iweight :: !Int

weight in grams

iaspects :: ![Aspect Dice]

keep the aspect continuously

ieffects :: ![Effect Dice]

cause the effect when triggered

ifeature :: ![Feature]

public properties

idesc :: !Text

description

ikit :: ![(Text, CStore)]

accompanying organs and items

Instances

validateItemKind :: [ItemKind] -> [ItemKind] Source

Filter a list of kinds, passing through only the incorrect ones, if any.