2017-10-09 01:48:49 -07:00
|
|
|
package main
|
|
|
|
|
2017-10-11 05:14:58 -07:00
|
|
|
type Character struct {
|
|
|
|
Name string
|
|
|
|
Health int
|
|
|
|
Damage int
|
|
|
|
Weapons [5]Weapon
|
|
|
|
Spell Spell
|
|
|
|
Initiative int
|
|
|
|
}
|
|
|
|
|
2017-10-09 01:48:49 -07:00
|
|
|
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}
|
|
|
|
)
|