trinket/characters.go

37 lines
624 B
Go

package main
type Character struct {
Name string
Health int
Damage int
Weapons (map[string]Weapon)
Spell Spell
Initiative int
Gear PaperDoll
}
type PaperDoll struct {
Weapon Weapon
}
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: 30,
Weapons: make(map[string]Weapon),
Initiative: 3,
Gear: PaperDoll{Weapon: GoblinClaw}}
)