From d0b4567855c01c700a6c0259b000007b4267af97 Mon Sep 17 00:00:00 2001 From: mollusk Date: Fri, 6 Jul 2018 04:14:00 -0700 Subject: [PATCH] add comments to define items --- items.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/items.go b/items.go index 1832be6..19c19ca 100644 --- a/items.go +++ b/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}