Moved Character struct

This commit is contained in:
mollusk 2017-10-11 05:14:58 -07:00
parent 3630326f44
commit 2338cf3cc4
2 changed files with 10 additions and 8 deletions

View File

@ -5,14 +5,7 @@ import (
"time" "time"
) )
type Character struct {
Name string
Health int
Damage int
Weapons [5]Weapon
Spell Spell
Initiative int
}
func Battle(hero, enemy Character) { func Battle(hero, enemy Character) {
speed := time.Second * 1 speed := time.Second * 1

View File

@ -1,5 +1,14 @@
package main package main
type Character struct {
Name string
Health int
Damage int
Weapons [5]Weapon
Spell Spell
Initiative int
}
var ( var (
player = Character{ player = Character{