2017-10-26 02:09:51 -07:00
|
|
|
package main
|
|
|
|
|
2018-07-06 04:14:00 -07:00
|
|
|
//Weapon creates type for general weapons
|
2017-10-26 02:09:51 -07:00
|
|
|
type Weapon struct {
|
|
|
|
Name string
|
|
|
|
Damage int
|
|
|
|
Active bool
|
|
|
|
}
|
|
|
|
|
|
|
|
var (
|
2018-07-06 04:14:00 -07:00
|
|
|
//Broadsword defines attributes of weapon Bradsword
|
2017-10-26 02:09:51 -07:00
|
|
|
Broadsword = Weapon{
|
|
|
|
Name: "Broadsword",
|
|
|
|
Damage: 5,
|
|
|
|
Active: false}
|
2018-07-06 04:14:00 -07:00
|
|
|
//GoblinClaw defines attributes of weapon GoblinClaw
|
2017-10-26 02:09:51 -07:00
|
|
|
GoblinClaw = Weapon{
|
|
|
|
Name: "Goblin Claw",
|
|
|
|
Damage: 5}
|
|
|
|
)
|