19 lines
224 B
Go
19 lines
224 B
Go
package main
|
|
|
|
type Weapon struct {
|
|
Name string
|
|
Damage int
|
|
Active bool
|
|
}
|
|
|
|
var (
|
|
Broadsword = Weapon{
|
|
Name: "Broadsword",
|
|
Damage: 25,
|
|
Active: false}
|
|
|
|
GoblinClaw = Weapon{
|
|
Name: "Goblin Claw",
|
|
Damage: 5}
|
|
)
|