From b0aaf57d0c569b6b7f007aa2f55dc393d9c5e406 Mon Sep 17 00:00:00 2001 From: Logen Kain Date: Mon, 9 Oct 2017 01:45:53 -0700 Subject: [PATCH] Moved spells from main.go to magic.go --- magic.go | 16 ++++++++++++---- main.go | 7 ------- 2 files changed, 12 insertions(+), 11 deletions(-) diff --git a/magic.go b/magic.go index 3352fbe..672f6f5 100644 --- a/magic.go +++ b/magic.go @@ -2,10 +2,18 @@ package main //Spell contains all the magic spells type Spell struct { - Name string + Name string Damage int - Cost int - Level int + Cost int + Level int Active bool - } + +var ( + firearrow = Spell{ + Name: "Fire Arrow", + Damage: 50, + Cost: 10, + Level: 1, + Active: true} +) diff --git a/main.go b/main.go index 797d7a0..c641f59 100644 --- a/main.go +++ b/main.go @@ -25,13 +25,6 @@ var ( Damage: 20, Weapons: [5]Weapon{GoblinClaw}, Initiative: 3} - - firearrow = Spell{ - Name: "Fire Arrow", - Damage: 50, - Cost: 10, - Level: 1, - Active: true} ) func main() {