add comments to define items

This commit is contained in:
mollusk 2018-07-06 04:14:00 -07:00
parent 4146413997
commit d0b4567855

View File

@ -1,19 +1,19 @@
package main package main
//Weapon creates type for general weapons
type Weapon struct { type Weapon struct {
Name string Name string
Damage int Damage int
Active bool Active bool
} }
var ( var (
//Broadsword defines attributes of weapon Bradsword
Broadsword = Weapon{ Broadsword = Weapon{
Name: "Broadsword", Name: "Broadsword",
Damage: 5, Damage: 5,
Active: false} Active: false}
//GoblinClaw defines attributes of weapon GoblinClaw
GoblinClaw = Weapon{ GoblinClaw = Weapon{
Name: "Goblin Claw", Name: "Goblin Claw",
Damage: 5} Damage: 5}