update
This commit is contained in:
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user