|
|
|
@ -329,7 +329,7 @@ export function NPCDialog({
|
|
|
|
onToast(tr.notEnoughGold, '#ff4444');
|
|
|
|
onToast(tr.notEnoughGold, '#ff4444');
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
healAtNPC(telegramId)
|
|
|
|
healAtNPC(telegramId, npc.id)
|
|
|
|
.then((hero) => {
|
|
|
|
.then((hero) => {
|
|
|
|
hapticImpact('medium');
|
|
|
|
hapticImpact('medium');
|
|
|
|
onToast(tr.healedToFull, '#44cc44');
|
|
|
|
onToast(tr.healedToFull, '#44cc44');
|
|
|
|
@ -339,7 +339,7 @@ export function NPCDialog({
|
|
|
|
console.warn('[NPCDialog] Failed to heal:', err);
|
|
|
|
console.warn('[NPCDialog] Failed to heal:', err);
|
|
|
|
onToast(tr.failedToHeal, '#ff4444');
|
|
|
|
onToast(tr.failedToHeal, '#ff4444');
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}, [telegramId, heroGold, onHeroUpdated, onToast]);
|
|
|
|
}, [telegramId, heroGold, onHeroUpdated, onToast, npc.id]);
|
|
|
|
|
|
|
|
|
|
|
|
// Quests relevant to this NPC
|
|
|
|
// Quests relevant to this NPC
|
|
|
|
const npcHeroQuests = heroQuests.filter(
|
|
|
|
const npcHeroQuests = heroQuests.filter(
|
|
|
|
|