36 lines
574 B
Go
36 lines
574 B
Go
package main
|
|
|
|
|
|
|
|
type Character struct {
|
|
Name string
|
|
Health int
|
|
Damage int
|
|
Weapons (map[string] Weapon)
|
|
Spell Spell
|
|
Initiative int
|
|
Gear PaperDoll
|
|
}
|
|
|
|
|
|
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}}
|
|
)
|