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
|
2017-10-15 11:10:52 -07:00
|
|
|
Weapons (map[string]Weapon)
|
2017-10-11 05:14:58 -07:00
|
|
|
Spell Spell
|
|
|
|
Initiative int
|
2017-10-15 11:10:52 -07:00
|
|
|
Gear PaperDoll
|
2017-10-11 05:14:58 -07:00
|
|
|
}
|
|
|
|
|
2017-10-09 01:48:49 -07:00
|
|
|
var (
|
|
|
|
player = Character{
|
|
|
|
|
|
|
|
Name: "Daniel",
|
|
|
|
Health: 100,
|
|
|
|
Damage: 30,
|
|
|
|
Spell: firearrow,
|
2017-10-15 11:10:52 -07:00
|
|
|
Weapons: make(map[string]Weapon),
|
2017-10-11 06:32:40 -07:00
|
|
|
Initiative: 4,
|
2017-10-15 11:10:52 -07:00
|
|
|
Gear: PaperDoll{Weapon: Broadsword}}
|
2017-10-09 01:48:49 -07:00
|
|
|
|
|
|
|
goblin = Character{
|
|
|
|
|
|
|
|
Name: "Goblin",
|
|
|
|
Health: 100,
|
|
|
|
Damage: 20,
|
2017-10-15 11:10:52 -07:00
|
|
|
Weapons: make(map[string]Weapon),
|
2017-10-11 06:32:40 -07:00
|
|
|
Initiative: 3,
|
2017-10-15 11:10:52 -07:00
|
|
|
Gear: PaperDoll{Weapon: GoblinClaw}}
|
2017-10-09 01:48:49 -07:00
|
|
|
)
|