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

@@ -89,5 +89,27 @@ namespace TON
});
}
public void UpdateHpData(int count)
{
Param param = new Param();
param.Add("hp_potion", count);
Backend.PlayerData.UpdateMyLatestData(USER_ITEM_TABLE, param, callback =>
{
UserItemData updatedData = new UserItemData { hpPotion = count };
});
}
public void UpdateMpData(int count)
{
Param param = new Param();
param.Add("mp_potion", count);
Backend.PlayerData.UpdateMyLatestData(USER_ITEM_TABLE, param, callback =>
{
UserItemData updatedData = new UserItemData { mpPotion = count };
});
}
}
}