Moved characters from main.go to characters.go

This commit is contained in:
Logen Kain 2017-10-09 01:48:49 -07:00
parent b0aaf57d0c
commit d9460a7c59
2 changed files with 20 additions and 20 deletions

20
characters.go Normal file
View File

@ -0,0 +1,20 @@
package main
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}
)

20
main.go
View File

@ -7,26 +7,6 @@ import (
"time"
)
//Characters
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}
)
func main() {
initGame()
Battle(player, goblin)