add comments to define items
This commit is contained in:
parent
4146413997
commit
d0b4567855
6
items.go
6
items.go
@ -1,19 +1,19 @@
|
||||
package main
|
||||
|
||||
//Weapon creates type for general weapons
|
||||
type Weapon struct {
|
||||
Name string
|
||||
Damage int
|
||||
Active bool
|
||||
}
|
||||
|
||||
|
||||
|
||||
var (
|
||||
//Broadsword defines attributes of weapon Bradsword
|
||||
Broadsword = Weapon{
|
||||
Name: "Broadsword",
|
||||
Damage: 5,
|
||||
Active: false}
|
||||
|
||||
//GoblinClaw defines attributes of weapon GoblinClaw
|
||||
GoblinClaw = Weapon{
|
||||
Name: "Goblin Claw",
|
||||
Damage: 5}
|
||||
|
Loading…
x
Reference in New Issue
Block a user