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
//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}