corrected syntax formatting of all files

This commit is contained in:
mollusk 2017-10-15 11:10:52 -07:00
parent 1094bfdeae
commit f23ee96cac
3 changed files with 10 additions and 18 deletions

View File

@ -5,8 +5,6 @@ import (
"time"
)
func Battle(hero, enemy Character) {
speed := time.Second * 1
@ -16,7 +14,6 @@ func Battle(hero, enemy Character) {
heroInitiative := rand.Intn(7) + hero.Initiative
enemyInitiative := rand.Intn(7) + enemy.Initiative
if heroInitiative == enemyInitiative {
if flipCoin() == "heads" {
heroInitiative -= 1

View File

@ -1,7 +1,5 @@
package main
type Character struct {
Name string
Health int
@ -12,7 +10,6 @@ type Character struct {
Gear PaperDoll
}
var (
player = Character{

View File

@ -8,10 +8,8 @@ type Weapon struct {
type PaperDoll struct {
Weapon Weapon
}
var (
Broadsword = Weapon{
Name: "Broadsword",