Mining 6 C5: Event Log shows each take (CargoGained), Sell Ore foldout entry; dormant log activated, placeholder text removed

Option event-log of question mining-6-feedback-surface (recommended; no ruling).
Unity files are not compiled here.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
Nibu 2026-11-13 05:32:18 +00:00
commit c131045e7d
4 changed files with 23 additions and 22 deletions

View file

@ -312,6 +312,17 @@ public class TradeMenu : MonoBehaviour
Dialog.MoveToCursor();
}
// Sells every mined stack of the player's ships' bays in one step; the station pays through TrySell, so nothing refuses.
private void SellOre()
{
StationServices.TrySellOre(PlayerBays(), GameManager.DockedEntity, ref GameManager.Credits);
UpdateCreditsLabel();
Populate();
}
private IEnumerable<EquippedCargoBay> PlayerBays() =>
GameManager.CurrentEntity.Parent.Children.Where(e => e is Ship {IsPlayerShip: true}).SelectMany(s => s.CargoBays);
private void Repair()
{
if (StationServices.TryRepair(GameManager.CurrentEntity, ref GameManager.Credits))
@ -398,6 +409,8 @@ public class TradeMenu : MonoBehaviour
});
var repairCost = StationServices.RepairCost(GameManager.ItemManager, GameManager.CurrentEntity);
if (repairCost > 0) ContextMenu.AddOption($"Repair ({repairCost:N0})", Repair);
var oreValue = StationServices.OreValue(GameManager.ItemManager, PlayerBays());
if (oreValue > 0) ContextMenu.AddOption($"Sell Ore ({oreValue:N0})", SellOre);
ContextMenu.Show();
});
}