trinket/characters.go

36 lines
574 B
Go
Raw Normal View History

package main
2017-10-11 05:14:58 -07:00
type Character struct {
Name string
Health int
Damage int
Weapons (map[string] Weapon)
2017-10-11 05:14:58 -07:00
Spell Spell
Initiative int
Gear PaperDoll
2017-10-11 05:14:58 -07:00
}
var (
player = Character{
Name: "Daniel",
Health: 100,
Damage: 30,
Spell: firearrow,
Weapons: make(map[string] Weapon),
Initiative: 4,
Gear: PaperDoll{Weapon: Broadsword}}
goblin = Character{
Name: "Goblin",
Health: 100,
Damage: 20,
Weapons: make(map[string] Weapon),
Initiative: 3,
Gear: PaperDoll{Weapon: GoblinClaw}}
)