feat: 플레이 중 포션 사용 로직 적용

This commit is contained in:
aube.lee
2025-03-01 21:46:27 +09:00
parent 67c017bbbf
commit 068cab2d8a
8 changed files with 576 additions and 25 deletions

View File

@@ -68,6 +68,21 @@ namespace TON
});
}
public void UsePotion(string type)
{
switch (type)
{
case "HP":
userItem.hpPotion -= 1;
itemDataManager.UpdateHpData(userItem.hpPotion);
break;
case "MP":
userItem.mpPotion -= 1;
itemDataManager.UpdateMpData(userItem.mpPotion);
break;
}
}
public void AddGold(int amount)
{
goldAmount += amount;