Example #1
0
bool AttemptToUseHealingItem(ItemType type, int power)
{
	if(itemsOwned[type] > 0 && PlayerIsInjured())
	{
		HealPlayerByPercent(power);
		--itemsOwned[type];
		ShowAllItemCounts();
		return true;
	}  
	return false;
}
Example #2
0
void ItemBattleMenuAppear(Window *window)
{
	MenuAppear(window);
	ShowAllItemCounts();
}
Example #3
0
void ItemMainMenuAppear(Window *window)
{
	MenuAppear(window);
	ShowAllItemCounts();
}
Example #4
0
void DrawMainItemShopWindow(void)
{
	ShowAllItemCounts();
	ShowMainWindowRow(0, "Gold", UpdateGoldText());
}