{include "layout.html"} {block "content"}

{town.Name} Shop

Buying weapons will increase your Attack. Buying armor and shields will increase your Defense.

Click an item name to purchase it.

The following items are available in {town.Name}:

{for item in itemlist} {/for}
{if item.Type == 1} Weapon {/if} {if item.Type == 2} Armor {/if} {if item.Type == 3} Shield {/if} {if user.WeaponID == item.ID or user.ArmorID == item.ID or user.ShieldID == item.ID} {item.Name} {else} {if user.Gold >= item.Value} {item.Name} {else} {item.Name} {/if} {/if} {item.Att} {if item.Type == 1}Attack{else}Defense{/if} {if user.WeaponID == item.ID or user.ArmorID == item.ID or user.ShieldID == item.ID} Already owned {else} {if user.Gold >= item.Value} {item.Value}G {else} {item.Value}G (can't afford) {/if} {/if}

If you've changed your mind, you may also return back to town.

{/block} {block "scripts"} {/block}