Moved spells from main.go to magic.go

This commit is contained in:
Logen Kain 2017-10-09 01:45:53 -07:00
parent 86d1316ff1
commit b0aaf57d0c
2 changed files with 12 additions and 11 deletions

View File

@ -7,5 +7,13 @@ type Spell struct {
Cost int Cost int
Level int Level int
Active bool Active bool
} }
var (
firearrow = Spell{
Name: "Fire Arrow",
Damage: 50,
Cost: 10,
Level: 1,
Active: true}
)

View File

@ -25,13 +25,6 @@ var (
Damage: 20, Damage: 20,
Weapons: [5]Weapon{GoblinClaw}, Weapons: [5]Weapon{GoblinClaw},
Initiative: 3} Initiative: 3}
firearrow = Spell{
Name: "Fire Arrow",
Damage: 50,
Cost: 10,
Level: 1,
Active: true}
) )
func main() { func main() {