コード例 #1
0
ファイル: Items.c プロジェクト: unwiredben/ColorDungeon
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
ファイル: Items.c プロジェクト: unwiredben/ColorDungeon
void ItemMainMenuAppear(Window *window)
{
	MenuAppear(window);
	ShowAllItemCounts();
}
コード例 #4
0
ファイル: Shop.c プロジェクト: PhatedOne/MiniDungeon
void DrawMainItemShopWindow(void)
{
	ShowAllItemCounts();
	ShowMainWindowRow(0, "Gold", UpdateGoldText());
}