if ("Weapons")
var/list/WeaponList = new()
if (usr.gold>=0)
ItemName += "Leather Boots"
ItemRef += /obj/equipment/armor/Leather_Boots
for (var/A = 1; A <= length(ItemName);A++)
ItemCost += 10 * (3 ** A) // For some reason , the cost always turns out 30, probably because A is staying 1, I also dont know why + src.Value wont work...
WeaponList += "[ItemName[A]] - [num2text(ItemCost[A], 50)]"
Problem description:
Look to the comment....
for (var/A = 1
you set 1 everytime