trinket/characters.go
2017-10-11 05:14:58 -07:00

30 lines
456 B
Go

package main
type Character struct {
Name string
Health int
Damage int
Weapons [5]Weapon
Spell Spell
Initiative int
}
var (
player = Character{
Name: "Daniel",
Health: 100,
Damage: 30,
Spell: firearrow,
Weapons: [5]Weapon{Broadsword},
Initiative: 4}
goblin = Character{
Name: "Goblin",
Health: 100,
Damage: 20,
Weapons: [5]Weapon{GoblinClaw},
Initiative: 3}
)