This commit is contained in:
2025-12-16 02:13:31 +09:00
parent c029cd1e10
commit f5a7eb2db9
19 changed files with 378 additions and 87 deletions
@@ -86,6 +86,7 @@ class InventoryGridWidget extends StatelessWidget {
Item item,
) {
bool isShop = provider.currentStage.type == StageType.shop;
int sellPrice = (item.price * GameConfig.sellPriceMultiplier).floor();
showDialog(
context: context,
@@ -141,7 +142,7 @@ class InventoryGridWidget extends StatelessWidget {
color: ThemeConfig.statGoldColor,
),
const SizedBox(width: 10),
Text("${AppStrings.sell} (${item.price} G)"),
Text("${AppStrings.sell} ($sellPrice G)"),
],
),
),
@@ -172,11 +173,13 @@ class InventoryGridWidget extends StatelessWidget {
BattleProvider provider,
Item item,
) {
int sellPrice = (item.price * GameConfig.sellPriceMultiplier).floor();
showDialog(
context: context,
builder: (ctx) => AlertDialog(
title: const Text("Sell Item"),
content: Text("Sell ${item.name} for ${item.price} G?"),
content: Text("Sell ${item.name} for $sellPrice G?"),
actions: [
TextButton(
onPressed: () => Navigator.pop(ctx),