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
|
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}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user