Added weapons to goblin and player

This commit is contained in:
Logen Kain 2017-10-09 00:27:09 -07:00
parent b962452832
commit d623b8ba2a

28
main.go
View File

@ -1,29 +1,33 @@
package main
import "fmt"
//Characters
var (
player = Character{
Name: "Daniel",
Health: 100,
Damage: 60,
Spell: firearrow}
Name: "Daniel",
Health: 100,
Damage: 60,
Spell: firearrow,
Weapons: [5]Weapon{Broadsword}}
goblin = Character{
Name: "Goblin",
Health: 100,
Damage: 20}
Name: "Goblin",
Health: 100,
Damage: 20,
Weapons: [5]Weapon{GoblinClaw}}
firearrow = Spell{
Name: "Fire Arrow",
Name: "Fire Arrow",
Damage: 50,
Cost: 10,
Level: 1,
Level: 1,
Active: true}
)
func main(){
func main() {
Battle(player, goblin, 1)
}
fmt.Println(goblin.Weapons[0].Damage)
}