This commit is contained in:
Elliott Pardee 2015-06-09 18:24:38 -04:00
parent bd783ea199
commit 6a557aaa0a

View File

@ -357,22 +357,22 @@ func setChar(nick string, cat string, item string, value string) bool {
} else if edata { } else if edata {
switch item { switch item {
case "armour": case "armour":
var armour interface{} var armour string
armour = value armour = value
charmap[nick].Equipment.Armour = append(charmap[nick].Equipment.Armour, armour) charmap[nick].Equipment.Armour = append(charmap[nick].Equipment.Armour, armour)
break break
case "weapons": case "weapons":
var weapons interface{} var weapons string
weapons = value weapons = value
charmap[nick].Equipment.Weapons = append(charmap[nick].Equipment.Weapons, weapons) charmap[nick].Equipment.Weapons = append(charmap[nick].Equipment.Weapons, weapons)
break break
case "items": case "items":
var items interface{} var items string
items = value items = value
charmap[nick].Equipment.Items = append(charmap[nick].Equipment.Items, items) charmap[nick].Equipment.Items = append(charmap[nick].Equipment.Items, items)
break break
case "missiles": case "missiles":
var missiles interface{} var missiles string
missiles = value missiles = value
charmap[nick].Equipment.Missiles = append(charmap[nick].Equipment.Missiles, missiles) charmap[nick].Equipment.Missiles = append(charmap[nick].Equipment.Missiles, missiles)
break break
@ -417,12 +417,12 @@ func setChar(nick string, cat string, item string, value string) bool {
charmap[nick].Wealth.Coins = value charmap[nick].Wealth.Coins = value
break break
case "other": case "other":
var other interface{} var other string
other = value other = value
charmap[nick].Wealth.Other = append(charmap[nick].Wealth.Other, other) charmap[nick].Wealth.Other = append(charmap[nick].Wealth.Other, other)
break break
case "gems": case "gems":
var gems interface{} var gems string
gems = value gems = value
charmap[nick].Wealth.Gems = append(charmap[nick].Wealth.Gems, gems) charmap[nick].Wealth.Gems = append(charmap[nick].Wealth.Gems, gems)
break break