示例#1
0
bool AttemptToUseHealingItem(ItemType type, int power)
{
	if(itemsOwned[type] > 0 && PlayerIsInjured())
	{
		HealPlayerByPercent(power);
		--itemsOwned[type];
		ShowAllItemCounts();
		return true;
	}  
	return false;
}
示例#2
0
文件: Battle.c 项目: mla133/PebbGame
void ItemBattleMenuAppear(Window *window)
{
	MenuAppear(window);
	ShowAllItemCounts();
}
示例#3
0
void ItemMainMenuAppear(Window *window)
{
	MenuAppear(window);
	ShowAllItemCounts();
}
示例#4
0
void DrawMainItemShopWindow(void)
{
	ShowAllItemCounts();
	ShowMainWindowRow(0, "Gold", UpdateGoldText());
}