Please disclose if any significant portion of your mod was created using AI tools by adding the 'AI Generated' category. Failing to do so may result in the mod being removed from Thunderstore.
Decompiled source of ItemStats v1.0.0
ItemStats.dll
Decompiled 6 hours ago
The result has been truncated due to the large size, download it to view full contents!
using System; using System.Collections.Generic; using System.Diagnostics; using System.Globalization; using System.Linq; using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.Versioning; using System.Security; using System.Security.Permissions; using BepInEx; using BepInEx.Configuration; using BepInEx.Logging; using ExitGames.Client.Photon; using HarmonyLib; using ItemStats.Network; using ItemStats.Tracking; using ItemStats.UI; using Microsoft.CodeAnalysis; using Photon.Pun; using Photon.Realtime; using UnityEngine; [assembly: CompilationRelaxations(8)] [assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)] [assembly: Debuggable(DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints)] [assembly: IgnoresAccessChecksTo("Assembly-CSharp")] [assembly: TargetFramework(".NETStandard,Version=v2.1", FrameworkDisplayName = ".NET Standard 2.1")] [assembly: AssemblyCompany("ItemStats")] [assembly: AssemblyConfiguration("Release")] [assembly: AssemblyFileVersion("1.0.0.0")] [assembly: AssemblyInformationalVersion("1.0.0+d80f35ce2077f31d5ae7c3f7cb6dcf4b22bc1879")] [assembly: AssemblyProduct("ItemStats")] [assembly: AssemblyTitle("ItemStats")] [assembly: SecurityPermission(SecurityAction.RequestMinimum, SkipVerification = true)] [assembly: AssemblyVersion("1.0.0.0")] [module: UnverifiableCode] [module: RefSafetyRules(11)] namespace Microsoft.CodeAnalysis { [CompilerGenerated] [Embedded] internal sealed class EmbeddedAttribute : Attribute { } } namespace System.Runtime.CompilerServices { [CompilerGenerated] [Embedded] [AttributeUsage(AttributeTargets.Module, AllowMultiple = false, Inherited = false)] internal sealed class RefSafetyRulesAttribute : Attribute { public readonly int Version; public RefSafetyRulesAttribute(int P_0) { Version = P_0; } } } namespace ItemStats { internal static class Errors { private const int MaxReportsPerPlace = 3; private static readonly Dictionary<string, int> Counts = new Dictionary<string, int>(); public static void Report(string place, Exception e) { try { string key = place + "|" + e.GetType().Name; Counts.TryGetValue(key, out var value); if (value < 3) { value++; Counts[key] = value; Plugin.Log.LogError((object)$"{place}: {e}"); if (value == 3) { Plugin.Log.LogWarning((object)(place + ": further " + e.GetType().Name + " errors from this place will not be logged in this level.")); } } } catch { } } public static void ResetCounts() { Counts.Clear(); } } [BepInPlugin("ItemStats", "ItemStats", "1.0.0")] public class Plugin : BaseUnityPlugin { public const string PluginGuid = "ItemStats"; public const string PluginName = "ItemStats"; public const string PluginVersion = "1.0.0"; internal static ManualLogSource Log; private Harmony _harmony; private void Awake() { //IL_0028: Unknown result type (might be due to invalid IL or missing references) //IL_0032: Expected O, but got Unknown Log = ((BaseUnityPlugin)this).Logger; PluginConfig.Bind(((BaseUnityPlugin)this).Config); ((Component)this).gameObject.AddComponent<StatsOverlay>(); _harmony = new Harmony("ItemStats"); ApplyPatches(); Log.LogInfo((object)"ItemStats 1.0.0 loaded"); } private void ApplyPatches() { int num = 0; int num2 = 0; Type[] typesFromAssembly = AccessTools.GetTypesFromAssembly(typeof(Plugin).Assembly); foreach (Type type in typesFromAssembly) { if (type.GetCustomAttributes(typeof(HarmonyPatch), inherit: false).Length != 0) { try { _harmony.CreateClassProcessor(type).Patch(); num++; } catch (Exception ex) { num2++; Log.LogError((object)("Patch " + type.Name + " failed: " + ex.GetBaseException().Message)); } } } Log.LogInfo((object)$"Patches: {num} OK, {num2} failed"); } private void Update() { //IL_002f: Unknown result type (might be due to invalid IL or missing references) //IL_0034: Unknown result type (might be due to invalid IL or missing references) try { if ((Object)(object)RunManager.instance != (Object)null) { StatsSync.Tick(); } } catch (Exception e) { Errors.Report("StatsSync.Tick", e); } try { if (!StatsSync.Dormant) { KeyboardShortcut value = PluginConfig.DumpKey.Value; if (((KeyboardShortcut)(ref value)).IsDown()) { LevelTracker.LogSummary(); } } } catch (Exception e2) { Errors.Report("F9 dump", e2); } } } internal enum UiLanguage { Auto, English, Czech, ChineseSimplified, ChineseTraditional, Danish, Finnish, French, German, Italian, Japanese, Korean, Polish, PortugueseBrazil, PortuguesePortugal, Russian, Spanish, Swedish, Thai, Turkish, Ukrainian } internal static class PluginConfig { public static ConfigEntry<UiLanguage> Language; public static ConfigEntry<KeyboardShortcut> ToggleKey; public static ConfigEntry<KeyboardShortcut> ExplainKey; public static ConfigEntry<bool> AutoShow; public static ConfigEntry<bool> ShowDamageCauses; public static ConfigEntry<bool> ShowPlayers; public static ConfigEntry<float> Scale; public static ConfigEntry<bool> UpdateAfterExtraction; public static ConfigEntry<bool> LevelStartInfo; public static ConfigEntry<float> LevelStartSeconds; public static ConfigEntry<KeyboardShortcut> DumpKey; public static ConfigEntry<bool> LogEvents; public static void Bind(ConfigFile config) { //IL_0030: Unknown result type (might be due to invalid IL or missing references) //IL_0059: Unknown result type (might be due to invalid IL or missing references) //IL_00e7: Unknown result type (might be due to invalid IL or missing references) //IL_00f1: Expected O, but got Unknown //IL_0155: Unknown result type (might be due to invalid IL or missing references) //IL_015f: Expected O, but got Unknown //IL_0179: Unknown result type (might be due to invalid IL or missing references) Language = config.Bind<UiLanguage>("General", "Language", UiLanguage.Auto, "Language of the overlay. Auto uses the language selected in the game (English if the mod has no translation for it). All languages the game supports are available, plus Czech."); ToggleKey = config.Bind<KeyboardShortcut>("Overlay", "ToggleKey", new KeyboardShortcut((KeyCode)289, Array.Empty<KeyCode>()), "Key that hides or shows the summary of the last level."); ExplainKey = config.Bind<KeyboardShortcut>("Overlay", "ExplainKey", new KeyboardShortcut((KeyCode)288, Array.Empty<KeyCode>()), "Key that shows or hides explanations of the rows. Works only while the statistics panel (ToggleKey) is shown."); AutoShow = config.Bind<bool>("Overlay", "AutoShow", true, "Show the summary automatically after a level ends (in the truck or shop)."); ShowDamageCauses = config.Bind<bool>("Overlay", "ShowDamageCauses", true, "Break the damage down by cause (players, monsters, traps, environment)."); ShowPlayers = config.Bind<bool>("Overlay", "ShowPlayers", true, "Show the per-player section."); Scale = config.Bind<float>("Overlay", "Scale", 1f, new ConfigDescription("Size of the panels (1 = default).", (AcceptableValueBase)(object)new AcceptableValueRange<float>(0.5f, 2f), Array.Empty<object>())); UpdateAfterExtraction = config.Bind<bool>("Overlay", "UpdateAfterExtraction", true, "During a level, the panel (ToggleKey) shows the level's valuables. If true, it is updated after every extraction with what was extracted and how many valuables are left and their current value; if false, it shows only the values at the start."); LevelStartInfo = config.Bind<bool>("LevelStart", "Enabled", true, "When a level starts, briefly show how many valuables it has and their total value."); LevelStartSeconds = config.Bind<float>("LevelStart", "DurationSeconds", 8f, new ConfigDescription("How long the level start info stays on screen.", (AcceptableValueBase)(object)new AcceptableValueRange<float>(2f, 60f), Array.Empty<object>())); DumpKey = config.Bind<KeyboardShortcut>("Debug", "DumpKey", new KeyboardShortcut((KeyCode)290, Array.Empty<KeyCode>()), "Writes the current level statistics to the log."); LogEvents = config.Bind<bool>("Debug", "LogEvents", false, "Log every tracked event (grab, damage, extraction)."); } } } namespace ItemStats.UI { internal sealed class StatsOverlay : MonoBehaviour { private const float DesignHeight = 1080f; private const float PanelWidth = 470f; private const float ExplainWidth = 400f; private const float Margin = 40f; private const float ColName = 250f; private const float ColCount = 60f; private const float ColValue = 120f; private const float LevelStartDelay = 2f; private const float FadeSeconds = 1f; private bool _visible; private int _shownRevision; private LevelGenerator _shownIn; private LevelGenerator _startLevel; private float _startLevelSeenAt; private bool _startInfoDone; private LevelStats.Bucket _startTotals; private float _startInfoUntil; private bool _inLevel; private bool _levelInfoReady; private int _seenExtractions; private int _seenClientRevision; private LevelStats.Bucket _levelExtracted; private LevelStats.Bucket _levelRemaining; private LevelStats.Bucket _levelOrbs; private LevelStats.Bucket _levelOrbsExtracted; private float _levelTransferred; private LevelStats.CosmeticStats _startCosmetics; private bool _startHostMissing; private LevelStats.CosmeticStats _levelCosmetics; private bool _explain; private LevelStats _causeRowsFor; private readonly List<(LevelStats.CauseRow Cause, float Value)> _causeRows = new List<(LevelStats.CauseRow, float)>(); private GUIStyle _box; private GUIStyle _title; private GUIStyle _subtitle; private GUIStyle _label; private GUIStyle _right; private GUIStyle _hint; private GUIStyle _big; private GUIStyle _explainStyle; private Texture2D _background; private bool _stylesReady; private static string HostMissingText => "<color=#ff6b6b>" + Tr.T(TextId.HostMissing) + "</color>"; private static string IncompatibleHostText => "<color=#ff6b6b>" + Tr.T(TextId.HostIncompatible, StatsSync.IncompatibleHost) + "</color>"; private static bool IsClient { get { if (SemiFunc.IsMultiplayer()) { return !SemiFunc.IsMasterClientOrSingleplayer(); } return false; } } private void Update() { try { if (StatsSync.Dormant) { _visible = false; _startInfoUntil = 0f; } else { UpdateState(); } } catch (Exception e) { Errors.Report("Overlay Update", e); } } private void UpdateState() { //IL_0005: Unknown result type (might be due to invalid IL or missing references) //IL_000a: Unknown result type (might be due to invalid IL or missing references) //IL_003e: Unknown result type (might be due to invalid IL or missing references) //IL_0043: Unknown result type (might be due to invalid IL or missing references) KeyboardShortcut value = PluginConfig.ToggleKey.Value; if (((KeyboardShortcut)(ref value)).IsDown()) { _visible = !_visible; _shownIn = LevelGenerator.Instance; } else if (_visible) { value = PluginConfig.ExplainKey.Value; if (((KeyboardShortcut)(ref value)).IsDown()) { _explain = !_explain; } } bool flag = SemiFunc.MenuLevel(); bool flag2 = (_inLevel = SemiFunc.RunIsLevel()); LevelGenerator instance = LevelGenerator.Instance; bool flag3 = (Object)(object)instance != (Object)null && instance.Generated; if (LevelStats.Revision != _shownRevision && flag3 && !flag2 && !flag) { _shownRevision = LevelStats.Revision; if (PluginConfig.AutoShow.Value) { _visible = true; _shownIn = instance; } } if (_visible && (flag || (flag2 && (Object)(object)instance != (Object)(object)_shownIn))) { _visible = false; } UpdateLevelStart(flag2 && flag3, instance); } private void UpdateLevelStart(bool levelReady, LevelGenerator generator) { if (!levelReady) { _startInfoUntil = 0f; _levelInfoReady = false; return; } if ((Object)(object)generator != (Object)(object)_startLevel) { _startLevel = generator; _startLevelSeenAt = Time.time; _startInfoDone = false; _levelInfoReady = false; } if (IsClient) { UpdateLevelStartClient(); return; } if (!_startInfoDone && Time.time - _startLevelSeenAt >= 2f) { _startInfoDone = true; _levelInfoReady = LevelTracker.TryGetLevelTotals(out _startTotals); if (_levelInfoReady) { LevelTracker.TryGetCosmeticProgress(out _startCosmetics); RefreshProgress(); } _startHostMissing = false; if (_levelInfoReady && PluginConfig.LevelStartInfo.Value) { _startInfoUntil = Time.time + PluginConfig.LevelStartSeconds.Value; } SendProgressToClients(); } if (_levelInfoReady && LevelTracker.ExtractionCount != _seenExtractions && (PluginConfig.UpdateAfterExtraction.Value || SemiFunc.IsMultiplayer())) { RefreshProgress(); SendProgressToClients(); } } private void UpdateLevelStartClient() { StatsSync.LevelProgress progress; bool flag = StatsSync.TryGetClientProgress(out progress); if (!_startInfoDone) { if (!(Time.time - _startLevelSeenAt < 2f)) { if (flag) { _startInfoDone = true; _startHostMissing = false; ApplyProgress(progress); } else if (StatsSync.HostLacksMod) { _startInfoDone = true; _startHostMissing = true; } if (_startInfoDone && PluginConfig.LevelStartInfo.Value) { _startInfoUntil = Time.time + PluginConfig.LevelStartSeconds.Value; } } } else if (flag && progress.Revision != _seenClientRevision) { _startHostMissing = false; ApplyProgress(progress); } } private void ApplyProgress(StatsSync.LevelProgress p) { _seenClientRevision = p.Revision; _startTotals = p.StartTotals; _startCosmetics = p.StartCosmetics; _levelExtracted = p.Extracted; _levelRemaining = p.Remaining; _levelOrbs = p.Orbs; _levelOrbsExtracted = p.OrbsExtracted; _levelTransferred = p.Transferred; _levelCosmetics = p.Cosmetics; _levelInfoReady = true; } private void SendProgressToClients() { if (_levelInfoReady && SemiFunc.IsMultiplayer() && SemiFunc.IsMasterClientOrSingleplayer()) { StatsSync.SendProgress(new StatsSync.LevelProgress { StartTotals = _startTotals, Extracted = _levelExtracted, Remaining = _levelRemaining, Orbs = _levelOrbs, OrbsExtracted = _levelOrbsExtracted, Transferred = _levelTransferred, StartCosmetics = _startCosmetics, Cosmetics = _levelCosmetics }); } } private void RefreshProgress() { _seenExtractions = LevelTracker.ExtractionCount; if (!LevelTracker.TryGetProgress(out _levelExtracted, out _levelRemaining)) { _levelInfoReady = false; } LevelTracker.TryGetCosmeticProgress(out _levelCosmetics); LevelTracker.TryGetOrbProgress(out _levelOrbs, out _levelOrbsExtracted); _levelTransferred = LevelTracker.TransferredExtracted; } private void OnGUI() { //IL_00bf: Unknown result type (might be due to invalid IL or missing references) //IL_00c5: Unknown result type (might be due to invalid IL or missing references) //IL_001a: Unknown result type (might be due to invalid IL or missing references) //IL_001f: Unknown result type (might be due to invalid IL or missing references) //IL_0020: Unknown result type (might be due to invalid IL or missing references) //IL_0025: Unknown result type (might be due to invalid IL or missing references) //IL_0044: Unknown result type (might be due to invalid IL or missing references) //IL_0049: Unknown result type (might be due to invalid IL or missing references) //IL_0055: Unknown result type (might be due to invalid IL or missing references) //IL_005a: Unknown result type (might be due to invalid IL or missing references) bool flag = Time.time < _startInfoUntil; if (!_visible && !flag) { return; } Matrix4x4 matrix = GUI.matrix; Color color = GUI.color; try { EnsureStyles(); float num = (float)Screen.height / 1080f * PluginConfig.Scale.Value; GUI.matrix = Matrix4x4.TRS(Vector3.zero, Quaternion.identity, new Vector3(num, num, 1f)); float screenWidth = (float)Screen.width / num; float screenHeight = (float)Screen.height / num; if (flag) { DrawLevelStart(screenWidth); } if (_visible) { DrawSummaryPanel(screenHeight); } } catch (ExitGUIException) { throw; } catch (Exception e) { Errors.Report("Overlay OnGUI", e); _visible = false; _startInfoUntil = 0f; GUIUtility.ExitGUI(); } finally { GUI.color = color; GUI.matrix = matrix; } } private void DrawLevelStart(float screenWidth) { //IL_0028: Unknown result type (might be due to invalid IL or missing references) //IL_004e: Unknown result type (might be due to invalid IL or missing references) //IL_00a4: Unknown result type (might be due to invalid IL or missing references) //IL_014c: Unknown result type (might be due to invalid IL or missing references) float num = _startInfoUntil - Time.time; GUI.color = new Color(1f, 1f, 1f, Mathf.Clamp01(num / 1f)); GUILayout.BeginArea(new Rect((screenWidth - 520f) / 2f, 90f, 520f, 200f)); GUILayout.BeginVertical(_box, Array.Empty<GUILayoutOption>()); if (_startHostMissing) { GUILayout.Label("ItemStats", _subtitle, Array.Empty<GUILayoutOption>()); GUILayout.Label(HostMissingText, _label, Array.Empty<GUILayoutOption>()); GUILayout.EndVertical(); GUILayout.EndArea(); GUI.color = Color.white; return; } GUILayout.Label(Tr.T(TextId.ValuablesInLevel), _subtitle, Array.Empty<GUILayoutOption>()); GUILayout.Label(Tr.Pieces(_startTotals.Count) + " · <color=#7ee07e>" + Tr.Money(_startTotals.Value) + "</color>", _big, Array.Empty<GUILayoutOption>()); if (_startCosmetics.Total > 0) { GUILayout.Label($"+ {Tr.T(TextId.CosmeticBoxes)}: {_startCosmetics.Total}", _subtitle, Array.Empty<GUILayoutOption>()); } GUILayout.EndVertical(); GUILayout.EndArea(); GUI.color = Color.white; } private void DrawSummaryPanel(float screenHeight) { //IL_0021: Unknown result type (might be due to invalid IL or missing references) float num = (_explain ? 870f : 470f); GUILayout.BeginArea(new Rect(40f, 0f, num, screenHeight)); GUILayout.FlexibleSpace(); GUILayout.BeginVertical(_box, Array.Empty<GUILayoutOption>()); LevelStats last = LevelStats.Last; if (_inLevel) { DrawLevelInfo(); } else if (last == null) { DrawEmpty(); } else { DrawStats(last); } GUILayout.EndVertical(); GUILayout.FlexibleSpace(); GUILayout.EndArea(); } private void DrawLevelInfo() { GUILayout.Label(Tr.T(TextId.ValuablesInLevel), _title, Array.Empty<GUILayoutOption>()); if (!_levelInfoReady) { if (IsClient && StatsSync.HostLacksMod) { GUILayout.Label(HostMissingText, _label, Array.Empty<GUILayoutOption>()); } else if (IsClient && StatsSync.IncompatibleHost != null) { GUILayout.Label(IncompatibleHostText, _label, Array.Empty<GUILayoutOption>()); } else { GUILayout.Label(Tr.T(TextId.NoDataYet), _label, Array.Empty<GUILayoutOption>()); if (IsClient && !StatsSync.HostSendsProgress) { GUILayout.Label(Tr.T(TextId.HostOlderVersion, StatsSync.HostModVersion), _subtitle, Array.Empty<GUILayoutOption>()); } else if (IsClient) { GUILayout.Label(Tr.T(TextId.WaitingForHost), _subtitle, Array.Empty<GUILayoutOption>()); } } DrawHint(); return; } bool value = PluginConfig.UpdateAfterExtraction.Value; GUILayout.Label(value ? Tr.T(TextId.UpdatedAfterExtraction) : Tr.T(TextId.StateAtStart), _subtitle, Array.Empty<GUILayoutOption>()); GUILayout.Space(8f); Row("<b>" + Tr.T(TextId.AtStart) + "</b>", _startTotals.Count, _startTotals.Value, bold: true, TextId.ExplAtStart); if (value && _levelOrbs.Count > 0) { OrbRow(_levelOrbs, TextId.ExplMonsterOrbs); TotalRow(_startTotals, _levelOrbs, 0f, TextId.ExplTotalWithOrbs); } if (value) { Row("<color=#7ee07e>" + Tr.T(TextId.Extracted) + "</color>", _levelExtracted.Count, _levelExtracted.Value, bold: false, TextId.ExplExtracted); if (_levelOrbsExtracted.Count > 0) { OrbRow(_levelOrbsExtracted); } if (_levelTransferred > 0f) { TransferredRow(_levelTransferred, TextId.ExplTransferred); } if (_levelOrbsExtracted.Count > 0 || _levelTransferred > 0f) { TotalRow(_levelExtracted, _levelOrbsExtracted, _levelTransferred, TextId.ExplTotalExtracted); } Row("<color=#ffd35c>" + Tr.T(TextId.LeftInLevel) + "</color>", _levelRemaining.Count, _levelRemaining.Value, bold: false, TextId.ExplLeftInLevel); } if (_startCosmetics.Total > 0) { GUILayout.Space(10f); Row("<b>" + Tr.T(TextId.CosmeticBoxes) + "</b>", _startCosmetics.Total, null, bold: false, TextId.ExplCosmetic); if (value) { Row(" <color=#7ee07e>" + Tr.T(TextId.Extracted) + "</color>", _levelCosmetics.Extracted, null); } } DrawHint(canExplain: true); } private void DrawEmpty() { GUILayout.Label("ItemStats", _title, Array.Empty<GUILayoutOption>()); if (IsClient && StatsSync.HostLacksMod) { GUILayout.Label(HostMissingText, _label, Array.Empty<GUILayoutOption>()); DrawHint(); return; } GUILayout.Label(Tr.T(TextId.NoStatsYet), _label, Array.Empty<GUILayoutOption>()); if (StatsSync.IncompatibleHost != null) { GUILayout.Label(IncompatibleHostText, _subtitle, Array.Empty<GUILayoutOption>()); } DrawHint(); } private void DrawStats(LevelStats s) { GUILayout.Label(Tr.T(TextId.LevelStatistics), _title, Array.Empty<GUILayoutOption>()); string text = Tr.Reason(s.Reason); GUILayout.Label((s.Reason == EndReason.Failed) ? ("<color=#ff6b6b>" + text + "</color>") : text, _subtitle, Array.Empty<GUILayoutOption>()); GUILayout.Space(8f); Row("<b>" + Tr.T(TextId.TotalInLevel) + "</b>", s.Total.Count, s.Total.Value, bold: true, TextId.ExplTotalInLevel); if (s.Orbs.Count > 0) { OrbRow(s.Orbs, TextId.ExplMonsterOrbs); TotalRow(s.Total, s.Orbs, 0f, TextId.ExplTotalWithOrbs); } Row("<color=#7ee07e>" + Tr.T(TextId.Extracted) + "</color>", s.Extracted.Count, s.Extracted.Value, bold: false, TextId.ExplExtracted); if (s.OrbsExtracted.Count > 0) { OrbRow(s.OrbsExtracted); } if (s.Transferred > 0f) { TransferredRow(s.Transferred, TextId.ExplTransferred); } if (s.OrbsExtracted.Count > 0 || s.Transferred > 0f) { TotalRow(s.Extracted, s.OrbsExtracted, s.Transferred, TextId.ExplTotalExtracted); } Row("<color=#ff6b6b>" + Tr.T(TextId.Destroyed) + "</color>", s.Destroyed.Count, s.Destroyed.Value, bold: false, TextId.ExplDestroyed); Row("<color=#ffd35c>" + Tr.T(TextId.FoundNotExtracted) + "</color>", s.FoundLeft.Count, s.FoundLeft.Value, bold: false, TextId.ExplFoundNotExtracted); if (s.InBox.Count > 0) { Row("<color=#808080> " + Tr.T(TextId.OfWhichInBox) + "</color>", s.InBox.Count, s.InBox.Value, bold: false, TextId.ExplInBox); } Row("<color=#a0a0a0>" + Tr.T(TextId.NotFound) + "</color>", s.NotFound.Count, s.NotFound.Value, bold: false, TextId.ExplNotFound); if (s.NotFoundSeen > 0) { Row("<color=#808080> " + Tr.T(TextId.OfWhichSeen) + "</color>", s.NotFoundSeen, null, bold: false, TextId.ExplSeen); } GUILayout.Space(10f); Row("<b>" + Tr.T(TextId.Damaged) + "</b>", s.Damaged.Count, 0f - s.Damaged.Value, bold: true, TextId.ExplDamaged); if (PluginConfig.ShowDamageCauses.Value) { DrawDamageCauses(s); } if (s.Healed > 0f) { Row(" " + Tr.T(TextId.Restored), null, s.Healed, bold: false, TextId.ExplRestored); } DrawCosmetics(s.Cosmetics); if (PluginConfig.ShowPlayers.Value && s.Players.Count > 0) { DrawPlayers(s); } if (s.Bonus.Count > 0) { GUILayout.Space(6f); Row("<color=#808080>" + Tr.T(TextId.BonusNotCounted) + "</color>", s.Bonus.Count, s.Bonus.Value, bold: false, TextId.ExplBonus); } DrawHint(canExplain: true); } private void DrawDamageCauses(LevelStats s) { if (_causeRowsFor != s) { _causeRowsFor = null; _causeRows.Clear(); float num = 0f; foreach (LevelStats.CauseRow item in s.DamageByCause) { if (item.Kind == CauseKind.Player) { num += item.Value; } else { _causeRows.Add((item, item.Value)); } } if (num > 0f) { _causeRows.Add((null, num)); } _causeRows.Sort(((LevelStats.CauseRow Cause, float Value) a, (LevelStats.CauseRow Cause, float Value) b) => b.Value.CompareTo(a.Value)); _causeRowsFor = s; } foreach (var causeRow in _causeRows) { Row(" " + ((causeRow.Cause != null) ? Tr.Cause(causeRow.Cause) : Tr.T(TextId.Players)), null, 0f - causeRow.Value); } } private void DrawCosmetics(LevelStats.CosmeticStats c) { if (c.Total != 0) { GUILayout.Space(10f); Row("<b>" + Tr.T(TextId.CosmeticBoxes) + "</b>", c.Total, null, bold: false, TextId.ExplCosmetic); if (c.Extracted > 0) { Row(" <color=#7ee07e>" + Tr.T(TextId.Extracted) + "</color>", c.Extracted, null); } if (c.Destroyed > 0) { Row(" <color=#ff6b6b>" + Tr.T(TextId.Destroyed) + "</color>", c.Destroyed, null); } if (c.FoundLeft > 0) { Row(" <color=#ffd35c>" + Tr.T(TextId.FoundNotExtracted) + "</color>", c.FoundLeft, null); } if (c.NotFound > 0) { Row(" <color=#a0a0a0>" + Tr.T(TextId.NotFound) + "</color>", c.NotFound, null); } } } private void DrawPlayers(LevelStats s) { GUILayout.Space(10f); GUILayout.BeginHorizontal(Array.Empty<GUILayoutOption>()); GUILayout.Label("<b>" + Tr.T(TextId.ColumnPlayer) + "</b>", _label, (GUILayoutOption[])(object)new GUILayoutOption[1] { GUILayout.Width(140f) }); GUILayout.Label("<b>" + Tr.T(TextId.ColumnFound) + "</b>", _right, (GUILayoutOption[])(object)new GUILayoutOption[1] { GUILayout.Width(60f) }); GUILayout.Label("<b>" + Tr.T(TextId.ColumnExtracted) + "</b>", _right, (GUILayoutOption[])(object)new GUILayoutOption[1] { GUILayout.Width(110f) }); GUILayout.Label("<b>" + Tr.T(TextId.ColumnDamaged) + "</b>", _right, (GUILayoutOption[])(object)new GUILayoutOption[1] { GUILayout.Width(110f) }); ExplainCell(TextId.ExplPlayers); GUILayout.EndHorizontal(); foreach (LevelStats.PlayerRow player in s.Players) { GUILayout.BeginHorizontal(Array.Empty<GUILayoutOption>()); GUILayout.Label(player.Name, _label, (GUILayoutOption[])(object)new GUILayoutOption[1] { GUILayout.Width(140f) }); GUILayout.Label(player.Found.ToString(), _right, (GUILayoutOption[])(object)new GUILayoutOption[1] { GUILayout.Width(60f) }); GUILayout.Label(Money(player.Extracted), _right, (GUILayoutOption[])(object)new GUILayoutOption[1] { GUILayout.Width(110f) }); GUILayout.Label((player.Damage > 0f) ? Money(0f - player.Damage) : "–", _right, (GUILayoutOption[])(object)new GUILayoutOption[1] { GUILayout.Width(110f) }); GUILayout.EndHorizontal(); } if (s.ExtractedUnassigned > 0f) { Row("<color=#808080> " + Tr.T(TextId.ExtractedNoCarrier) + "</color>", null, s.ExtractedUnassigned, bold: false, TextId.ExplNoCarrier); } } private void OrbRow(LevelStats.Bucket orbs, TextId? explain = null) { Row("<color=#c9a0ff>+ " + Tr.T(TextId.MonsterOrbs) + "</color>", orbs.Count, orbs.Value, bold: false, explain); } private void TransferredRow(float value, TextId? explain = null) { Row("<color=#c9a0ff>+ " + Tr.T(TextId.Transferred) + "</color>", null, value, bold: false, explain); } private void TotalRow(LevelStats.Bucket items, LevelStats.Bucket orbs, float transferred = 0f, TextId? explain = null) { Row("<b>= " + Tr.T(TextId.TotalWithOrbs) + "</b>", items.Count + orbs.Count, items.Value + orbs.Value + transferred, bold: true, explain); } private void ExplainCell(TextId? id) { if (_explain && id.HasValue) { GUILayout.Label(Tr.T(id.Value), _explainStyle, (GUILayoutOption[])(object)new GUILayoutOption[1] { GUILayout.Width(400f) }); } } private void DrawHint(bool canExplain = false) { //IL_0014: Unknown result type (might be due to invalid IL or missing references) //IL_0039: Unknown result type (might be due to invalid IL or missing references) GUILayout.Space(10f); string text = $"{PluginConfig.ToggleKey.Value} – {Tr.T(TextId.HideShow)}"; if (canExplain) { text += $" · {PluginConfig.ExplainKey.Value} – {Tr.T(TextId.Explanations)}"; } GUILayout.Label(text, _hint, Array.Empty<GUILayoutOption>()); } private void Row(string name, int? count, float? value, bool bold = false, TextId? explain = null) { GUILayout.BeginHorizontal(Array.Empty<GUILayoutOption>()); GUILayout.Label(name, _label, (GUILayoutOption[])(object)new GUILayoutOption[1] { GUILayout.Width(250f) }); GUILayout.Label(count.HasValue ? Tr.Pieces(count.Value) : "", _right, (GUILayoutOption[])(object)new GUILayoutOption[1] { GUILayout.Width(60f) }); string text = (value.HasValue ? Money(value.Value) : ""); GUILayout.Label(bold ? ("<b>" + text + "</b>") : text, _right, (GUILayoutOption[])(object)new GUILayoutOption[1] { GUILayout.Width(120f) }); ExplainCell(explain); GUILayout.EndHorizontal(); } private static string Money(float value) { string text = Tr.Money(value); if (!(value < 0f)) { return text; } return "<color=#ff8a8a>−" + text + "</color>"; } private void EnsureStyles() { //IL_0060: Unknown result type (might be due to invalid IL or missing references) //IL_0065: Unknown result type (might be due to invalid IL or missing references) //IL_006e: Unknown result type (might be due to invalid IL or missing references) //IL_0078: Expected O, but got Unknown //IL_0078: Unknown result type (might be due to invalid IL or missing references) //IL_008e: Expected O, but got Unknown //IL_0099: Unknown result type (might be due to invalid IL or missing references) //IL_009e: Unknown result type (might be due to invalid IL or missing references) //IL_00a6: Unknown result type (might be due to invalid IL or missing references) //IL_00ad: Unknown result type (might be due to invalid IL or missing references) //IL_00b4: Unknown result type (might be due to invalid IL or missing references) //IL_00c9: Unknown result type (might be due to invalid IL or missing references) //IL_00d8: Expected O, but got Unknown //IL_00df: Unknown result type (might be due to invalid IL or missing references) //IL_00e4: Unknown result type (might be due to invalid IL or missing references) //IL_00f0: Expected O, but got Unknown //IL_00f7: Unknown result type (might be due to invalid IL or missing references) //IL_00fc: Unknown result type (might be due to invalid IL or missing references) //IL_0104: Unknown result type (might be due to invalid IL or missing references) //IL_0110: Expected O, but got Unknown //IL_0117: Unknown result type (might be due to invalid IL or missing references) //IL_011c: Unknown result type (might be due to invalid IL or missing references) //IL_0124: Unknown result type (might be due to invalid IL or missing references) //IL_012b: Unknown result type (might be due to invalid IL or missing references) //IL_0140: Unknown result type (might be due to invalid IL or missing references) //IL_014f: Expected O, but got Unknown //IL_0156: Unknown result type (might be due to invalid IL or missing references) //IL_015b: Unknown result type (might be due to invalid IL or missing references) //IL_0163: Unknown result type (might be due to invalid IL or missing references) //IL_0178: Unknown result type (might be due to invalid IL or missing references) //IL_0187: Expected O, but got Unknown //IL_018e: Unknown result type (might be due to invalid IL or missing references) //IL_0193: Unknown result type (might be due to invalid IL or missing references) //IL_019b: Unknown result type (might be due to invalid IL or missing references) //IL_01a2: Unknown result type (might be due to invalid IL or missing references) //IL_01ae: Expected O, but got Unknown //IL_01b5: Unknown result type (might be due to invalid IL or missing references) //IL_01ba: Unknown result type (might be due to invalid IL or missing references) //IL_01c2: Unknown result type (might be due to invalid IL or missing references) //IL_01c9: Unknown result type (might be due to invalid IL or missing references) //IL_01cf: Unknown result type (might be due to invalid IL or missing references) //IL_01d9: Expected O, but got Unknown //IL_01d9: Unknown result type (might be due to invalid IL or missing references) //IL_01ee: Unknown result type (might be due to invalid IL or missing references) //IL_01fd: Expected O, but got Unknown //IL_001a: Unknown result type (might be due to invalid IL or missing references) //IL_0024: Expected O, but got Unknown //IL_0040: Unknown result type (might be due to invalid IL or missing references) if (!_stylesReady) { if ((Object)(object)_background == (Object)null) { _background = new Texture2D(1, 1); _background.SetPixel(0, 0, new Color(0.05f, 0.05f, 0.07f, 0.85f)); _background.Apply(); } GUIStyle val = new GUIStyle(GUI.skin.box) { padding = new RectOffset(18, 18, 14, 14) }; val.normal.background = _background; _box = val; GUIStyle val2 = new GUIStyle(GUI.skin.label) { fontSize = 18, richText = true, wordWrap = false }; val2.normal.textColor = new Color(0.92f, 0.92f, 0.92f); _label = val2; _right = new GUIStyle(_label) { alignment = (TextAnchor)2 }; _title = new GUIStyle(_label) { fontSize = 26, fontStyle = (FontStyle)1 }; GUIStyle val3 = new GUIStyle(_label) { fontSize = 16, alignment = (TextAnchor)0 }; val3.normal.textColor = new Color(0.65f, 0.65f, 0.65f); _subtitle = val3; GUIStyle val4 = new GUIStyle(_label) { fontSize = 14 }; val4.normal.textColor = new Color(0.5f, 0.5f, 0.5f); _hint = val4; _big = new GUIStyle(_label) { fontSize = 30, fontStyle = (FontStyle)1, alignment = (TextAnchor)4 }; GUIStyle val5 = new GUIStyle(_label) { fontSize = 14, wordWrap = true, padding = new RectOffset(20, 0, 3, 4) }; val5.normal.textColor = new Color(0.6f, 0.68f, 0.78f); _explainStyle = val5; _stylesReady = true; } } private void OnDestroy() { if ((Object)(object)_background != (Object)null) { Object.Destroy((Object)(object)_background); } } } internal static class Tr { private static int _resolvedFrame = -1; private static UiLanguage _resolved = UiLanguage.English; private static readonly Dictionary<UiLanguage, NumberFormatInfo> NumberFormats = new Dictionary<UiLanguage, NumberFormatInfo>(); public static UiLanguage Current { get { UiLanguage value = PluginConfig.Language.Value; if (value != UiLanguage.Auto) { return value; } if (Time.frameCount != _resolvedFrame) { _resolvedFrame = Time.frameCount; _resolved = FromGame(); } return _resolved; } } private static UiLanguage FromGame() { try { return FromCode(SemiFunc.LocaleGetCode()); } catch { return UiLanguage.English; } } private static UiLanguage FromCode(string code) { if (string.IsNullOrEmpty(code)) { return UiLanguage.English; } foreach (KeyValuePair<UiLanguage, string> code2 in Translations.Codes) { if (string.Equals(code2.Value, code, StringComparison.OrdinalIgnoreCase)) { return code2.Key; } } string b = code.Split('-')[0]; foreach (KeyValuePair<UiLanguage, string> code3 in Translations.Codes) { if (string.Equals(code3.Value.Split('-')[0], b, StringComparison.OrdinalIgnoreCase)) { return code3.Key; } } return UiLanguage.English; } public static string T(TextId id) { if (Translations.Table.TryGetValue(Current, out var value) && value.TryGetValue(id, out var value2)) { return value2; } if (!Translations.English.TryGetValue(id, out var value3)) { return id.ToString(); } return value3; } public static string T(TextId id, object arg) { try { return string.Format(T(id), arg); } catch (FormatException) { return string.Format(Translations.English[id], arg); } } private static NumberFormatInfo Numbers(UiLanguage language) { if (NumberFormats.TryGetValue(language, out var value)) { return value; } string text = ","; try { if (Translations.Codes.TryGetValue(language, out var value2)) { text = new CultureInfo(value2).NumberFormat.NumberGroupSeparator; } } catch { } if (string.IsNullOrEmpty(text) || char.IsWhiteSpace(text[0])) { text = " "; } value = new NumberFormatInfo { NumberGroupSeparator = text }; NumberFormats[language] = value; return value; } public static string Money(float value) { return "$" + Mathf.Abs(Mathf.Round(value)).ToString("N0", Numbers(Current)); } public static string Pieces(int count) { return T(TextId.Pieces, count); } public static string Reason(EndReason reason) { return reason switch { EndReason.Completed => T(TextId.LevelCompleted), EndReason.Failed => T(TextId.LevelFailed), EndReason.Left => T(TextId.LeftLevel), _ => T(TextId.CurrentState), }; } public static string Cause(LevelStats.CauseRow cause) { return cause.Kind switch { CauseKind.Player => cause.PlayerName, CauseKind.Monster => T(TextId.Monsters), CauseKind.Trap => T(TextId.Traps), _ => T(TextId.Environment), }; } } internal enum TextId { ValuablesInLevel, CosmeticBoxes, NoDataYet, HostOlderVersion, WaitingForHost, UpdatedAfterExtraction, StateAtStart, AtStart, Extracted, LeftInLevel, NoStatsYet, HostMissing, HostIncompatible, LevelStatistics, TotalInLevel, Destroyed, FoundNotExtracted, OfWhichInBox, NotFound, OfWhichSeen, Damaged, Restored, BonusNotCounted, Players, ColumnPlayer, ColumnFound, ColumnExtracted, ColumnDamaged, ExtractedNoCarrier, MonsterOrbs, Transferred, HideShow, Pieces, LevelCompleted, LevelFailed, LeftLevel, CurrentState, Monsters, Traps, Environment, TotalWithOrbs, Explanations, ExplTotalInLevel, ExplAtStart, ExplMonsterOrbs, ExplTotalWithOrbs, ExplTotalExtracted, ExplExtracted, ExplTransferred, ExplLeftInLevel, ExplDestroyed, ExplFoundNotExtracted, ExplInBox, ExplNotFound, ExplSeen, ExplDamaged, ExplRestored, ExplCosmetic, ExplPlayers, ExplNoCarrier, ExplBonus } internal static class Translations { public static readonly Dictionary<UiLanguage, string> Codes = new Dictionary<UiLanguage, string> { [UiLanguage.English] = "en-US", [UiLanguage.Czech] = "cs-CZ", [UiLanguage.ChineseSimplified] = "zh-CN", [UiLanguage.ChineseTraditional] = "zh-TW", [UiLanguage.Danish] = "da-DK", [UiLanguage.Finnish] = "fi-FI", [UiLanguage.French] = "fr-FR", [UiLanguage.German] = "de-DE", [UiLanguage.Italian] = "it-IT", [UiLanguage.Japanese] = "ja-JP", [UiLanguage.Korean] = "ko-KR", [UiLanguage.Polish] = "pl-PL", [UiLanguage.PortugueseBrazil] = "pt-BR", [UiLanguage.PortuguesePortugal] = "pt-PT", [UiLanguage.Russian] = "ru-RU", [UiLanguage.Spanish] = "es-ES", [UiLanguage.Swedish] = "sv-SE", [UiLanguage.Thai] = "th-TH", [UiLanguage.Turkish] = "tr-TR", [UiLanguage.Ukrainian] = "uk-UA" }; public static readonly Dictionary<TextId, string> English = new Dictionary<TextId, string> { [TextId.ValuablesInLevel] = "Valuables in this level", [TextId.CosmeticBoxes] = "Cosmetic boxes", [TextId.NoDataYet] = "No data yet.", [TextId.HostOlderVersion] = "The host has an older ItemStats ({0}) and sends statistics after the level.", [TextId.WaitingForHost] = "Waiting for data from the host.", [TextId.UpdatedAfterExtraction] = "Updated after every extraction", [TextId.StateAtStart] = "State at the start of the level", [TextId.AtStart] = "At the start", [TextId.Extracted] = "Extracted", [TextId.LeftInLevel] = "Left in level", [TextId.NoStatsYet] = "No statistics yet. Finish a level.", [TextId.HostMissing] = "The host does not have ItemStats. Statistics are only collected by the host, so none will be shown.", [TextId.HostIncompatible] = "The host has a different ItemStats version ({0}).", [TextId.LevelStatistics] = "Level statistics", [TextId.TotalInLevel] = "Total in level", [TextId.Destroyed] = "Destroyed", [TextId.FoundNotExtracted] = "Found, not extracted", [TextId.OfWhichInBox] = "of which in a valuable box", [TextId.NotFound] = "Not found", [TextId.OfWhichSeen] = "of which seen", [TextId.Damaged] = "Damaged", [TextId.Restored] = "restored", [TextId.BonusNotCounted] = "Bonus (not counted)", [TextId.Players] = "Players", [TextId.ColumnPlayer] = "Player", [TextId.ColumnFound] = "Found", [TextId.ColumnExtracted] = "Extracted", [TextId.ColumnDamaged] = "Damaged", [TextId.ExtractedNoCarrier] = "extracted, no carrier", [TextId.MonsterOrbs] = "Monster orbs", [TextId.Transferred] = "Transferred", [TextId.HideShow] = "hide / show", [TextId.Pieces] = "{0} pcs", [TextId.LevelCompleted] = "Level completed", [TextId.LevelFailed] = "Level failed", [TextId.LeftLevel] = "Left the level", [TextId.CurrentState] = "Current state", [TextId.Monsters] = "Monsters", [TextId.Traps] = "Traps", [TextId.Environment] = "Environment", [TextId.TotalWithOrbs] = "Total", [TextId.Explanations] = "explanations", [TextId.ExplTotalInLevel] = "All valuables that spawned in the level, at their original value.", [TextId.ExplAtStart] = "Valuables in the level when it started, at their original value.", [TextId.ExplMonsterOrbs] = "Orbs dropped by killed monsters. Tracked separately, not part of the other rows.", [TextId.ExplTotalWithOrbs] = "The row above plus the monster orbs.", [TextId.ExplTotalExtracted] = "Everything extracted: valuables, monster orbs and contents carried over from the previous level.", [TextId.ExplExtracted] = "Sold at an extraction point, at the value they had when sold.", [TextId.ExplTransferred] = "Contents carried over from the previous level and extracted in this one (item count unknown). Not part of the level's total.", [TextId.ExplLeftInLevel] = "Not extracted yet, at their current value.", [TextId.ExplDestroyed] = "Broke apart or fell out of the map, at their original value.", [TextId.ExplFoundNotExtracted] = "Someone picked them up at least once, but they were not extracted. Current value.", [TextId.ExplInBox] = "Absorbed into a valuable box that was not extracted.", [TextId.ExplNotFound] = "Nobody picked them up even once. Current value.", [TextId.ExplSeen] = "The game marked them as discovered (someone saw them), but nobody picked them up.", [TextId.ExplDamaged] = "Items that lost at least $1 (extracted and destroyed ones included) and the total value lost. The cause is inferred from what the item hit and who held or threw it.", [TextId.ExplRestored] = "Value that came back to damaged items.", [TextId.ExplCosmetic] = "Boxes with cosmetics. They have no $ value, only counts.", [TextId.ExplPlayers] = "Found: items the player picked up first. Extracted: value of extracted items, split equally among everyone who held them. Damaged: losses the player caused.", [TextId.ExplNoCarrier] = "Extracted items nobody had held (e.g. only pushed or pulled in a cart).", [TextId.ExplBonus] = "Items that spawn or gain value during the level (tax refund, etc.)." }; public static readonly Dictionary<UiLanguage, Dictionary<TextId, string>> Table = new Dictionary<UiLanguage, Dictionary<TextId, string>> { [UiLanguage.English] = English, [UiLanguage.Czech] = new Dictionary<TextId, string> { [TextId.ValuablesInLevel] = "Cennosti v tomto levelu", [TextId.CosmeticBoxes] = "Krabice se skiny", [TextId.NoDataYet] = "Zatím nejsou data.", [TextId.HostOlderVersion] = "Host má starší ItemStats ({0}), statistiky pošle po konci levelu.", [TextId.WaitingForHost] = "Čekám na data od hosta.", [TextId.UpdatedAfterExtraction] = "Aktualizuje se po každé extrakci", [TextId.StateAtStart] = "Stav na začátku levelu", [TextId.AtStart] = "Na začátku", [TextId.Extracted] = "Extrahováno", [TextId.LeftInLevel] = "Zbývá v levelu", [TextId.NoStatsYet] = "Zatím nejsou žádné statistiky. Dohraj level.", [TextId.HostMissing] = "Host nemá ItemStats. Statistiky sbírá jen host, takže se žádné nezobrazí.", [TextId.HostIncompatible] = "Host má jinou verzi ItemStats ({0}).", [TextId.LevelStatistics] = "Statistiky levelu", [TextId.TotalInLevel] = "Celkem v levelu", [TextId.Destroyed] = "Zničeno", [TextId.FoundNotExtracted] = "Nalezeno, neextrahováno", [TextId.OfWhichInBox] = "z toho v krabici na cennosti", [TextId.NotFound] = "Nenalezeno", [TextId.OfWhichSeen] = "z toho viděno", [TextId.Damaged] = "Poškozeno", [TextId.Restored] = "vráceno", [TextId.BonusNotCounted] = "Bonusové (nepočítají se)", [TextId.Players] = "Hráči", [TextId.ColumnPlayer] = "Hráč", [TextId.ColumnFound] = "Našel", [TextId.ColumnExtracted] = "Extrahoval", [TextId.ColumnDamaged] = "Poškodil", [TextId.ExtractedNoCarrier] = "extrahováno bez držitele", [TextId.MonsterOrbs] = "Koule z monster", [TextId.Transferred] = "Přeneseno", [TextId.HideShow] = "skrýt / zobrazit", [TextId.Pieces] = "{0} ks", [TextId.LevelCompleted] = "Level dokončen", [TextId.LevelFailed] = "Level prohrán", [TextId.LeftLevel] = "Odchod z levelu", [TextId.CurrentState] = "Aktuální stav", [TextId.Monsters] = "Monstra", [TextId.Traps] = "Pasti", [TextId.Environment] = "Prostředí", [TextId.TotalWithOrbs] = "Celkem", [TextId.Explanations] = "vysvětlivky", [TextId.ExplTotalInLevel] = "Všechny cennosti, které se v levelu objevily, v původní hodnotě.", [TextId.ExplAtStart] = "Cennosti v levelu na jeho začátku, v původní hodnotě.", [TextId.ExplMonsterOrbs] = "Koule, které upustila zabitá monstra. Počítají se zvlášť, v ostatních řádcích nejsou.", [TextId.ExplTotalWithOrbs] = "Řádek nad tím plus koule z monster.", [TextId.ExplTotalExtracted] = "Všechno extrahované: cennosti, koule z monster a obsah přenesený z minulého levelu.", [TextId.ExplExtracted] = "Prodáno na extrakčním místě, v hodnotě v okamžiku prodeje.", [TextId.ExplTransferred] = "Obsah přenesený z minulého levelu a extrahovaný v tomto (počet kusů není známý). Do celku levelu se nepočítá.", [TextId.ExplLeftInLevel] = "Zatím neextrahováno, v aktuální hodnotě.", [TextId.ExplDestroyed] = "Rozbilo se nebo spadlo mimo mapu, v původní hodnotě.", [TextId.ExplFoundNotExtracted] = "Někdo je aspoň jednou zvedl, ale neextrahovaly se. Aktuální hodnota.", [TextId.ExplInBox] = "Pohlceno krabicí na cennosti, která se neextrahovala.", [TextId.ExplNotFound] = "Nikdo je ani jednou nezvedl. Aktuální hodnota.", [TextId.ExplSeen] = "Hra je označila jako objevené (někdo je viděl), ale nikdo je nezvedl.", [TextId.ExplDamaged] = "Předměty, které ztratily aspoň $1 (včetně extrahovaných a zničených), a celková ztráta. Příčinu mod odhaduje podle toho, do čeho předmět narazil a kdo ho držel nebo hodil.", [TextId.ExplRestored] = "Hodnota, která se poškozeným předmětům vrátila.", [TextId.ExplCosmetic] = "Krabice se skiny. Nemají hodnotu v $, jen počty.", [TextId.ExplPlayers] = "Našel: předměty, které hráč zvedl jako první. Extrahoval: hodnota extrahovaných předmětů rozdělená rovným dílem mezi všechny, kdo je drželi. Poškodil: ztráty, které hráč způsobil.", [TextId.ExplNoCarrier] = "Extrahované předměty, které nikdo nedržel (např. jen tlačené nebo tažené ve vozíku).", [TextId.ExplBonus] = "Předměty, které se objeví nebo získají hodnotu během levelu (vrácení daně apod.)." }, [UiLanguage.German] = new Dictionary<TextId, string> { [TextId.ValuablesInLevel] = "Wertsachen in diesem Level", [TextId.CosmeticBoxes] = "Kosmetikboxen", [TextId.NoDataYet] = "Noch keine Daten.", [TextId.HostOlderVersion] = "Der Host hat eine ältere ItemStats-Version ({0}) und sendet die Statistiken erst nach dem Level.", [TextId.WaitingForHost] = "Warte auf Daten vom Host.", [TextId.UpdatedAfterExtraction] = "Wird nach jeder Extraktion aktualisiert", [TextId.StateAtStart] = "Stand zu Beginn des Levels", [TextId.AtStart] = "Zu Beginn", [TextId.Extracted] = "Extrahiert", [TextId.LeftInLevel] = "Noch im Level", [TextId.NoStatsYet] = "Noch keine Statistiken. Schließe ein Level ab.", [TextId.HostMissing] = "Der Host hat ItemStats nicht. Nur der Host sammelt Statistiken, daher wird nichts angezeigt.", [TextId.HostIncompatible] = "Der Host hat eine andere ItemStats-Version ({0}).", [TextId.LevelStatistics] = "Level-Statistiken", [TextId.TotalInLevel] = "Gesamt im Level", [TextId.Destroyed] = "Zerstört", [TextId.FoundNotExtracted] = "Gefunden, nicht extrahiert", [TextId.OfWhichInBox] = "davon in einer Wertsachenbox", [TextId.NotFound] = "Nicht gefunden", [TextId.OfWhichSeen] = "davon gesehen", [TextId.Damaged] = "Beschädigt", [TextId.Restored] = "wiederhergestellt", [TextId.BonusNotCounted] = "Bonus (nicht gezählt)", [TextId.Players] = "Spieler", [TextId.ColumnPlayer] = "Spieler", [TextId.ColumnFound] = "Gefunden", [TextId.ColumnExtracted] = "Extrahiert", [TextId.ColumnDamaged] = "Schaden", [TextId.ExtractedNoCarrier] = "extrahiert, ohne Träger", [TextId.MonsterOrbs] = "Monster-Orbs", [TextId.Transferred] = "Übertragen", [TextId.HideShow] = "ausblenden / einblenden", [TextId.Pieces] = "{0} Stk.", [TextId.LevelCompleted] = "Level geschafft", [TextId.LevelFailed] = "Level gescheitert", [TextId.LeftLevel] = "Level verlassen", [TextId.CurrentState] = "Aktueller Stand", [TextId.Monsters] = "Monster", [TextId.Traps] = "Fallen", [TextId.Environment] = "Umgebung", [TextId.TotalWithOrbs] = "Gesamt", [TextId.Explanations] = "Erklärungen" }, [UiLanguage.French] = new Dictionary<TextId, string> { [TextId.ValuablesInLevel] = "Objets de valeur dans ce niveau", [TextId.CosmeticBoxes] = "Boîtes cosmétiques", [TextId.NoDataYet] = "Pas encore de données.", [TextId.HostOlderVersion] = "L'hôte a une ancienne version d'ItemStats ({0}) et envoie les statistiques après le niveau.", [TextId.WaitingForHost] = "En attente des données de l'hôte.", [TextId.UpdatedAfterExtraction] = "Mis à jour après chaque extraction", [TextId.StateAtStart] = "État au début du niveau", [TextId.AtStart] = "Au début", [TextId.Extracted] = "Extrait", [TextId.LeftInLevel] = "Reste dans le niveau", [TextId.NoStatsYet] = "Pas encore de statistiques. Terminez un niveau.", [TextId.HostMissing] = "L'hôte n'a pas ItemStats. Seul l'hôte collecte les statistiques, rien ne sera donc affiché.", [TextId.HostIncompatible] = "L'hôte a une autre version d'ItemStats ({0}).", [TextId.LevelStatistics] = "Statistiques du niveau", [TextId.TotalInLevel] = "Total du niveau", [TextId.Destroyed] = "Détruit", [TextId.FoundNotExtracted] = "Trouvé, non extrait", [TextId.OfWhichInBox] = "dont dans une boîte à objets de valeur", [TextId.NotFound] = "Non trouvé", [TextId.OfWhichSeen] = "dont vus", [TextId.Damaged] = "Endommagé", [TextId.Restored] = "restauré", [TextId.BonusNotCounted] = "Bonus (non comptés)", [TextId.Players] = "Joueurs", [TextId.ColumnPlayer] = "Joueur", [TextId.ColumnFound] = "Trouvés", [TextId.ColumnExtracted] = "Extrait", [TextId.ColumnDamaged] = "Dégâts", [TextId.ExtractedNoCarrier] = "extrait, sans porteur", [TextId.MonsterOrbs] = "Orbes de monstres", [TextId.Transferred] = "Transféré", [TextId.HideShow] = "masquer / afficher", [TextId.Pieces] = "{0} pcs", [TextId.LevelCompleted] = "Niveau terminé", [TextId.LevelFailed] = "Niveau échoué", [TextId.LeftLevel] = "Niveau quitté", [TextId.CurrentState] = "État actuel", [TextId.Monsters] = "Monstres", [TextId.Traps] = "Pièges", [TextId.Environment] = "Environnement", [TextId.TotalWithOrbs] = "Total", [TextId.Explanations] = "explications" }, [UiLanguage.Spanish] = new Dictionary<TextId, string> { [TextId.ValuablesInLevel] = "Objetos de valor en este nivel", [TextId.CosmeticBoxes] = "Cajas cosméticas", [TextId.NoDataYet] = "Aún no hay datos.", [TextId.HostOlderVersion] = "El anfitrión tiene una versión antigua de ItemStats ({0}) y envía las estadísticas al final del nivel.", [TextId.WaitingForHost] = "Esperando datos del anfitrión.", [TextId.UpdatedAfterExtraction] = "Se actualiza tras cada extracción", [TextId.StateAtStart] = "Estado al inicio del nivel", [TextId.AtStart] = "Al inicio", [TextId.Extracted] = "Extraído", [TextId.LeftInLevel] = "Queda en el nivel", [TextId.NoStatsYet] = "Aún no hay estadísticas. Termina un nivel.", [TextId.HostMissing] = "El anfitrión no tiene ItemStats. Solo el anfitrión recopila estadísticas, así que no se mostrará nada.", [TextId.HostIncompatible] = "El anfitrión tiene otra versión de ItemStats ({0}).", [TextId.LevelStatistics] = "Estadísticas del nivel", [TextId.TotalInLevel] = "Total en el nivel", [TextId.Destroyed] = "Destruido", [TextId.FoundNotExtracted] = "Encontrado, no extraído", [TextId.OfWhichInBox] = "de ello en una caja de objetos de valor", [TextId.NotFound] = "No encontrado", [TextId.OfWhichSeen] = "de ello vistos", [TextId.Damaged] = "Dañado", [TextId.Restored] = "restaurado", [TextId.BonusNotCounted] = "Bonus (no cuentan)", [TextId.Players] = "Jugadores", [TextId.ColumnPlayer] = "Jugador", [TextId.ColumnFound] = "Encontró", [TextId.ColumnExtracted] = "Extrajo", [TextId.ColumnDamaged] = "Dañó", [TextId.ExtractedNoCarrier] = "extraído, sin portador", [TextId.MonsterOrbs] = "Orbes de monstruos", [TextId.Transferred] = "Transferido", [TextId.HideShow] = "ocultar / mostrar", [TextId.Pieces] = "{0} uds.", [TextId.LevelCompleted] = "Nivel completado", [TextId.LevelFailed] = "Nivel fallido", [TextId.LeftLevel] = "Nivel abandonado", [TextId.CurrentState] = "Estado actual", [TextId.Monsters] = "Monstruos", [TextId.Traps] = "Trampas", [TextId.Environment] = "Entorno", [TextId.TotalWithOrbs] = "Total", [TextId.Explanations] = "explicaciones" }, [UiLanguage.Italian] = new Dictionary<TextId, string> { [TextId.ValuablesInLevel] = "Oggetti di valore in questo livello", [TextId.CosmeticBoxes] = "Scatole cosmetiche", [TextId.NoDataYet] = "Ancora nessun dato.", [TextId.HostOlderVersion] = "L'host ha una versione precedente di ItemStats ({0}) e invia le statistiche dopo il livello.", [TextId.WaitingForHost] = "In attesa dei dati dall'host.", [TextId.UpdatedAfterExtraction] = "Aggiornato dopo ogni estrazione", [TextId.StateAtStart] = "Stato all'inizio del livello", [TextId.AtStart] = "All'inizio", [TextId.Extracted] = "Estratto", [TextId.LeftInLevel] = "Rimasto nel livello", [TextId.NoStatsYet] = "Ancora nessuna statistica. Completa un livello.", [TextId.HostMissing] = "L'host non ha ItemStats. Solo l'host raccoglie le statistiche, quindi non verrà mostrato nulla.", [TextId.HostIncompatible] = "L'host ha un'altra versione di ItemStats ({0}).", [TextId.LevelStatistics] = "Statistiche del livello", [TextId.TotalInLevel] = "Totale nel livello", [TextId.Destroyed] = "Distrutto", [TextId.FoundNotExtracted] = "Trovato, non estratto", [TextId.OfWhichInBox] = "di cui in una scatola per oggetti di valore", [TextId.NotFound] = "Non trovato", [TextId.OfWhichSeen] = "di cui visti", [TextId.Damaged] = "Danneggiato", [TextId.Restored] = "ripristinato", [TextId.BonusNotCounted] = "Bonus (non conteggiati)", [TextId.Players] = "Giocatori", [TextId.ColumnPlayer] = "Giocatore", [TextId.ColumnFound] = "Trovati", [TextId.ColumnExtracted] = "Estratto", [TextId.ColumnDamaged] = "Danni", [TextId.ExtractedNoCarrier] = "estratto, senza portatore", [TextId.MonsterOrbs] = "Sfere dei mostri", [TextId.Transferred] = "Trasferito", [TextId.HideShow] = "nascondi / mostra", [TextId.Pieces] = "{0} pz", [TextId.LevelCompleted] = "Livello completato", [TextId.LevelFailed] = "Livello fallito", [TextId.LeftLevel] = "Livello abbandonato", [TextId.CurrentState] = "Stato attuale", [TextId.Monsters] = "Mostri", [TextId.Traps] = "Trappole", [TextId.Environment] = "Ambiente", [TextId.TotalWithOrbs] = "Totale", [TextId.Explanations] = "spiegazioni" }, [UiLanguage.PortugueseBrazil] = new Dictionary<TextId, string> { [TextId.ValuablesInLevel] = "Objetos de valor neste nível", [TextId.CosmeticBoxes] = "Caixas de cosméticos", [TextId.NoDataYet] = "Ainda não há dados.", [TextId.HostOlderVersion] = "O host tem uma versão antiga do ItemStats ({0}) e envia as estatísticas após o nível.", [TextId.WaitingForHost] = "Aguardando dados do host.", [TextId.UpdatedAfterExtraction] = "Atualizado após cada extração", [TextId.StateAtStart] = "Estado no início do nível", [TextId.AtStart] = "No início", [TextId.Extracted] = "Extraído", [TextId.LeftInLevel] = "Resta no nível", [TextId.NoStatsYet] = "Ainda não há estatísticas. Termine um nível.", [TextId.HostMissing] = "O host não tem o ItemStats. Só o host coleta estatísticas, então nada será exibido.", [TextId.HostIncompatible] = "O host tem outra versão do ItemStats ({0}).", [TextId.LevelStatistics] = "Estatísticas do nível", [TextId.TotalInLevel] = "Total no nível", [TextId.Destroyed] = "Destruído", [TextId.FoundNotExtracted] = "Encontrado, não extraído", [TextId.OfWhichInBox] = "dos quais em uma caixa de objetos de valor", [TextId.NotFound] = "Não encontrado", [TextId.OfWhichSeen] = "dos quais vistos", [TextId.Damaged] = "Danificado", [TextId.Restored] = "restaurado", [TextId.BonusNotCounted] = "Bônus (não contam)", [TextId.Players] = "Jogadores", [TextId.ColumnPlayer] = "Jogador", [TextId.ColumnFound] = "Achou", [TextId.ColumnExtracted] = "Extraiu", [TextId.ColumnDamaged] = "Danificou", [TextId.ExtractedNoCarrier] = "extraído, sem portador", [TextId.MonsterOrbs] = "Orbes de monstros", [TextId.Transferred] = "Transferido", [TextId.HideShow] = "ocultar / mostrar", [TextId.Pieces] = "{0} un.", [TextId.LevelCompleted] = "Nível concluído", [TextId.LevelFailed] = "Nível fracassado", [TextId.LeftLevel] = "Saiu do nível", [TextId.CurrentState] = "Estado atual", [TextId.Monsters] = "Monstros", [TextId.Traps] = "Armadilhas", [TextId.Environment] = "Ambiente", [TextId.TotalWithOrbs] = "Total", [TextId.Explanations] = "explicações" }, [UiLanguage.PortuguesePortugal] = new Dictionary<TextId, string> { [TextId.ValuablesInLevel] = "Objetos de valor neste nível", [TextId.CosmeticBoxes] = "Caixas de cosméticos", [TextId.NoDataYet] = "Ainda não existem dados.", [TextId.HostOlderVersion] = "O anfitrião tem uma versão antiga do ItemStats ({0}) e envia as estatísticas no fim do nível.", [TextId.WaitingForHost] = "A aguardar dados do anfitrião.", [TextId.UpdatedAfterExtraction] = "Atualizado após cada extração", [TextId.StateAtStart] = "Estado no início do nível", [TextId.AtStart] = "No início", [TextId.Extracted] = "Extraído", [TextId.LeftInLevel] = "Resta no nível", [TextId.NoStatsYet] = "Ainda não existem estatísticas. Termina um nível.", [TextId.HostMissing] = "O anfitrião não tem o ItemStats. Só o anfitrião recolhe estatísticas, por isso nada será mostrado.", [TextId.HostIncompatible] = "O anfitrião tem outra versão do ItemStats ({0}).", [TextId.LevelStatistics] = "Estatísticas do nível", [TextId.TotalInLevel] = "Total no nível", [TextId.Destroyed] = "Destruído", [TextId.FoundNotExtracted] = "Encontrado, não extraído", [TextId.OfWhichInBox] = "dos quais numa caixa de objetos de valor", [TextId.NotFound] = "Não encontrado", [TextId.OfWhichSeen] = "dos quais vistos", [TextId.Damaged] = "Danificado", [TextId.Restored] = "restaurado", [TextId.BonusNotCounted] = "Bónus (não contam)", [TextId.Players] = "Jogadores", [TextId.ColumnPlayer] = "Jogador", [TextId.ColumnFound] = "Encontrou", [TextId.ColumnExtracted] = "Extraiu", [TextId.ColumnDamaged] = "Danificou", [TextId.ExtractedNoCarrier] = "extraído, sem portador", [TextId.MonsterOrbs] = "Orbes de monstros", [TextId.Transferred] = "Transferido", [TextId.HideShow] = "ocultar / mostrar", [TextId.Pieces] = "{0} un.", [TextId.LevelCompleted] = "Nível concluído", [TextId.LevelFailed] = "Nível falhado", [TextId.LeftLevel] = "Saída do nível", [TextId.CurrentState] = "Estado atual", [TextId.Monsters] = "Monstros", [TextId.Traps] = "Armadilhas", [TextId.Environment] = "Ambiente", [TextId.TotalWithOrbs] = "Total", [TextId.Explanations] = "explicações" }, [UiLanguage.Polish] = new Dictionary<TextId, string> { [TextId.ValuablesInLevel] = "Kosztowności na tym poziomie", [TextId.CosmeticBoxes] = "Skrzynki kosmetyczne", [TextId.NoDataYet] = "Brak danych.", [TextId.HostOlderVersion] = "Host ma starszą wersję ItemStats ({0}) i wysyła statystyki po zakończeniu poziomu.", [TextId.WaitingForHost] = "Czekam na dane od hosta.", [TextId.UpdatedAfterExtraction] = "Aktualizowane po każdej ekstrakcji", [TextId.StateAtStart] = "Stan na początku poziomu", [TextId.AtStart] = "Na początku", [TextId.Extracted] = "Wyniesiono", [TextId.LeftInLevel] = "Zostało na poziomie", [TextId.NoStatsYet] = "Brak statystyk. Ukończ poziom.", [TextId.HostMissing] = "Host nie ma ItemStats. Statystyki zbiera tylko host, więc nic się nie wyświetli.", [TextId.HostIncompatible] = "Host ma inną wersję ItemStats ({0}).", [TextId.LevelStatistics] = "Statystyki poziomu", [TextId.TotalInLevel] = "Łącznie na poziomie", [TextId.Destroyed] = "Zniszczono", [TextId.FoundNotExtracted] = "Znaleziono, nie wyniesiono", [TextId.OfWhichInBox] = "w tym w skrzynce na kosztowności", [TextId.NotFound] = "Nie znaleziono", [TextId.OfWhichSeen] = "w tym widziane", [TextId.Damaged] = "Uszkodzono", [TextId.Restored] = "przywrócono", [TextId.BonusNotCounted] = "Bonusowe (nie liczą się)", [TextId.Players] = "Gracze", [TextId.ColumnPlayer] = "Gracz", [TextId.ColumnFound] = "Znalazł", [TextId.ColumnExtracted] = "Wyniósł", [TextId.ColumnDamaged] = "Uszkodził", [TextId.ExtractedNoCarrier] = "wyniesiono bez nosiciela", [TextId.MonsterOrbs] = "Kule z potworów", [TextId.Transferred] = "Przeniesiono", [TextId.HideShow] = "ukryj / pokaż", [TextId.Pieces] = "{0} szt.", [TextId.LevelCompleted] = "Poziom ukończony", [TextId.LevelFailed] = "Poziom przegrany", [TextId.LeftLevel] = "Opuszczono poziom", [TextId.CurrentState] = "Stan bieżący", [TextId.Monsters] = "Potwory", [TextId.Traps] = "Pułapki", [TextId.Environment] = "Otoczenie", [TextId.TotalWithOrbs] = "Razem", [TextId.Explanations] = "objaśnienia" }, [UiLanguage.Russian] = new Dictionary<TextId, string> { [TextId.ValuablesInLevel] = "Ценности на этом уровне", [TextId.CosmeticBoxes] = "Косметические коробки", [TextId.NoDataYet] = "Пока нет данных.", [TextId.HostOlderVersion] = "У хоста старая версия ItemStats ({0}), статистика придёт после уровня.", [TextId.WaitingForHost] = "Ожидание данных от хоста.", [TextId.UpdatedAfterExtraction] = "Обновляется после каждого выноса", [TextId.StateAtStart] = "Состояние в начале уровня", [TextId.AtStart] = "В начале", [TextId.Extracted] = "Вынесено", [TextId.LeftInLevel] = "Осталось на уровне", [TextId.NoStatsYet] = "Статистики пока нет. Пройдите уровень.", [TextId.HostMissing] = "У хоста нет ItemStats. Статистику собирает только хост, поэтому она не будет показана.", [TextId.HostIncompatible] = "У хоста другая версия ItemStats ({0}).", [TextId.LevelStatistics] = "Статистика уровня", [TextId.TotalInLevel] = "Всего на уровне", [TextId.Destroyed] = "Уничтожено", [TextId.FoundNotExtracted] = "Найдено, не вынесено", [TextId.OfWhichInBox] = "из них в коробке для ценностей", [TextId.NotFound] = "Не найдено", [TextId.OfWhichSeen] = "из них замечено", [TextId.Damaged] = "Повреждено", [TextId.Restored] = "восстановлено", [TextId.BonusNotCounted] = "Бонусные (не учитываются)", [TextId.Players] = "Игроки", [TextId.ColumnPlayer] = "Игрок", [TextId.ColumnFound] = "Нашёл", [TextId.ColumnExtracted] = "Вынес", [TextId.ColumnDamaged] = "Повредил", [TextId.ExtractedNoCarrier] = "вынесено без носильщика", [TextId.MonsterOrbs] = "Сферы монстров", [TextId.Transferred] = "Перенесено", [TextId.HideShow] = "скрыть / показать", [TextId.Pieces] = "{0} шт.", [TextId.LevelCompleted] = "Уровень пройден", [TextId.LevelFailed] = "Уровень провален", [TextId.LeftLevel] = "Уход с уровня", [TextId.CurrentState] = "Текущее состояние", [TextId.Monsters] = "Монстры", [TextId.Traps] = "Ловушки", [TextId.Environment] = "Окружение", [TextId.TotalWithOrbs] = "Итого", [TextId.Explanations] = "пояснения" }, [UiLanguage.Ukrainian] = new Dictionary<TextId, string> { [TextId.ValuablesInLevel] = "Цінності на цьому рівні", [TextId.CosmeticBoxes] = "Косметичні коробки", [TextId.NoDataYet] = "Даних поки немає.", [TextId.HostOlderVersion] = "Хост має старішу версію ItemStats ({0}), статистика надійде після рівня.", [TextId.WaitingForHost] = "Очікування даних від хоста.", [TextId.UpdatedAfterExtraction] = "Оновлюється після кожного винесення", [TextId.StateAtStart] = "Стан на початку рівня", [TextId.AtStart] = "На початку", [TextId.Extracted] = "Винесено", [TextId.LeftInLevel] = "Залишилось на рівні", [TextId.NoStatsYet] = "Статистики поки немає. Пройдіть рівень.", [TextId.HostMissing] = "Хост не має ItemStats. Статистику збирає лише хост, тому нічого не буде показано.", [TextId.HostIncompatible] = "Хост має іншу версію ItemStats ({0}).", [TextId.LevelStatistics] = "Статистика рівня", [TextId.TotalInLevel] = "Усього на рівні", [TextId.Destroyed] = "Знищено", [TextId.FoundNotExtracted] = "Знайдено, не винесено", [TextId.OfWhichInBox] = "з них у коробці для цінностей", [TextId.NotFound] = "Не знайдено", [TextId.OfWhichSeen] = "з них помічено", [TextId.Damaged] = "Пошкоджено", [TextId.Restored] = "відновлено", [TextId.BonusNotCounted] = "Бонусні (не враховуються)", [TextId.Players] = "Гравці", [TextId.ColumnPlayer] = "Гравець", [TextId.ColumnFound] = "Знайшов", [TextId.ColumnExtracted] = "Виніс", [TextId.ColumnDamaged] = "Пошкодив", [TextId.ExtractedNoCarrier] = "винесено без носія", [TextId.MonsterOrbs] = "Сфери монстрів", [TextId.Transferred] = "Перенесено", [TextId.HideShow] = "сховати / показати", [TextId.Pieces] = "{0} шт.", [TextId.LevelCompleted] = "Рівень пройдено", [TextId.LevelFailed] = "Рівень провалено", [TextId.LeftLevel] = "Вихід з рівня", [TextId.CurrentState] = "Поточний стан", [TextId.Monsters] = "Монстри", [TextId.Traps] = "Пастки", [TextId.Environment] = "Довкілля", [TextId.TotalWithOrbs] = "Разом", [TextId.Explanations] = "пояснення" }, [UiLanguage.Danish] = new Dictionary<TextId, string> { [TextId.ValuablesInLevel] = "Værdigenstande i denne bane", [TextId.CosmeticBoxes] = "Kosmetikkasser", [TextId.NoDataYet] = "Ingen data endnu.", [TextId.HostOlderVersion] = "Værten har en ældre ItemStats ({0}) og sender statistik efter banen.", [TextId.WaitingForHost] = "Venter på data fra værten.", [TextId.UpdatedAfterExtraction] = "Opdateres efter hver ekstraktion", [TextId.StateAtStart] = "Status ved banens start", [TextId.AtStart] = "Ved start", [TextId.Extracted] = "Ekstraheret", [TextId.LeftInLevel] = "Tilbage i banen", [TextId.NoStatsYet] = "Ingen statistik endnu. Gennemfør en bane.", [TextId.HostMissing] = "Værten har ikke ItemStats. Kun værten indsamler statistik, så intet bliver vist.", [TextId.HostIncompatible] = "Værten har en anden ItemStats-version ({0}).", [TextId.LevelStatistics] = "Banestatistik", [TextId.TotalInLevel] = "I alt i banen", [TextId.Destroyed] = "Ødelagt", [TextId.FoundNotExtracted] = "Fundet, ikke ekstraheret", [TextId.OfWhichInBox] = "heraf i en værdikasse", [TextId.NotFound] = "Ikke fundet", [TextId.OfWhichSeen] = "heraf set", [TextId.Damaged] = "Beskadiget", [TextId.Restored] = "genoprettet", [TextId.BonusNotCounted] = "Bonus (tælles ikke med)", [TextId.Players] = "Spillere", [TextId.ColumnPlayer] = "Spiller", [TextId.ColumnFound] = "Fundet", [TextId.ColumnExtracted] = "Ekstraheret", [TextId.ColumnDamaged] = "Skade", [TextId.ExtractedNoCarrier] = "ekstraheret, uden bærer", [TextId.MonsterOrbs] = "Monsterkugler", [TextId.Transferred] = "Overført", [TextId.HideShow] = "skjul / vis", [TextId.Pieces] = "{0} stk.", [TextId.LevelCompleted] = "Bane gennemført", [TextId.LevelFailed] = "Bane mislykkedes", [TextId.LeftLevel] = "Forlod banen", [TextId.CurrentState] = "Aktuel status", [TextId.Monsters] = "Monstre", [TextId.Traps] = "Fælder", [TextId.Environment] = "Omgivelser", [TextId.TotalWithOrbs] = "I alt", [TextId.Explanations] = "forklaringer" }, [UiLanguage.Swedish] = new Dictionary<TextId, string> { [TextId.ValuablesInLevel] = "Värdeföremål i den här nivån", [TextId.CosmeticBoxes] = "Kosmetiklådor", [TextId.NoDataYet] = "Inga data än.", [TextId.HostOlderVersion] = "Värden har en äldre ItemStats ({0}) och skickar statistik efter nivån.", [TextId.WaitingForHost] = "Väntar på data från värden.", [TextId.UpdatedAfterExtraction] = "Uppdateras efter varje extraktion", [TextId.StateAtStart] = "Läge vid nivåns start", [TextId.AtStart] = "Vid start", [TextId.Extracted] = "Extraherat", [TextId.LeftInLevel] = "Kvar i nivån", [TextId.NoStatsYet] = "Ingen statistik än. Klara en nivå.", [TextId.HostMissing] = "Värden har inte ItemStats. Bara värden samlar statistik, så inget visas.", [TextId.HostIncompatible] = "Värden har en annan ItemStats-version ({0}).", [TextId.LevelStatistics] = "Nivåstatistik", [TextId.TotalInLevel] = "Totalt i nivån", [TextId.Destroyed] = "Förstört", [TextId.FoundNotExtracted] = "Hittat, inte extraherat", [TextId.OfWhichInBox] = "varav i en värdelåda", [TextId.NotFound] = "Inte hittat", [TextId.OfWhichSeen] = "varav sedda", [TextId.Damaged] = "Skadat", [TextId.Restored] = "återställt", [TextId.BonusNotCounted] = "Bonus (räknas inte)", [TextId.Players] = "Spelare", [TextId.ColumnPlayer] = "Spelare", [TextId.ColumnFound] = "Hittade", [TextId.ColumnExtracted] = "Extraherade", [TextId.ColumnDamaged] = "Skadade", [TextId.ExtractedNoCarrier] = "extraherat, ingen bärare", [TextId.MonsterOrbs] = "Monsterklot", [TextId.Transferred] = "Överfört", [TextId.HideShow] = "dölj / visa", [TextId.Pieces] = "{0} st", [TextId.LevelCompleted] = "Nivå klarad", [TextId.LevelFailed] = "Nivå misslyckad", [TextId.LeftLevel] = "Lämnade nivån", [TextId.CurrentState] = "Aktuellt läge", [TextId.Monsters] = "Monster", [TextId.Traps] = "Fällor", [TextId.Environment] = "Omgivning", [TextId.TotalWithOrbs] = "Totalt", [TextId.Explanations] = "förklaringar" }, [UiLanguage.Finnish] = new Dictionary<TextId, string> { [TextId.ValuablesInLevel] = "Arvoesineet tässä tasossa", [TextId.CosmeticBoxes] = "Kosmetiikkalaatikot", [TextId.NoDataYet] = "Ei vielä tietoja.", [TextId.HostOlderVersion] = "Isännällä on vanhempi ItemStats ({0}), ja se lähettää tilastot tason jälkeen.", [TextId.WaitingForHost] = "Odotetaan tietoja isännältä.", [TextId.UpdatedAfterExtraction] = "Päivittyy jokaisen noudon jälkeen", [TextId.StateAtStart] = "Tilanne tason alussa", [TextId.AtStart] = "Alussa", [TextId.Extracted] = "Noudettu", [TextId.LeftInLevel] = "Jäljellä tasossa", [TextId.NoStatsYet] = "Ei vielä tilastoja. Pelaa taso loppuun.", [TextId.HostMissing] = "Isännällä ei ole ItemStatsia. Vain isäntä kerää tilastoja, joten mitään ei näytetä.", [TextId.HostIncompatible] = "Isännällä on eri ItemStats-versio ({0}).", [TextId.LevelStatistics] = "Tason tilastot", [TextId.TotalInLevel] = "Yhteensä tasossa", [TextId.Destroyed] = "Tuhottu", [TextId.FoundNotExtracted] = "Löydetty, ei noudettu", [TextId.OfWhichInBox] = "joista arvoesinelaatikossa", [TextId.NotFound] = "Ei löydetty", [TextId.OfWhichSeen] = "joista nähty", [TextId.Damaged] = "Vaurioitunut", [TextId.Restored] = "palautettu", [TextId.BonusNotCounted] = "Bonus (ei lasketa)", [TextId.Players] = "Pelaajat", [TextId.ColumnPlayer] = "Pelaaja", [TextId.ColumnFound] = "Löysi", [TextId.ColumnExtracted] = "Nouti", [TextId.ColumnDamaged] = "Vaurioitti", [TextId.ExtractedNoCarrier] = "noudettu ilman kantajaa", [TextId.MonsterOrbs] = "Hirviöiden pallot", [TextId.Transferred] = "Siirretty", [TextId.HideShow] = "piilota / näytä", [TextId.Pieces] = "{0} kpl", [TextId.LevelCompleted] = "Taso läpäisty", [TextId.LevelFailed] = "Taso epäonnistui", [TextId.LeftLevel] = "Poistui tasosta", [TextId.CurrentState] = "Nykytilanne", [TextId.Monsters] = "Hirviöt", [TextId.Traps] = "Ansat", [TextId.Environment] = "Ympäristö", [TextId.TotalWithOrbs] = "Yhteensä", [TextId.Explanations] = "selitykset" }, [UiLanguage.Turkish] = new Dictionary<TextId, string> { [TextId.ValuablesInLevel] = "Bu seviyedeki değerli eşyalar", [TextId.CosmeticBoxes] = "Kozmetik kutuları", [TextId.NoDataYet] = "Henüz veri yok.", [TextId.HostOlderVersion] = "Sunucuda eski bir ItemStats sürümü ({0}) var, istatistikleri seviye sonunda gönderir.", [TextId.WaitingForHost] = "Sunucudan veri bekleniyor.", [TextId.UpdatedAfterExtraction] = "Her çıkarmadan sonra güncellenir", [TextId.StateAtStart] = "Seviye başındaki durum", [TextId.AtStart] = "Başlangıçta", [TextId.Extracted] = "Çıkarıldı", [TextId.LeftInLevel] = "Seviyede kalan", [TextId.NoStatsYet] = "Henüz istatistik yok. Bir seviyeyi bitir.", [TextId.HostMissing] = "Sunucuda ItemStats yok. İstatistikleri yalnızca sunucu topladığı için hiçbir şey gösterilmeyecek.", [TextId.HostIncompatible] = "Sunucuda farklı bir ItemStats sürümü var ({0}).", [TextId.LevelStatistics] = "Seviye istatistikleri", [TextId.TotalInLevel] = "Seviyede toplam", [TextId.Destroyed] = "Yok edildi", [TextId.FoundNotExtracted] = "Bulundu, çıkarılmadı", [TextId.OfWhichInBox] = "bunlardan değerli eşya kutusunda", [TextId.NotFound] = "Bulunamadı", [TextId.OfWhichSeen] = "bunlardan görülen", [TextId.Damaged] = "Hasar gördü", [TextId.Restored] = "geri kazanıldı", [TextId.BonusNotCounted] = "Bonus (sayılmaz)", [TextId.Players] = "Oyuncular", [TextId.ColumnPlayer] = "Oyuncu", [TextId.ColumnFound] = "Buldu", [TextId.ColumnExtracted] = "Çıkardı", [TextId.ColumnDamaged] = "Hasar verdi", [TextId.ExtractedNoCarrier] = "çıkarıldı, taşıyan yok", [TextId.MonsterOrbs] = "Canavar küreleri", [TextId.Transferred] = "Aktarıldı", [TextId.HideShow] = "gizle / göster", [TextId.Pieces] = "{0} adet", [TextId.LevelCompleted] = "Seviye tamamlandı", [TextId.LevelFailed] = "Seviye başarısız", [TextId.LeftLevel] = "Seviyeden çıkıldı", [TextId.CurrentState] = "Mevcut durum", [TextId.Monsters] = "Canavarlar", [TextId.Traps] = "Tuzaklar", [TextId.Environment] = "Çevre", [TextId.TotalWithOrbs] = "Toplam", [TextId.Explanations] = "açıklamalar" }, [UiLanguage.Japanese] = new Dictionary<TextId, string> { [TextId.ValuablesInLevel] = "このレベルの貴重品", [TextId.CosmeticBoxes] = "コスメボックス", [TextId.NoDataYet] = "まだデータがありません。", [TextId.HostOlderVersion] = "ホストの ItemStats は古いバージョン({0})のため、統計はレベル終了後に送信されます。", [TextId.WaitingForHost] = "ホストからのデータを待っています。", [TextId.UpdatedAfterExtraction] = "搬出のたびに更新", [TextId.StateAtStart] = "レベル開始時の状態", [TextId.AtStart] = "開始時", [TextId.Extracted] = "搬出済み", [TextId.LeftInLevel] = "レベルに残り", [TextId.NoStatsYet] = "まだ統計がありません。レベルをクリアしてください。", [TextId.HostMissing] = "ホストが ItemStats を導入していません。統計はホストのみが集計するため、表示されません。", [TextId.HostIncompatible] = "ホストの ItemStats のバージョンが異なります({0})。", [TextId.LevelStatistics] = "レベル統計", [TextId.TotalInLevel] = "レベル内合計", [TextId.Destroyed] = "破壊", [TextId.FoundNotExtracted] = "発見済み・未搬出", [TextId.OfWhichInBox] = "うち貴重品ボックス内", [TextId.NotFound] = "未発見", [TextId.OfWhichSeen] = "うち目撃済み", [TextId.Damaged] = "損傷", [TextId.Restored] = "回復", [TextId.BonusNotCounted] = "ボーナス(集計外)", [TextId.Players] = "プレイヤー", [TextId.ColumnPlayer] = "プレイヤー", [TextId.ColumnFound] = "発見", [TextId.ColumnExtracted] = "搬出", [TextId.ColumnDamaged] = "損傷", [TextId.ExtractedNoCarrier] = "搬出(運搬者なし)", [TextId.MonsterOrbs] = "モンスターのオーブ", [TextId.Transferred] = "持ち越し", [TextId.HideShow] = "非表示 / 表示", [TextId.Pieces] = "{0}個", [TextId.LevelCompleted] = "レベルクリア", [TextId.LevelFailed] = "レベル失敗", [TextId.LeftLevel] = "レベルから離脱", [TextId.CurrentState] = "現在の状態", [TextId.Monsters] = "モンスター", [TextId.Traps] = "トラップ", [TextId.Environment] = "環境", [TextId.TotalWithOrbs] = "合計", [TextId.Explanations] = "説明" }, [UiLanguage.Korean] = new Dictionary<TextId, string> { [TextId.ValuablesInLevel] = "이 레벨의 귀중품", [TextId.CosmeticBoxes] = "코스메틱 상자", [TextId.NoDataYet] = "아직 데이터가 없습니다.", [TextId.HostOlderVersion] = "호스트의 ItemStats가 이전 버전({0})이라 레벨이 끝난 뒤 통계를 보냅니다.", [TextId.WaitingForHost] = "호스트의 데이터를 기다리는 중입니다.", [TextId.UpdatedAfterExtraction] = "추출할 때마다 갱신", [TextId.StateAtStart] = "레벨 시작 시 상태", [TextId.AtStart] = "시작 시", [TextId.Extracted] = "추출됨", [TextId.LeftInLevel] = "레벨에 남음", [TextId.NoStatsYet] = "아직 통계가 없습니다. 레벨을 끝내세요.", [TextId.HostMissing] = "호스트에게 ItemStats가 없습니다. 통계는 호스트만 수집하므로 표시되지 않습니다.", [TextId.HostIncompatible] = "호스트의 ItemStats 버전이 다릅니다({0}).", [TextId.LevelStatistics] = "레벨 통계", [TextId.TotalInLevel] = "레벨 전체", [TextId.Destroyed] = "파괴됨", [TextId.FoundNotExtracted] = "발견, 추출 안 됨", [TextId.OfWhichInBox] = "그중 귀중품 상자 안", [TextId.NotFound] = "발견 안 됨", [TextId.OfWhichSeen] = "그중 목격됨", [TextId.Damaged] = "손상됨", [TextId.Restored] = "복구됨", [TextId.BonusNotCounted] = "보너스(집계 제외)", [TextId.Players] = "플레이어", [TextId.ColumnPlayer] = "플레이어", [TextId.ColumnFound] = "발견", [TextId.ColumnExtracted] = "추출", [TextId.ColumnDamaged] = "손상", [TextId.ExtractedNoCarrier] = "추출됨, 운반자 없음", [TextId.MonsterOrbs] = "몬스터 오브", [TextId.Transferred] = "이월됨", [TextId.HideShow] = "숨기기 / 표시", [TextId.Pieces] = "{0}개", [TextId.LevelCompleted] = "레벨 완료", [TextId.LevelFailed] = "레벨 실패", [TextId.LeftLevel] = "레벨 이탈", [TextId.CurrentState] = "현재 상태", [TextId.Monsters] = "몬스터", [TextId.Traps] = "함정", [TextId.Environment] = "환경", [TextId.TotalWithOrbs] = "합계", [TextId.Explanations] = "설명" }, [UiLanguage.ChineseSimplified] = new Dictionary<TextId, string> { [TextId.ValuablesInLevel] = "本关卡的贵重物品", [TextId.CosmeticBoxes] = "装扮箱", [TextId.NoDataYet] = "暂无数据。", [TextId.HostOlderVersion] = "房主的 ItemStats 版本较旧({0}),会在关卡结束后发送统计。", [TextId.WaitingForHost] = "正在等待房主的数据。", [TextId.UpdatedAfterExtraction] = "每次提取后更新", [TextId.StateAtStart] = "关卡开始时的状态", [TextId.AtStart] = "开始时", [TextId.Extracted] = "已提取", [TextId.LeftInLevel] = "关卡内剩余", [TextId.NoStatsYet] = "暂无统计。请完成一个关卡。", [TextId.HostMissing] = "房主没有安装 ItemStats。统计只由房主收集,因此不会显示。", [TextId.HostIncompatible] = "房主的 ItemStats 版本不同({0})。", [TextId.LevelStatistics] = "关卡统计", [TextId.TotalInLevel] = "关卡总计", [TextId.Destroyed] = "已摧毁", [TextId.FoundNotExtracted] = "已发现,未提取", [TextId.OfWhichInBox] = "其中在贵重物品箱内", [TextId.NotFound] = "未发现", [TextId.OfWhichSeen] = "其中已看到", [TextId.Damaged] = "已损坏", [TextId.Restored] = "已恢复", [TextId.BonusNotCounted] = "奖励(不计入)", [TextId.Players] = "玩家", [TextId.ColumnPlayer] = "玩家", [TextId.ColumnFound] = "发现", [TextId.ColumnExtracted] = "提取", [TextId.ColumnDamaged] = "损坏", [TextId.ExtractedNoCarrier] = "已提取,无搬运者", [TextId.MonsterOrbs] = "怪物宝珠", [TextId.Transferred] = "已转移", [TextId.HideShow] = "隐藏 / 显示", [TextId.Pieces] = "{0} 个", [TextId.LevelCompleted] = "关卡完成", [TextId.LevelFailed] = "关卡失败", [TextId.LeftLevel] = "离开关卡", [TextId.CurrentState] = "当前状态", [TextId.Monsters] = "怪物", [TextId.Traps] = "陷阱", [TextId.Environment] = "环境", [TextId.TotalWithOrbs] = "合计", [TextId.Explanations] = "说明" }, [UiLanguage.ChineseTraditional] = new Dictionary<TextId, string> { [TextId.ValuablesInLevel] = "本關卡的貴重物品", [TextId.CosmeticBoxes] = "裝扮箱", [TextId.NoDataYet] = "尚無資料。", [TextId.HostOlderVersion] = "房主的 ItemStats 版本較舊({0}),會在關卡結束後傳送統計。", [TextId.WaitingForHost] = "正在等待房主的資料。", [TextId.UpdatedAfterExtraction] = "每次提取後更新", [TextId.StateAtStart] = "關卡開始時的狀態", [TextId.AtStart] = "開始時", [TextId.Extracted] = "已提取", [TextId.LeftInLevel] = "關卡內剩餘", [TextId.NoStatsYet] = "尚無統計。請完成一個關卡。", [TextId.HostMissing] = "房主沒有安裝 ItemStats。統計只由房主收集,因此不會顯示。", [TextId.HostIncompatible] = "房主的 ItemStats 版本不同({0})。", [TextId.LevelStatistics] = "關卡統計", [TextId.TotalInLevel] = "關卡總計", [TextId.Destroyed] = "已摧毀", [TextId.FoundNotExtracted] = "已發現,未提取", [TextId.OfWhichInBox] = "其中在貴重物品箱內", [TextId.NotFound] = "未發現", [TextId.OfWhichSeen] = "其中已看到", [TextId.Damaged] = "已損壞", [TextId.Restored] = "已恢復", [TextId.BonusNotCounted] = "獎勵(不計入)", [TextId.Players] = "玩家", [TextId.ColumnPlayer] = "玩家", [TextId.ColumnFound] = "發現", [TextId.ColumnExtracted] = "提取", [TextId.ColumnDamaged] = "損壞", [TextId.ExtractedNoCarrier] = "已提取,無搬運者", [TextId.MonsterOrbs] = "怪物寶珠", [TextId.Transferred] = "已轉移", [TextId.HideShow] = "隱藏 / 顯示", [TextId.Pieces] = "{0} 個", [TextId.LevelCompleted] = "關卡完成", [TextId.LevelFailed] = "關卡失敗", [TextId.LeftLevel] = "離開關卡", [TextId.CurrentState] = "目前狀態", [TextId.Monsters] = "怪物", [TextId.Traps] = "陷阱", [TextId.Environment] = "環境", [TextId.TotalWithOrbs] = "合計", [TextId.Explanations] = "說明" }, [UiLanguage.Thai] = new Dictionary<TextId, string> { [TextId.ValuablesInLevel] = "ของม\u0e35ค\u0e48าในด\u0e48านน\u0e35\u0e49", [TextId.CosmeticBoxes] = "กล\u0e48องคอสเมต\u0e34ก", [TextId.NoDataYet] = "ย\u0e31งไม\u0e48ม\u0e35ข\u0e49อม\u0e39ล", [TextId.HostOlderVersion] = "โฮสต\u0e4cใช\u0e49 ItemStats เวอร\u0e4cช\u0e31นเก\u0e48า ({0}) และจะส\u0e48งสถ\u0e34ต\u0e34หล\u0e31งจบด\u0e48าน", [TextId.WaitingForHost] = "กำล\u0e31งรอข\u0e49อม\u0e39ลจากโฮสต\u0e4c", [TextId.UpdatedAfterExtraction] = "อ\u0e31ปเดตหล\u0e31งการส\u0e48งออกท\u0e38กคร\u0e31\u0e49ง", [TextId.StateAtStart] = "สถานะตอนเร\u0e34\u0e48มด\u0e48าน", [TextId.AtStart] = "ตอนเร\u0e34\u0e48ม", [TextId.Extracted] = "ส\u0e48งออกแล\u0e49ว", [TextId.LeftInLevel] = "เหล\u0e37อในด\u0e48าน", [TextId.NoStatsYet] = "ย\u0e31งไม\u0e48ม\u0e35สถ\u0e34ต\u0e34 เล\u0e48นให\u0e49จบส\u0e31กด\u0e48าน", [TextId.HostMissing] = "โฮสต\u0e4cไม\u0e48ม\u0e35 ItemStats สถ\u0e34ต\u0e34ถ\u0e39กเก\u0e47บโดยโฮสต\u0e4cเท\u0e48าน\u0e31\u0e49น จ\u0e36งไม\u0e48ม\u0e35อะไรแสดง", [TextId.HostIncompatible] = "โฮสต\u0e4cใช\u0e49 ItemStats เวอร\u0e4cช\u0e31นอ\u0e37\u0e48น ({0})", [TextId.LevelStatistics] = "สถ\u0e34ต\u0e34ด\u0e48าน", [TextId.TotalInLevel] = "รวมในด\u0e48าน", [TextId.Destroyed] = "ถ\u0e39กทำลาย", [TextId.FoundNotExtracted] = "พบแล\u0e49ว ย\u0e31งไม\u0e48ส\u0e48งออก", [TextId.OfWhichInBox] = "ในจำนวนน\u0e35\u0e49อย\u0e39\u0e48ในกล\u0e48องของม\u0e35ค\u0e48า", [TextId.NotFound] = "ไม\u0e48พบ", [TextId.OfWhichSeen] = "ในจำนวนน\u0e35\u0e49เคยเห\u0e47น", [TextId.Damaged] = "เส\u0e35ยหาย", [TextId.Restored] = "ฟ\u0e37\u0e49นค\u0e37น", [TextId.BonusNotCounted] = "โบน\u0e31ส (ไม\u0e48น\u0e31บ)", [TextId.Players] = "ผ\u0e39\u0e49เล\u0e48น", [TextId.ColumnPlayer] = "ผ\u0e39\u0e49เล\u0e48น", [TextId.ColumnFound] = "พบ", [TextId.ColumnExtracted] = "ส\u0e48งออก", [TextId.ColumnDamaged] = "ทำเส\u0e35ยหาย", [TextId.ExtractedNoCarrier] = "ส\u0e48งออกแล\u0e49ว ไม\u0e48ม\u0e35ผ\u0e39\u0e49ถ\u0e37อ", [TextId.MonsterOrbs] = "ล\u0e39กแก\u0e49วมอนสเตอร\u0e4c", [TextId.Transferred] = "โอนมา", [TextId.HideShow] = "ซ\u0e48อน / แสดง", [TextId.Pieces] = "{0} ช\u0e34\u0e49น", [TextId.LevelCompleted] = "ผ\u0e48านด\u0e48าน", [TextId.LevelFailed] = "ด\u0e48านล\u0e49มเหลว", [TextId.LeftLevel] = "ออกจากด\u0e48าน", [TextId.CurrentState] = "สถานะป\u0e31จจ\u0e38บ\u0e31น", [TextId.Monsters] = "มอนสเตอร\u0e4c", [TextId.Traps] = "ก\u0e31บด\u0e31ก", [TextId.Environment] = "สภาพแวดล\u0e49อม", [TextId.TotalWithOrbs] = "รวม", [TextId.Explanations] = "คำอธ\u0e34บาย" } }; } } namespace ItemStats.Tracking { internal enum CauseKind { Player, Monster, Trap, Environment } internal readonly struct DamageCause { public readonly CauseKind Kind; public readonly int PlayerId; public static readonly DamageCause Monster = new DamageCause(CauseKind.Monster); public static readonly DamageCause Trap = new DamageCause(CauseKind.Trap); public static readonly DamageCause Environment = new DamageCause(CauseKind.Environment); public DamageCause(CauseKind kind, int playerId = -1) { Kind = kind; PlayerId = playerId; } } internal enum ItemFate { InLevel, Extracted, Destroyed, InBox } internal sealed class ItemRecord { public ValuableObject Valuable; public int InstanceId; public string Name; public float OriginalValue; public bool IsBonus; public bool IsOrb; public ItemFate Fate; public int BoxId; public float BoxValue; public float ExtractedValue; public float Damage; public float Healed; public readonly HashSet<int> Holders = new HashSet<int>(); public int FirstGrabber = -1; public bool Counted { get { if (!IsBonus) { return !IsOrb; } return false; } } public bool WasGrabbed => FirstGrabber >= 0; } internal enum EndReason { Completed, Failed, Left, Manual } internal sealed class LevelStats { public struct Bucket { public int Count; public float Value; public Bucket(int count, float value) { Count = count; Value = value; } } public sealed class CauseRow { public CauseKind Kind; public string PlayerName; public float Value; } public sealed class PlayerRow { public string Name; public int Found; public float Extracted; public float Damage; } public struct CosmeticStats { public int Total; public int Extracted; public int Destroyed; public int FoundLeft; public int NotFound; } public EndReason Reason; public Bucket Total; public Bucket Extracted; public Bucket Destroyed; public Bucket FoundLeft; public Bucket NotFound; public int NotFoundSeen; public Bucket Damaged; public float Healed; public readonly List<CauseRow> DamageByCause = new List<CauseRow>(); public readonly List<PlayerRow> Players = new List<PlayerRow>(); public float ExtractedUnassigned; public Bucket Bonus; public Bucket Orbs; public Bucket OrbsExtracted; public float Transferred; public Bucket InBox; public CosmeticStats Cosmetics; public static LevelStats Last { get; private set; } public static int Revision { get; private set; } public static void Publish(LevelStats stats) { Last = stats; Revision++; } } internal static class LevelTracker { private sealed class CosmeticRecord { public string Rarity; public ItemFate Fate; public bool Found; } private static readonly Dictionary<int, CosmeticRecord> Cosmetics = new Dictionary<int, CosmeticRecord>(); private const float PendingCauseSeconds = 0.5f; private const float MonsterDropSeconds = 3f; private const float KnockbackSeconds = 3f; private static readonly Dictionary<int, ItemRecord> Items = new Dictionary<int, ItemRecord>(); private static readonly Dictionary<int, string> PlayerNames = new Dictionary<int, string>(); private static readonly Dictionary<int, float> MonsterHitTimes = new Dictionary<int, float>(); private static readonly Dictionary<DamageCause, float> DamageByCause = new Dictionary<DamageCause, float>(); private static readonly Dictionary<int, (DamageCause Cause, float Time)> PendingCauses = new Dictionary<int, (DamageCause, float)>(); private static readonly Dictionary<int, (DamageCause Cause, float Time)> RecentHits = new Dictionary<int, (DamageCause, float)>(); private static float _haulGoalOffset; private static readonly Dictionary<int, float> EnemyContacts = new Dictionary<int, float>(); private static LevelGenerator _level; private static bool _finished; internal static DamageCause? CurrentBreakCause; public static float TransferredExtracted { get; private set; } internal static bool Active { get { if (SemiFunc.IsMasterClientOrSingleplayer()) { return SemiFunc.RunIsLevel(); } return false; } } public static bool EventsOn => PluginConfig.LogEvents.Value; public static int ExtractionCount { get; private set; } public static void OnAbsorbed(ValuableObject valuable, ItemValuableBox box) { ItemRecord itemRecord = Get(valuable); if (itemRecord != null && !((Object)(object)box == (Object)null) && itemRecord.Fate == ItemFate.InLevel) { itemRecord.Fate = ItemFate.InBox; itemRecord.BoxId = ((Object)box).GetInstanceID(); itemRecord.BoxValue = Mathf.Max(valuable.dollarValueCurrent, 0f); if (EventsOn) { LogEvent(valuable, $"absorbed by a box for ${itemRecord.BoxValue:N0}"); } } } private static List<ItemRecord> BoxContents(ItemValuableBox box) { int id = ((Object)box).GetInstanceID(); return Items.Values.Where((ItemRecord i) => i.Fate == ItemFate.InBox && i.BoxId == id).ToList(); } public static void OnBoxExtracted(ItemValuableBox box) { if (!Active || (Object)(object)box == (Object)null) { return; } List<ItemRecord> list = BoxContents(box); float num = list.Sum((ItemRecord i) => i.BoxValue); float num2 = Mathf.Max(0f, box.ExtractionValue - num); if (num2 < 1f) { num2 = 0f; } if (list.Count == 0 && num2 == 0f) { return; } float num3 = ((num > 0f) ? Mathf.Min(1f, (box.ExtractionValue - num2) / num) : 0f); foreach (ItemRecord item in list) { item.Fate = ItemFate.Extracted; item.ExtractedValue = item.BoxValue * num3; } TransferredExtracted += num2; ExtractionCount++; if (EventsOn) { Plugin.Log.LogInfo((object)($"[event] box extracted for ${box.ExtractionValue:N0} ({list.Count} valuables" + ((num2 > 0f) ? $", carried over from earlier ${num2:N0})" : ")"))); } } public static void OnBoxExploded(ItemValuableBox box) { if (!Active || (Object)(object)box == (Object)null) { return; } List<ItemRecord> list = BoxContents(box); if (list.Count == 0) { return; } string source; DamageCause cause = ResolveCause(((Object)box).GetInstanceID(), ((Component)box).GetComponent<PhysGrabObject>(), out source); foreach (ItemRecord item in list) { AddLoss(item, item.BoxValue, cause); item.Fate = ItemFate.Destroyed; } if (EventsOn) { Plugin.Log.LogInfo((object)($"[event] box exploded, lost {list.Count} valuables worth " + $"${list.Sum((ItemRecord i) => i.BoxValue):N0} ({Describe(cause)} [{source}])")); } } private static CosmeticRecord GetCosmetic(CosmeticWorldObject cosmetic) { if (!Active || (Object)(object)cosmetic == (Object)null) { return null; } Cosmetics.TryGetValue(((Object)cosmetic).GetInstanceID(), out var value); return value; } public static void RegisterCosmetic(CosmeticWorldObject cosmetic) { //IL_0064: Unknown result type (might be due to invalid IL or missing references) if (!Active || (Object)(object)cosmetic == (Object)null) { return; } EnsureCurrentLevel(); int instanceID = ((Object)cosmetic).GetInstanceID(); if (!Cosmetics.ContainsKey(instanceID)) { Cosmetics.Add(instanceID, new CosmeticRecord { Rarity = ((object)Unsafe.As<Rarity, Rarity>(ref cosmetic.rarity)/*cast due to .constrained prefix*/).ToString() }); if (EventsOn) { Plugin.Log.LogInfo((object)$"[event] cosmetic box in the level ({cosmetic.rarity})"); } } } public static void OnCosmeticGrab(CosmeticWorldObject cosmetic) { CosmeticRecord cosmetic2 = GetCosmetic(cosmetic); if (cosmetic2 != null && !cosmetic2.Found) { cosmetic2.Found = true; if (EventsOn) { Plugin.Log.LogInfo((object)("[event] cosmetic box (" + cosmetic2.Rarity + ") picked up for the first time")); } } } public static void OnCosmeticExtracted(CosmeticWorldObject cosmetic) { CosmeticRecord cosmetic2 = GetCosmetic(cosmetic); if (cosmetic2 != null && cosmetic2.Fate == ItemFate.InLevel) { cosmetic2.Fate = ItemFate.Extracted; ExtractionCount++; if (EventsOn) { Plugin.Log.LogInfo((object)("[event] cosmetic box (" + cosmetic2.Rarity + ") extracted")); } } } public static void OnCosmeticDestroyed(CosmeticWorldObject cosmetic) { CosmeticRecord cosmetic2 = GetCosmetic(cosmetic); if (cosmetic2 != null && cosmetic2.Fate == ItemFate.InLevel) { cosmetic2.Fate = ItemFate.Destroyed; if (EventsOn) { Plugin.Log.LogInfo((object)("[event] cosmetic box (" + cosmetic2.Rarity + ") destroyed")); } } } private static LevelStats.CosmeticStats BuildCosmeticStats() { List<CosmeticRecord> list = Cosmetics.Values.ToList(); return new LevelStats.CosmeticStats { Total = list.Count, Extracted = list.Count((CosmeticRecord c) => c.Fate == ItemFate.Extracted), Destroyed = list.Count((CosmeticRecord c) => c.Fate == ItemFate.Destroyed), FoundLeft = list.Count((CosmeticRecord c) => c.Fate == ItemFate.InLevel && c.Found), NotFound = list.Count((CosmeticRecord c) => c.Fate == ItemFate.InLevel && !c.Found) }; } public static bool TryGetCosmeticProgress(out LevelStats.CosmeticStats stats) { stats = default(LevelStats.CosmeticStats); if (!Active || (Object)(object)_level == (Object)null || (Object)(object)_level != (Object)(object)LevelGenerator.Instance) { return false; } stats = BuildCosmeticStats(); return true; } public static void Register(ValuableObject valuable) { if (!Active) { return; } EnsureCurrentLevel(); int instanceID = ((Object)valuable).GetInstanceID(); if (!Items.ContainsKey(instanceID)) { ItemRecord itemRecord = new ItemRecord { Valuable = valuable, InstanceId = instanceID, Name = CleanName(((Object)valuable).name), OriginalValue = valuable.dollarValueOriginal, IsBonus = (valuable.dollarValueOverride != 0), IsOrb = IsEnemyOrb(valuable) }; Items.Add(instanceID, itemRecord); if (itemRecord.IsBonus) { Plugin.Log.LogDebug((object)$"Bonus item (not counted): {itemRecord.Name} ${itemRecord.OriginalValue:N0}"); } else