Moved spells from main.go to magic.go
This commit is contained in:
parent
86d1316ff1
commit
b0aaf57d0c
16
magic.go
16
magic.go
@ -2,10 +2,18 @@ package main
|
|||||||
|
|
||||||
//Spell contains all the magic spells
|
//Spell contains all the magic spells
|
||||||
type Spell struct {
|
type Spell struct {
|
||||||
Name string
|
Name string
|
||||||
Damage int
|
Damage int
|
||||||
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}
|
||||||
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user