From 2338cf3cc4e922c5a86e552a0e8ff688b31e686d Mon Sep 17 00:00:00 2001 From: mollusk Date: Wed, 11 Oct 2017 05:14:58 -0700 Subject: [PATCH] Moved Character struct --- battle.go | 9 +-------- characters.go | 9 +++++++++ 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/battle.go b/battle.go index aa5d144..0f1d9c5 100644 --- a/battle.go +++ b/battle.go @@ -5,14 +5,7 @@ import ( "time" ) -type Character struct { - Name string - Health int - Damage int - Weapons [5]Weapon - Spell Spell - Initiative int -} + func Battle(hero, enemy Character) { speed := time.Second * 1 diff --git a/characters.go b/characters.go index ead64e2..103a360 100644 --- a/characters.go +++ b/characters.go @@ -1,5 +1,14 @@ package main +type Character struct { + Name string + Health int + Damage int + Weapons [5]Weapon + Spell Spell + Initiative int +} + var ( player = Character{