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

@ -21236,7 +21236,7 @@ GameObject:
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 0
m_IsActive: 1
--- !u!224 &1396909587
RectTransform:
m_ObjectHideFlags: 0
@ -24703,26 +24703,7 @@ MonoBehaviour:
m_OnCullStateChanged:
m_PersistentCalls:
m_Calls: []
m_text: "What the fuck did you just fucking type about me, you little bitch? I\u2019ll
have you know I graduated top of my class at MIT, and I\u2019ve been involved
in numerous secret raids with Anonymous, and I have over 300 confirmed DDoSes.\n\nI
am trained in online trolling and I\u2019m the top hacker in the entire world.
You are nothing to me but just another virus host. I will wipe you the fuck out
with precision the likes of which has never been seen before on the Internet,
mark my fucking words. You think you can get away with typing that shit to me
over the Internet? Think again, fucker.\n\nAs we chat over IRC I am tracing your
IP with my damn bare hands so you better prepare for the storm, maggot. The storm
that wipes out the pathetic little thing you call your computer. You\u2019re
fucking dead, kid. I can be anywhere, anytime, and I can hack into your files
in over seven hundred ways, and that\u2019s just with my bare hands.\n\nNot only
am I extensively trained in hacking, but I have access to the entire arsenal
of every piece of malware ever created and I will use it to its full extent to
wipe your miserable ass off the face of the world wide web, you little shit.
If only you could have known what unholy retribution your little \u201Cclever\u201D
comment was about to bring down upon you, maybe you would have held your fucking
fingers. But you couldn\u2019t, you didn\u2019t, and now you\u2019re paying the
price, you goddamn idiot. I will shit code all over you and you will drown in
it.\n\nYou\u2019re fucking dead, kiddo."
m_text: ""
m_isRightToLeft: 0
m_fontAsset: {fileID: 11400000, guid: 53555f7a2d5e745428813f1b1118734f, type: 2}
m_sharedMaterial: {fileID: -2804126062856497447, guid: 53555f7a2d5e745428813f1b1118734f,

View file

@ -13,7 +13,8 @@ public class EventLog : MonoBehaviour
private SizedQueue<string> LogMessages;
private StringBuilder LogText;
private void Start()
// Awake, not Start: a message can arrive in the frame the parent activates, before Start would run.
private void Awake()
{
LogMessages = new SizedQueue<string>(LineCount);
LogText = new StringBuilder();

View file

@ -1092,6 +1092,12 @@ public class ActionGameManager : MonoBehaviour
_shipSubscriptions.Add(CurrentEntity.Zone.ShotResolved
.Where(outcome => outcome.Source == CurrentEntity)
.Subscribe(outcome => _debugLastShots[outcome.Weapon] = outcome));
_shipSubscriptions.Add(CurrentEntity.Zone.CargoGained
.Where(gain => gain.Taker == CurrentEntity)
.Subscribe(gain =>
{
if (EventLog != null) EventLog.LogMessage(HaulFeed.Line(gain, ItemManager), gain.Adrift > 0 ? Color.yellow : Color.white);
}));
FollowCamera.LookAt = ZoneRenderer.EntityInstances[CurrentEntity].LookAtPoint;
FollowCamera.Follow = ZoneRenderer.EntityInstances[CurrentEntity].transform;

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();
});
}