Moved Character struct
This commit is contained in:
parent
3630326f44
commit
2338cf3cc4
@ -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
|
||||||
|
@ -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{
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user