Decompiled source of TamarackIslandAndDalkeyReef v0.22.11
TamarackIsland.dll
Decompiled 21 minutes ago
The result has been truncated due to the large size, download it to view full contents!
using System; using System.Collections; using System.Collections.Generic; using System.Diagnostics; using System.Globalization; using System.IO; using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.Serialization.Formatters.Binary; using System.Runtime.Versioning; using System.Text; using BepInEx; using BepInEx.Bootstrap; using BepInEx.Configuration; using BepInEx.Logging; using DixiecaptShared; using HarmonyLib; using Microsoft.CodeAnalysis; using PsychoticLab; using UnityEngine; using UnityEngine.Rendering; using UnityEngine.SceneManagement; using cakeslice; [assembly: CompilationRelaxations(8)] [assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)] [assembly: Debuggable(DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints)] [assembly: TargetFramework(".NETFramework,Version=v4.8", FrameworkDisplayName = ".NET Framework 4.8")] [assembly: AssemblyVersion("0.0.0.0")] [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 DixiecaptShared { internal static class SaveBlock { private sealed class Move { internal int from; internal int to; internal string what; internal bool doubled; } internal const int TableSize = 2048; internal const int Shift = 1000; internal const int OldFirst = 210; internal const int OldLast = 251; internal const int BlockFirst = 1200; internal const int BlockLast = 1399; internal const string MarkPrefix = "Dixiecapt.SaveBlock."; internal const string BackupSuffix = ".before-save-numbers"; private static readonly List<Move> Moves = new List<Move>(); private static readonly List<string> Early = new List<string>(); private static ManualLogSource Log; private static string Owner = "mod"; private static bool _patched; private static FieldInfo _tableField; internal static string Mark => "Dixiecapt.SaveBlock." + Owner; internal static bool Ready => _patched; internal static ConfigEntry<int> Adopted(ConfigFile cfg, string section, string oldKey, int oldDefault, string what, string building, Func<int, int> fixOld = null) { //IL_0032: Unknown result type (might be due to invalid IL or missing references) //IL_003c: Expected O, but got Unknown //IL_0080: Unknown result type (might be due to invalid IL or missing references) //IL_008a: Expected O, but got Unknown int num = cfg.Bind<int>(section, oldKey, oldDefault, new ConfigDescription("The number this building had before Sailwind Farming 0.28.0 and the Martello Tower 0.8.0 - kept so a save made before then is found, and so an older version still finds its own. Leave it as it is.", (AcceptableValueBase)(object)new AcceptableValueRange<int>(210, 251), new object[1] { new ConfigurationManagerAttributes { Browsable = false } })).Value; if (fixOld != null) { num = fixOld(num); } int num2 = oldDefault + 1000; ConfigEntry<int> val = cfg.Bind<int>(section, oldKey + " (new)", num2, new ConfigDescription(Describe(what), (AcceptableValueBase)(object)new AcceptableValueRange<int>(1200, 1399), Array.Empty<object>())); if (num != oldDefault && num >= 210 && num <= 251 && val.Value == num2 && num + 1000 != num2) { val.Value = num + 1000; Note("'" + oldKey + "' (" + building + ") was " + num + " - its new number is " + val.Value); } switch (num) { case 210: case 211: case 212: case 213: case 214: case 215: case 216: case 217: case 218: case 219: case 220: case 221: case 222: case 223: case 224: case 225: case 226: case 227: case 228: case 229: case 230: case 231: case 232: case 233: case 234: case 235: case 236: case 237: case 238: case 239: case 240: case 247: case 248: case 249: case 250: case 251: Register(num, val.Value, building); break; } return val; } internal static ConfigEntry<int> Fresh(ConfigFile cfg, string section, string key, int number, string what) { //IL_001f: Unknown result type (might be due to invalid IL or missing references) //IL_0029: Expected O, but got Unknown return cfg.Bind<int>(section, key, number, new ConfigDescription(Describe(what), (AcceptableValueBase)(object)new AcceptableValueRange<int>(1200, 1399), Array.Empty<object>())); } internal static string Describe(string what) { return "The " + what + "'s place in the game's table of saved things, above every ship mod's numbers (since Sailwind Farming 0.28.0 and the Martello Tower 0.8.0; a save made before is renumbered as it loads, with everything kept in it). Change it only if another mod claims the same one (1200 to 1399): what was stored under the old number is lost (the save still loads)."; } private static void Note(string s) { if (Log != null) { Say(s); } else { Early.Add(s); } } private static void Register(int from, int to, string what) { foreach (Move move in Moves) { if (move.from == from) { if (move.to != to) { Note("WARNING: old number " + from + " is claimed by both " + move.what + " and " + what + " - kept for " + move.what); } return; } } Moves.Add(new Move { from = from, to = to, what = what }); } internal static void Install(Harmony h, ManualLogSource log, string owner) { //IL_01d8: Unknown result type (might be due to invalid IL or missing references) //IL_01dd: Unknown result type (might be due to invalid IL or missing references) //IL_01ec: Expected O, but got Unknown //IL_01ff: Unknown result type (might be due to invalid IL or missing references) //IL_0204: Unknown result type (might be due to invalid IL or missing references) //IL_021f: Unknown result type (might be due to invalid IL or missing references) //IL_0224: Unknown result type (might be due to invalid IL or missing references) //IL_0237: Expected O, but got Unknown //IL_0237: Expected O, but got Unknown //IL_024a: Unknown result type (might be due to invalid IL or missing references) //IL_024f: Unknown result type (might be due to invalid IL or missing references) //IL_0263: Expected O, but got Unknown //IL_0277: Unknown result type (might be due to invalid IL or missing references) //IL_0285: Expected O, but got Unknown //IL_02a3: Unknown result type (might be due to invalid IL or missing references) //IL_02a8: Unknown result type (might be due to invalid IL or missing references) //IL_02bc: Expected O, but got Unknown Log = log; Owner = owner; foreach (string item in Early) { Say(item); } Early.Clear(); if (_patched) { return; } try { _tableField = AccessTools.Field(typeof(SaveLoadManager), "currentObjects"); MethodInfo methodInfo = AccessTools.Method(typeof(SaveLoadManager), "Awake", (Type[])null, (Type[])null); MethodInfo methodInfo2 = AccessTools.Method(typeof(SaveLoadManager), "LoadGame", (Type[])null, (Type[])null); MethodInfo methodInfo3 = AccessTools.Method(typeof(SaveLoadManager), "LoadNeeds", (Type[])null, (Type[])null); MethodInfo methodInfo4 = AccessTools.Method(typeof(SaveLoadManager), "SaveModData", (Type[])null, (Type[])null); MethodInfo methodInfo5 = AccessTools.Method(typeof(SaveLoadManager), "SaveGame", (Type[])null, (Type[])null); if (_tableField == null || methodInfo == null || methodInfo2 == null || methodInfo3 == null || methodInfo4 == null) { if (Log != null) { Log.LogError((object)("Save numbers: the game's save code is not as expected (" + ((_tableField == null) ? "currentObjects " : "") + ((methodInfo == null) ? "Awake " : "") + ((methodInfo2 == null) ? "LoadGame " : "") + ((methodInfo3 == null) ? "LoadNeeds " : "") + ((methodInfo4 == null) ? "SaveModData" : "") + ") - an older save will NOT be renumbered: do not load one with this version.")); } return; } h.Patch((MethodBase)methodInfo, (HarmonyMethod)null, new HarmonyMethod(typeof(SaveBlock), "AfterAwake", (Type[])null) { priority = 0 }, (HarmonyMethod)null, (HarmonyMethod)null, (HarmonyMethod)null); h.Patch((MethodBase)methodInfo2, new HarmonyMethod(typeof(SaveBlock), "BeforeLoad", (Type[])null) { priority = 600 }, new HarmonyMethod(typeof(SaveBlock), "AfterLoad", (Type[])null) { priority = 800 }, (HarmonyMethod)null, (HarmonyMethod)null, (HarmonyMethod)null); h.Patch((MethodBase)methodInfo3, new HarmonyMethod(typeof(SaveBlock), "BeforeNeeds", (Type[])null) { priority = 900 }, (HarmonyMethod)null, (HarmonyMethod)null, (HarmonyMethod)null, (HarmonyMethod)null); h.Patch((MethodBase)methodInfo4, new HarmonyMethod(typeof(SaveBlock), "BeforeSaveModData", (Type[])null), (HarmonyMethod)null, (HarmonyMethod)null, (HarmonyMethod)null, (HarmonyMethod)null); if (methodInfo5 != null) { h.Patch((MethodBase)methodInfo5, new HarmonyMethod(typeof(SaveBlock), "BeforeSave", (Type[])null) { priority = 800 }, (HarmonyMethod)null, (HarmonyMethod)null, (HarmonyMethod)null, (HarmonyMethod)null); } _patched = true; StringBuilder stringBuilder = new StringBuilder(); foreach (Move move in Moves) { stringBuilder.Append((stringBuilder.Length > 0) ? ", " : "").Append(move.what).Append(' ') .Append(move.from) .Append("->") .Append(move.to); } Say("the table of saved things is made " + 2048 + " long; this mod's buildings sit above every ship mod's numbers (an older save is renumbered as it loads: " + ((stringBuilder.Length > 0) ? stringBuilder.ToString() : "nothing to move") + ")"); } catch (Exception ex) { if (Log != null) { Log.LogError((object)("Save numbers: not set up - " + ex.Message + " - an older save will NOT be renumbered: do not load one with this version.")); } } } private static SaveableObject[] Table() { if (!((Object)(object)SaveLoadManager.instance != (Object)null)) { return null; } return SaveLoadManager.instance.GetCurrentObjects(); } internal static void EnsureTable() { try { SaveLoadManager instance = SaveLoadManager.instance; if ((Object)(object)instance == (Object)null) { return; } SaveableObject[] currentObjects = instance.GetCurrentObjects(); if (currentObjects != null && currentObjects.Length >= 2048) { return; } if (_tableField == null) { _tableField = AccessTools.Field(typeof(SaveLoadManager), "currentObjects"); } if (!(_tableField == null)) { SaveableObject[] array = _tableField.GetValue(instance) as SaveableObject[]; if (array == null || array.Length < 2048) { int num = ((array != null) ? array.Length : 0); Array.Resize(ref array, 2048); _tableField.SetValue(instance, array); Say("the table of saved things stretched from " + num + " to " + 2048 + " places"); } } } catch (Exception ex) { Warn("stretching the table - " + ex.Message); } } private static void AfterAwake() { EnsureTable(); } private static bool Ours(SaveableObject so) { if ((Object)(object)so == (Object)null) { return false; } PurchasableBoat component = ((Component)so).GetComponent<PurchasableBoat>(); if ((Object)(object)component != (Object)null && component.isHouse) { return (Object)(object)((Component)so).GetComponent<BoatLocalItems>() != (Object)null; } return false; } private static void Undouble() { SaveableObject[] array = Table(); if (array == null) { return; } for (int i = 0; i < array.Length; i++) { if ((Object)(object)array[i] != (Object)null && array[i].sceneIndex != i && Ours(array[i])) { array[i] = null; } } foreach (Move move in Moves) { move.doubled = false; } } private static void BeforeLoad(int backupIndex) { SaveContainer c = null; bool flag = false; try { Undouble(); EnsureTable(); string text = ((backupIndex != 0) ? SaveSlots.GetBackupPath(SaveSlots.currentSlot, backupIndex) : SaveSlots.GetCurrentSavePath()); if (string.IsNullOrEmpty(text) || !File.Exists(text)) { return; } RenumberFile(text, Renumber, out c, out var note); if (note != null) { Say(note); } flag = true; } catch (Exception ex) { Warn("renumbering the save file - " + ex.Message + " - it is renumbered as it loads instead."); } if (flag) { return; } try { SaveableObject[] array = Table(); if (array == null || (c != null && c.modData != null && c.modData.ContainsKey(Mark))) { return; } foreach (Move move in Moves) { if (move.from > 0 && move.from < array.Length && move.to < array.Length && (c == null || HasPlainEntry(c, move.from)) && (Object)(object)array[move.from] == (Object)null && Ours(array[move.to])) { array[move.from] = array[move.to]; move.doubled = true; } } } catch (Exception ex2) { Warn("before the load - " + ex2.Message); } } internal static int RenumberFile(string path, Func<SaveContainer, int> renumber, out SaveContainer c, out string note) { //IL_001a: Unknown result type (might be due to invalid IL or missing references) //IL_0020: Expected O, but got Unknown note = null; BinaryFormatter binaryFormatter = new BinaryFormatter(); using (FileStream serializationStream = File.OpenRead(path)) { c = (SaveContainer)binaryFormatter.Deserialize(serializationStream); } if (c == null || c.savedObjects == null) { return 0; } if (c.modData != null && c.modData.ContainsKey(Mark)) { return 0; } int num = renumber(c); if (num <= 0) { return 0; } string text = path + ".before-save-numbers"; string text2 = path + ".renumbering"; if (!File.Exists(text)) { File.Copy(path, text); } using (FileStream serializationStream2 = File.Create(text2)) { binaryFormatter.Serialize(serializationStream2, c); } File.Copy(text2, path, overwrite: true); File.Delete(text2); note = "this save file renumbered for " + num + " building(s) - a copy of it as it was: " + Path.GetFileName(text); return num; } private static void AfterLoad() { try { Undouble(); } catch (Exception) { } } private static void BeforeSave() { try { Undouble(); } catch (Exception) { } } private static void BeforeNeeds(SaveContainer save) { try { Undouble(); } catch (Exception ex) { Warn("emptying the old places - " + ex.Message); } try { if (save != null && save.savedObjects != null && (save.modData == null || !save.modData.ContainsKey(Mark))) { Renumber(save); } } catch (Exception ex2) { Warn("renumbering this save - " + ex2.Message); } try { SaveableObject[] t = Table(); if (save == null || t == null) { return; } HashSet<int> old = new HashSet<int>(); foreach (Move move in Moves) { old.Add(move.from); } Func<int, bool> func = (int i) => ((i >= 1200 && i <= 1399) || old.Contains(i)) && (i >= t.Length || (Object)(object)t[i] == (Object)null); int num = 0; int num2 = 0; List<string> list = new List<string>(); if (save.savedObjects != null) { for (int num3 = save.savedObjects.Count - 1; num3 >= 0; num3--) { SaveObjectData val = save.savedObjects[num3]; if (val != null && func(val.sceneIndex)) { list.Add(val.sceneIndex.ToString(CultureInfo.InvariantCulture)); num++; save.savedObjects.RemoveAt(num3); } } } if (save.savedPrefabs != null) { for (int num4 = save.savedPrefabs.Count - 1; num4 >= 0; num4--) { SavePrefabData val2 = save.savedPrefabs[num4]; if (val2 != null && val2.itemParentObject > 0 && func(val2.itemParentObject)) { num2++; save.savedPrefabs.RemoveAt(num4); } } } if (num > 0 || num2 > 0) { Warn("the save held " + num + " entr" + ((num == 1) ? "y" : "ies") + " (number " + string.Join(", ", list.ToArray()) + ") that nothing in this game holds, and " + num2 + " thing(s) kept in them - dropped, so the save loads (a building switched off, or its mod taken out)."); } } catch (Exception ex3) { Warn("checking the save's entries - " + ex3.Message); } } private static int Renumber(SaveContainer save) { //IL_0031: 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_0036: Unknown result type (might be due to invalid IL or missing references) //IL_00ca: Unknown result type (might be due to invalid IL or missing references) //IL_00cf: Unknown result type (might be due to invalid IL or missing references) //IL_00d0: Unknown result type (might be due to invalid IL or missing references) //IL_00d5: Unknown result type (might be due to invalid IL or missing references) //IL_0150: Unknown result type (might be due to invalid IL or missing references) //IL_0157: Unknown result type (might be due to invalid IL or missing references) //IL_0127: Unknown result type (might be due to invalid IL or missing references) //IL_012c: Unknown result type (might be due to invalid IL or missing references) //IL_012d: Unknown result type (might be due to invalid IL or missing references) //IL_0132: Unknown result type (might be due to invalid IL or missing references) if (save == null || save.savedObjects == null) { return 0; } SaveableObject[] array = Table(); if (array == null) { return 0; } Vector3 val = (((Object)(object)FloatingOriginManager.instance != (Object)null) ? FloatingOriginManager.instance.outCurrentOffset : Vector3.zero); int num = 0; foreach (Move move in Moves) { try { if (move.from >= array.Length || move.to >= array.Length || !HasEntry(save, move.from)) { continue; } SaveableObject val2 = array[move.to]; if (!Ours(val2)) { Say(move.what + ": the save has an entry under its old number " + move.from + ", but the building is not made in this game - left as it was"); continue; } Vector3 val3 = ((Component)val2).transform.position - val; SaveableObject val4 = (((Object)(object)array[move.from] != (Object)null && (Object)(object)array[move.from] != (Object)(object)val2) ? array[move.from] : null); float oX = 0f; float oZ = 0f; if ((Object)(object)val4 != (Object)null) { Vector3 val5 = ((Component)val4).transform.position - val; oX = val5.x; oZ = val5.z; } if (MoveInSave(save, move.from, move.to, val3.x, val3.z, (Object)(object)val4 != (Object)null, oX, oZ, out var items, out var pets, out var bought, out var dist, out var why) > 0) { num++; Say(move.what + " - renumbered from " + move.from + " to " + move.to + ": its entry (" + (bought ? "BOUGHT" : "not bought") + ", saved " + dist.ToString("F0", CultureInfo.InvariantCulture) + " m from where it stands)" + ((items > 0) ? (" and " + items + " thing(s) kept in it") : ", nothing kept in it") + ((pets > 0) ? ", and the pets' note of it" : "") + (((Object)(object)val4 != (Object)null) ? (" ('" + ((Object)val4).name + "' holds " + move.from + " in this game and starts afresh)") : "")); } else { Say(move.what + " - its old number " + move.from + " is not moved: " + why); } } catch (Exception ex) { Warn(move.what + ": renumbering - " + ex.Message); } } if (save.modData != null) { save.modData[Mark] = "1"; } return num; } private static bool HasEntry(SaveContainer save, int n) { foreach (SaveObjectData savedObject in save.savedObjects) { if (savedObject != null && savedObject.sceneIndex == n) { return true; } } return false; } private static bool HasPlainEntry(SaveContainer save, int n) { foreach (SaveObjectData savedObject in save.savedObjects) { if (savedObject != null && savedObject.sceneIndex == n && savedObject.customization == null) { return true; } } return false; } internal static int MoveInSave(SaveContainer save, int from, int to, float atX, float atZ, bool otherHolds, float oX, float oZ, out int items, out int pets, out bool bought, out float dist, out string why) { items = 0; pets = 0; bought = false; dist = 0f; why = null; if (save == null || save.savedObjects == null) { why = "the save has no entries"; return 0; } if (HasEntry(save, to)) { why = "the save has an entry under " + to + " already"; return 0; } SaveObjectData val = null; float num = float.MaxValue; int num2 = 0; foreach (SaveObjectData savedObject in save.savedObjects) { if (savedObject == null || savedObject.sceneIndex != from) { continue; } if (savedObject.customization != null) { num2++; continue; } float num3 = savedObject.position.x - atX; float num4 = savedObject.position.z - atZ; float num5 = (float)Math.Sqrt(num3 * num3 + num4 * num4); if (num5 < num) { num = num5; val = savedObject; } } if (val == null) { why = ((num2 > 0) ? ("the only entry under " + from + " is a ship's") : ("no entry under " + from)); return 0; } if (otherHolds) { float num6 = val.position.x - oX; float num7 = val.position.z - oZ; if (Math.Sqrt(num6 * num6 + num7 * num7) <= (double)num) { why = "its entry was saved nearer what holds " + from + " in this game now (" + num.ToString("F0", CultureInfo.InvariantCulture) + " m from the building) - left to it"; return 0; } } val.sceneIndex = to; bought = val.extraSetting; dist = num; if (save.savedPrefabs != null) { foreach (SavePrefabData savedPrefab in save.savedPrefabs) { if (savedPrefab != null && savedPrefab.itemParentObject == from) { savedPrefab.itemParentObject = to; items++; } } } pets = MovePets(save.modData, from, to); return 1; } internal static int MovePets(Dictionary<string, string> md, int from, int to) { if (md == null) { return 0; } int num = 0; string text = from.ToString(CultureInfo.InvariantCulture); string text2 = to.ToString(CultureInfo.InvariantCulture); string[] array = new string[2] { "FurstMate.dog", "FurstMate.cat" }; foreach (string key in array) { if (md.TryGetValue(key, out var value) && !string.IsNullOrEmpty(value) && value.StartsWith("2|")) { string[] array2 = value.Split(new char[1] { '|' }); if (array2.Length > 1 && array2[1] == text) { array2[1] = text2; md[key] = string.Join("|", array2); num++; } } } array = new string[2] { "FurstMate.spots", "FurstMate.homes" }; foreach (string key2 in array) { if (!md.TryGetValue(key2, out var value2) || string.IsNullOrEmpty(value2)) { continue; } string[] array3 = value2.Split(new char[1] { ';' }); bool flag = false; bool flag2 = false; string[] array4 = array3; for (int j = 0; j < array4.Length; j++) { if (array4[j].StartsWith(text2 + ":")) { flag = true; } } if (flag) { continue; } for (int k = 0; k < array3.Length; k++) { if (array3[k].StartsWith(text + ":")) { array3[k] = text2 + array3[k].Substring(text.Length); flag2 = true; } } if (flag2) { md[key2] = string.Join(";", array3); num++; } } return num; } private static void BeforeSaveModData() { try { if (GameState.modData != null) { GameState.modData[Mark] = "1"; } } catch (Exception) { } } private static void Say(string s) { if (Log != null) { Log.LogInfo((object)("Save numbers: " + s + ".")); } } private static void Warn(string s) { if (Log != null) { Log.LogWarning((object)("Save numbers: " + s)); } } } internal sealed class ConfigurationManagerAttributes { public bool? Browsable; } internal sealed class IndoorWeatherZone : MonoBehaviour { private void OnEnable() { IndoorWeather.Track((Component)(object)this); } private void OnDisable() { IndoorWeather.Untrack((Component)(object)this); } } internal sealed class IndoorWeather : MonoBehaviour { private static readonly List<Component> _owners = new List<Component>(); private static readonly Dictionary<Component, Collider[]> _cols = new Dictionary<Component, Collider[]>(); private static IndoorWeather _me; internal static Action<string> Log; internal static int Removed; private static readonly List<ParticleSystem> _extra = new List<ParticleSystem>(); private readonly List<Collider> _near = new List<Collider>(); private readonly List<ParticleSystem> _falls = new List<ParticleSystem>(); private readonly Dictionary<ParticleSystem, Particle[]> _buf = new Dictionary<ParticleSystem, Particle[]>(); private Bounds _nearBox; private float _nextNear; private float _nextFind; private bool _toldFound; private bool _toldWork; private Type _bsType; private bool _bsLooked; private FieldInfo _rainsField; internal static void Track(Component owner) { if (!((Object)(object)owner == (Object)null)) { _cols[owner] = owner.GetComponents<Collider>(); if (!_owners.Contains(owner)) { _owners.Add(owner); } } } internal static void Untrack(Component owner) { if (!((Object)(object)owner == (Object)null)) { _owners.Remove(owner); _cols.Remove(owner); } } internal static void AddFall(ParticleSystem ps) { if ((Object)(object)ps != (Object)null && !_extra.Contains(ps)) { _extra.Add(ps); } if ((Object)(object)_me != (Object)null) { _me._nextFind = 0f; } } internal static void Ensure(GameObject host, Action<string> log) { if (!((Object)(object)_me != (Object)null) && !((Object)(object)host == (Object)null)) { Log = log; _me = host.GetComponent<IndoorWeather>() ?? host.AddComponent<IndoorWeather>(); } } private void LateUpdate() { try { Work(); } catch (Exception ex) { if (!_toldWork) { _toldWork = true; if (Log != null) { Log("indoor weather - " + ex.Message); } } } } private void Work() { //IL_002a: Unknown result type (might be due to invalid IL or missing references) //IL_002f: Unknown result type (might be due to invalid IL or missing references) //IL_01d4: Unknown result type (might be due to invalid IL or missing references) //IL_01d9: Unknown result type (might be due to invalid IL or missing references) //IL_020a: Unknown result type (might be due to invalid IL or missing references) //IL_020f: Unknown result type (might be due to invalid IL or missing references) //IL_0216: 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_00e9: Unknown result type (might be due to invalid IL or missing references) //IL_00ed: Unknown result type (might be due to invalid IL or missing references) //IL_022a: Unknown result type (might be due to invalid IL or missing references) //IL_0230: Invalid comparison between Unknown and I4 //IL_011c: Unknown result type (might be due to invalid IL or missing references) //IL_010b: Unknown result type (might be due to invalid IL or missing references) //IL_010d: Unknown result type (might be due to invalid IL or missing references) //IL_024c: Unknown result type (might be due to invalid IL or missing references) //IL_0251: Unknown result type (might be due to invalid IL or missing references) //IL_026e: Unknown result type (might be due to invalid IL or missing references) //IL_025f: Unknown result type (might be due to invalid IL or missing references) //IL_0261: Unknown result type (might be due to invalid IL or missing references) //IL_0266: Unknown result type (might be due to invalid IL or missing references) //IL_0278: Unknown result type (might be due to invalid IL or missing references) //IL_028f: Unknown result type (might be due to invalid IL or missing references) //IL_0294: Unknown result type (might be due to invalid IL or missing references) if (_owners.Count == 0 || !GameState.playing) { return; } Camera main = Camera.main; if ((Object)(object)main == (Object)null) { return; } Vector3 position = ((Component)main).transform.position; if (Time.unscaledTime >= _nextNear) { _nextNear = Time.unscaledTime + 0.5f; _near.Clear(); bool flag = false; for (int num = _owners.Count - 1; num >= 0; num--) { Component val = _owners[num]; Collider[] value; if ((Object)(object)val == (Object)null) { _owners.RemoveAt(num); } else if (_cols.TryGetValue(val, out value) && value != null) { Collider[] array = value; foreach (Collider val2 in array) { if ((Object)(object)val2 == (Object)null || !val2.enabled || !((Component)val2).gameObject.activeInHierarchy) { continue; } Bounds bounds = val2.bounds; if (!(((Bounds)(ref bounds)).SqrDistance(position) > 3600f)) { _near.Add(val2); if (!flag) { _nearBox = bounds; flag = true; } else { ((Bounds)(ref _nearBox)).Encapsulate(bounds); } } } } } } if (_near.Count == 0) { return; } if (Time.unscaledTime >= _nextFind) { _nextFind = Time.unscaledTime + 3f; FindFalls(); } foreach (ParticleSystem fall in _falls) { if ((Object)(object)fall == (Object)null || !((Component)fall).gameObject.activeInHierarchy) { continue; } int particleCount = fall.particleCount; if (particleCount == 0) { continue; } if (!_buf.TryGetValue(fall, out var value2) || value2.Length < particleCount) { int num2 = particleCount; MainModule main2 = fall.main; value2 = (Particle[])(object)new Particle[Mathf.Max(num2, ((MainModule)(ref main2)).maxParticles)]; _buf[fall] = value2; } particleCount = fall.GetParticles(value2); MainModule main3 = fall.main; Transform val3 = null; if ((int)((MainModule)(ref main3)).simulationSpace == 0) { val3 = ((Component)fall).transform; } else if ((int)((MainModule)(ref main3)).simulationSpace == 2) { val3 = ((MainModule)(ref main3)).customSimulationSpace; } int num3 = 0; for (int j = 0; j < particleCount; j++) { Vector3 val4 = ((Particle)(ref value2[j])).position; if ((Object)(object)val3 != (Object)null) { val4 = val3.TransformPoint(val4); } if (!((Bounds)(ref _nearBox)).Contains(val4) || !InsideAny(val4)) { if (num3 != j) { value2[num3] = value2[j]; } num3++; } } if (num3 < particleCount) { fall.SetParticles(value2, num3); Removed += particleCount - num3; } } } private bool InsideAny(Vector3 p) { //IL_0026: Unknown result type (might be due to invalid IL or missing references) //IL_002b: Unknown result type (might be due to invalid IL or missing references) //IL_002f: Unknown result type (might be due to invalid IL or missing references) //IL_0050: Unknown result type (might be due to invalid IL or missing references) //IL_0051: Unknown result type (might be due to invalid IL or missing references) //IL_0057: Unknown result type (might be due to invalid IL or missing references) //IL_005c: Unknown result type (might be due to invalid IL or missing references) //IL_0061: Unknown result type (might be due to invalid IL or missing references) //IL_0064: 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_0073: Unknown result type (might be due to invalid IL or missing references) //IL_0075: Unknown result type (might be due to invalid IL or missing references) //IL_0081: Unknown result type (might be due to invalid IL or missing references) //IL_00d2: Unknown result type (might be due to invalid IL or missing references) //IL_00d3: Unknown result type (might be due to invalid IL or missing references) //IL_00d8: Unknown result type (might be due to invalid IL or missing references) //IL_00d9: Unknown result type (might be due to invalid IL or missing references) //IL_00de: Unknown result type (might be due to invalid IL or missing references) //IL_008a: Unknown result type (might be due to invalid IL or missing references) //IL_0096: Unknown result type (might be due to invalid IL or missing references) //IL_009f: Unknown result type (might be due to invalid IL or missing references) //IL_00ab: Unknown result type (might be due to invalid IL or missing references) foreach (Collider item in _near) { if ((Object)(object)item == (Object)null) { continue; } Bounds bounds = item.bounds; if (!((Bounds)(ref bounds)).Contains(p)) { continue; } BoxCollider val = (BoxCollider)(object)((item is BoxCollider) ? item : null); if ((Object)(object)val != (Object)null) { Vector3 val2 = ((Component)val).transform.InverseTransformPoint(p) - val.center; Vector3 val3 = val.size * 0.5f; if (Mathf.Abs(val2.x) <= val3.x && Mathf.Abs(val2.y) <= val3.y && Mathf.Abs(val2.z) <= val3.z) { return true; } continue; } MeshCollider val4 = (MeshCollider)(object)((item is MeshCollider) ? item : null); if (!((Object)(object)val4 != (Object)null) || val4.convex) { Vector3 val5 = item.ClosestPoint(p) - p; if (((Vector3)(ref val5)).sqrMagnitude < 1E-06f) { return true; } } } return false; } private void FindFalls() { _falls.Clear(); Rain[] array = Object.FindObjectsOfType<Rain>(); foreach (Rain obj in array) { if (_rainsField == null) { _rainsField = typeof(Rain).GetField("rains", BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic); } ParticleSystem[] array2 = ((_rainsField != null) ? (_rainsField.GetValue(obj) as ParticleSystem[]) : null); if (array2 == null) { continue; } ParticleSystem[] array3 = array2; foreach (ParticleSystem val in array3) { if ((Object)(object)val != (Object)null && !_falls.Contains(val)) { _falls.Add(val); } } } if (!_bsLooked) { _bsLooked = true; Assembly[] assemblies = AppDomain.CurrentDomain.GetAssemblies(); foreach (Assembly assembly in assemblies) { try { Type type = assembly.GetType("BetterStorm.IndoorPrecipitationExclusion", throwOnError: false); if (type != null) { _bsType = type; break; } } catch (Exception) { } } } if (_bsType != null) { Object[] array4 = Object.FindObjectsOfType(_bsType); foreach (Object obj2 in array4) { Component val2 = (Component)(object)((obj2 is Component) ? obj2 : null); ParticleSystem val3 = (((Object)(object)val2 != (Object)null) ? val2.GetComponent<ParticleSystem>() : null); if ((Object)(object)val3 != (Object)null && !_falls.Contains(val3)) { _falls.Add(val3); } } } _extra.RemoveAll((ParticleSystem p) => (Object)(object)p == (Object)null); foreach (ParticleSystem item in _extra) { if (!_falls.Contains(item)) { _falls.Add(item); } } List<ParticleSystem> list = new List<ParticleSystem>(); foreach (ParticleSystem key in _buf.Keys) { if ((Object)(object)key == (Object)null || !_falls.Contains(key)) { list.Add(key); } } foreach (ParticleSystem item2 in list) { _buf.Remove(item2); } if (!_toldFound && Log != null) { _toldFound = true; Log("indoor weather: near one of our rooms - " + _falls.Count + " falling weather system(s) kept out of " + _near.Count + " indoor zone(s) here (the game's rain" + ((_bsType != null) ? ", Better Storms' snow and rain" : "; Better Storms not in") + ")."); } } } public static class GameGlass { private sealed class Followed { public Material m; public bool done; } public const string OldAnkh = "glass window transparent"; public const string Clearer = "glass window transparent cleaner"; public const float MetresPerRepeat = 0.4f; private static readonly List<Followed> _all = new List<Followed>(); private static readonly HashSet<int> _meshesSeen = new HashSet<int>(); private static Material _src; private static string _want = "glass window transparent"; private static Action<string> _log; private static float _nextLook; private static float _scanAt = -1f; private static float _scanAgainAt = -1f; private static bool _said; private static bool _saidNone; private static int _looks; public static void Want(string materialName) { _want = materialName ?? ""; } public static Material Follow(Material m) { if ((Object)(object)m == (Object)null) { return null; } Followed followed = null; for (int num = _all.Count - 1; num >= 0; num--) { if ((Object)(object)_all[num].m == (Object)null) { _all.RemoveAt(num); } else if ((Object)(object)_all[num].m == (Object)(object)m) { followed = _all[num]; } } if (followed == null) { followed = new Followed { m = m }; _all.Add(followed); } if (!followed.done && (Object)(object)_src != (Object)null) { Turn(followed); } _scanAt = Time.unscaledTime + 1.5f; _scanAgainAt = Time.unscaledTime + 8f; return m; } public static void Ensure(GameObject host, Action<string> log) { _log = log; if ((Object)(object)host != (Object)null && (Object)(object)host.GetComponent<GameGlassRunner>() == (Object)null) { host.AddComponent<GameGlassRunner>(); } } internal static void Tick() { //IL_008e: Unknown result type (might be due to invalid IL or missing references) //IL_0093: Unknown result type (might be due to invalid IL or missing references) //IL_00cb: Expected O, but got Unknown float unscaledTime = Time.unscaledTime; if (string.IsNullOrEmpty(_want)) { return; } if ((Object)(object)_src == (Object)null && _all.Count > 0 && unscaledTime >= _nextLook) { _nextLook = unscaledTime + 4f; _looks++; try { Material[] array = Resources.FindObjectsOfTypeAll<Material>(); foreach (Material val in array) { if ((Object)(object)val != (Object)null && ((Object)val).name == _want && (Object)(object)val.shader != (Object)null) { _src = new Material(val) { name = _want + " (kept by " + typeof(GameGlass).Assembly.GetName().Name + ")" }; break; } } } catch (Exception) { } if ((Object)(object)_src != (Object)null) { foreach (Followed item in _all) { if (!item.done && (Object)(object)item.m != (Object)null) { Turn(item); } } _scanAt = unscaledTime + 0.5f; _scanAgainAt = unscaledTime + 6f; } else if (_looks == 30 && !_saidNone) { _saidNone = true; if (_log != null) { _log("the game's window glass '" + _want + "' is not in memory yet (looked " + _looks + " times) - our windows keep their own glass until it is."); } } } if (!((Object)(object)_src != (Object)null) || ((!(_scanAt > 0f) || !(unscaledTime >= _scanAt)) && (!(_scanAgainAt > 0f) || !(unscaledTime >= _scanAgainAt)))) { return; } if (_scanAt > 0f && unscaledTime >= _scanAt) { _scanAt = -1f; } else { _scanAgainAt = -1f; } try { Panes(); } catch (Exception ex2) { if (_log != null) { _log("the window panes could not be looked over - " + ex2.Message); } } } private static void Turn(Followed f) { //IL_008a: Unknown result type (might be due to invalid IL or missing references) //IL_00e0: Unknown result type (might be due to invalid IL or missing references) //IL_00e5: Unknown result type (might be due to invalid IL or missing references) try { string name = ((Object)f.m).name; f.m.shader = _src.shader; f.m.CopyPropertiesFromMaterial(_src); f.m.shaderKeywords = _src.shaderKeywords; f.m.renderQueue = _src.renderQueue; f.m.SetOverrideTag("RenderType", "Transparent"); ((Object)f.m).name = name; float num = 2.5f; f.m.mainTextureScale = new Vector2(num, num); f.done = true; if (!_said) { _said = true; if (_log != null) { _log("our windows' glass is now the game's own '" + _want + "' (the Standard shader, tint " + ((object)_src.color/*cast due to .constrained prefix*/).ToString() + ", its crinkle the normal map '" + ((_src.HasProperty("_BumpMap") && (Object)(object)_src.GetTexture("_BumpMap") != (Object)null) ? ((Object)_src.GetTexture("_BumpMap")).name : "none") + "'), one repeat to " + 0.4f.ToString("F1") + " m."); } } } catch (Exception ex) { f.done = true; if (_log != null) { _log("a window glass could not be turned into the game's - " + ex.Message + " (it keeps its own look)"); } } } private static void Panes() { //IL_017b: Unknown result type (might be due to invalid IL or missing references) //IL_018b: Unknown result type (might be due to invalid IL or missing references) //IL_0198: Unknown result type (might be due to invalid IL or missing references) //IL_0186: Unknown result type (might be due to invalid IL or missing references) //IL_0206: Unknown result type (might be due to invalid IL or missing references) //IL_01e3: Unknown result type (might be due to invalid IL or missing references) //IL_0229: Unknown result type (might be due to invalid IL or missing references) //IL_022e: Unknown result type (might be due to invalid IL or missing references) HashSet<Material> hashSet = new HashSet<Material>(); foreach (Followed item in _all) { if (item.done && (Object)(object)item.m != (Object)null) { hashSet.Add(item.m); } } if (hashSet.Count == 0) { return; } int num = 0; int num2 = 0; int num3 = 0; MeshRenderer[] array = Resources.FindObjectsOfTypeAll<MeshRenderer>(); foreach (MeshRenderer val in array) { if ((Object)(object)val == (Object)null) { continue; } Material[] sharedMaterials = ((Renderer)val).sharedMaterials; bool flag = false; for (int j = 0; j < sharedMaterials.Length; j++) { if ((Object)(object)sharedMaterials[j] != (Object)null && hashSet.Contains(sharedMaterials[j])) { flag = true; break; } } if (!flag) { continue; } MeshFilter component = ((Component)val).GetComponent<MeshFilter>(); Mesh val2 = (((Object)(object)component != (Object)null) ? component.sharedMesh : null); if ((Object)(object)val2 == (Object)null || !_meshesSeen.Add(((Object)val2).GetInstanceID())) { continue; } if (!val2.isReadable || sharedMaterials.Length != 1) { num3++; continue; } Vector3[] vertices = val2.vertices; Vector3[] normals = val2.normals; Vector2[] uv = val2.uv; if (uv == null || uv.Length != vertices.Length) { uv = (Vector2[])(object)new Vector2[vertices.Length]; for (int k = 0; k < vertices.Length; k++) { Vector3 val3 = ((normals != null && normals.Length == vertices.Length) ? normals[k] : Vector3.forward); float num4 = Mathf.Abs(val3.x); float num5 = Mathf.Abs(val3.y); float num6 = Mathf.Abs(val3.z); uv[k] = ((num5 >= num4 && num5 >= num6) ? new Vector2(vertices[k].x, vertices[k].z) : ((num4 >= num6) ? new Vector2(vertices[k].z, vertices[k].y) : new Vector2(vertices[k].x, vertices[k].y))); } val2.uv = uv; num++; } Vector4[] tangents = val2.tangents; if (tangents == null || tangents.Length != vertices.Length) { if (normals == null || normals.Length != vertices.Length) { val2.RecalculateNormals(); } val2.RecalculateTangents(); num2++; } } if ((num > 0 || num2 > 0) && _log != null) { _log("window panes made ready for the crinkled glass: " + num + " given picture places, " + num2 + " given tangents" + ((num3 > 0) ? ("; " + num3 + " left as their models made them") : "") + "."); } } } public sealed class GameGlassRunner : MonoBehaviour { private void Update() { try { GameGlass.Tick(); } catch (Exception) { } } } internal static class DockHold { internal const string HarmonyId = "com.dixiecapt.shared.dockhold"; internal const float MaxHold = 90f; private static Func<bool> _on; private static Action<string> _log; private static readonly Dictionary<Rigidbody, float> _since = new Dictionary<Rigidbody, float>(); private static readonly HashSet<Rigidbody> _holding = new HashSet<Rigidbody>(); internal static string Arm(Func<bool> on, Action<string> log) { //IL_0082: Unknown result type (might be due to invalid IL or missing references) //IL_0099: Unknown result type (might be due to invalid IL or missing references) //IL_00a6: Expected O, but got Unknown MethodInfo methodInfo = AccessTools.Method(typeof(BoatHorizon), "UpdateKinematic", (Type[])null, (Type[])null); if (methodInfo == null) { return "the dock hold NOT fitted - BoatHorizon.UpdateKinematic was not found (a game update?)"; } Patches patchInfo = Harmony.GetPatchInfo((MethodBase)methodInfo); if (patchInfo != null) { foreach (Patch postfix in patchInfo.Postfixes) { if (postfix.owner == "com.dixiecapt.shared.dockhold") { return "the dock hold is fitted by another of our mods (its F1 switch counts)"; } } } _on = on; _log = log; new Harmony("com.dixiecapt.shared.dockhold").Patch((MethodBase)methodInfo, (HarmonyMethod)null, new HarmonyMethod(typeof(DockHold), "Post", (Type[])null), (HarmonyMethod)null, (HarmonyMethod)null, (HarmonyMethod)null); return "the dock hold fitted - a boat whose mooring rope was saved tied is kept still until its mooring is there (at most " + 90f.ToString("F0") + " s)"; } private static void Post(BoatHorizon __instance, Rigidbody ___rigidbody) { try { Check(__instance, ___rigidbody); } catch (Exception) { } } private static void Check(BoatHorizon h, Rigidbody rb) { //IL_018a: Unknown result type (might be due to invalid IL or missing references) if ((Object)(object)h == (Object)null || (Object)(object)rb == (Object)null) { return; } if (_on != null && !_on()) { if (_since.Count > 0) { _since.Clear(); _holding.Clear(); } return; } Transform parent = ((Component)h).transform.parent; if ((Object)(object)parent == (Object)null) { return; } bool flag = false; BoatMooringRopes component = ((Component)parent).GetComponent<BoatMooringRopes>(); if ((Object)(object)component != (Object)null && component.ropes != null && (Object)(object)Refs.shiftingWorld != (Object)null) { PickupableBoatMooringRope[] ropes = component.ropes; foreach (PickupableBoatMooringRope val in ropes) { if ((Object)(object)val != (Object)null && (Object)(object)((Component)val).transform.parent == (Object)(object)Refs.shiftingWorld && !val.IsMoored() && (Object)(object)((PickupableItem)val).held == (Object)null) { flag = true; break; } } } float value; if (!flag) { if (_since.TryGetValue(rb, out value)) { _since.Remove(rb); if (_holding.Remove(rb)) { Say("'" + ((Object)parent).name + "' let go - its mooring rope is on its mooring (held " + (Time.time - value).ToString("F1") + " s)."); } } return; } if (GameState.currentlyLoading || !GameState.playing || !h.closeToPlayer) { _since.Remove(rb); _holding.Remove(rb); return; } if (!IslandLoad.NearAt(parent.position)) { _since.Remove(rb); if (!rb.isKinematic) { rb.isKinematic = true; } if (_holding.Add(rb)) { Say("'" + ((Object)parent).name + "' held still - a mooring rope saved tied waits for its island to load (its dock is built then)."); } return; } if (!_since.TryGetValue(rb, out value)) { value = Time.time; _since[rb] = value; } if (Time.time - value > 90f) { if (_holding.Remove(rb)) { Say("'" + ((Object)parent).name + "' let go after " + 90f.ToString("F0") + " s - its rope's mooring never came (a dock switched off or gone?); the rope is left lying where it was tied, as the game leaves it."); } } else { if (!rb.isKinematic) { rb.isKinematic = true; } if (_holding.Add(rb)) { Say("'" + ((Object)parent).name + "' held still - a mooring rope saved tied waits for its mooring (our docks are built after the game lets boats go)."); } } } private static void Say(string s) { try { if (_log != null) { _log(s); } } catch (Exception) { } } } internal static class GameKeepers { internal sealed class Face { public string who; public string mat; public string[] parts; } internal static readonly string[] Uniform = new string[9] { "Chr_Torso_Male_04", "Chr_ArmUpperRight_Male_20", "Chr_ArmUpperLeft_Male_20", "Chr_ArmLowerRight_Male_18", "Chr_ArmLowerLeft_Male_18", "Chr_Hips_Male_05", "Chr_LegRight_Male_19", "Chr_LegLeft_Male_19", "Chr_HeadCoverings_Base_Hair_02" }; private static readonly Color Red = new Color(0.5f, 0.11f, 0.09f); private static readonly Color Buff = new Color(0.78f, 0.7f, 0.54f); private static readonly Color White = new Color(0.85f, 0.83f, 0.77f); private static readonly Color Black = new Color(0.09f, 0.085f, 0.08f); private static readonly Color Brass = new Color(0.7f, 0.56f, 0.27f); private static readonly Color Pewter = new Color(0.55f, 0.55f, 0.53f); private static readonly Color DarkLeather = new Color(0.22f, 0.16f, 0.11f); internal static readonly Face GoldRockMarket = new Face { who = "the Gold Rock market keeper", mat = "NPC AlAnkh", parts = new string[6] { "Chr_Head_Male_00", "Chr_Eyebrow_Male_04", "Chr_FacialHair_Male_12", "Chr_HandRight_Male_00", "Chr_HandLeft_Male_00", "Chr_Hair_06" } }; internal static readonly Face GoldRockInn = new Face { who = "the Gold Rock innkeeper", mat = "NPC AlAnkh", parts = new string[6] { "Chr_Head_Male_00", "Chr_Eyebrow_Male_06", "Chr_FacialHair_Male_01", "Chr_HandRight_Male_03", "Chr_HandLeft_Male_03", "Chr_Hair_05" } }; internal static readonly Face OasisPort = new Face { who = "the Oasis port's trade man", mat = "NPC AlAnkh", parts = new string[6] { "Chr_Head_Male_00", "Chr_Eyebrow_Male_06", "Chr_FacialHair_Male_12", "Chr_HandRight_Male_00", "Chr_HandLeft_Male_00", "Chr_Hair_12" } }; internal static readonly Face AlNilemPort = new Face { who = "the Al'Nilem port's trade man", mat = "NPC AlAnkh", parts = new string[6] { "Chr_Head_Male_00", "Chr_Eyebrow_Male_01", "Chr_FacialHair_Male_01", "Chr_HandRight_Male_00", "Chr_HandLeft_Male_00", "Chr_Hair_18" } }; internal static readonly Face KiciaManager = new Face { who = "the Kicia Bay work manager", mat = "NPC East Swamp", parts = new string[6] { "Chr_Head_Male_03", "Chr_Eyebrow_Male_07", "Chr_FacialHair_Male_07", "Chr_HandRight_Male_08", "Chr_HandLeft_Male_08", "Chr_Hair_10" } }; private static GameObject _src; private static GameObject Source() { //IL_0030: Unknown result type (might be due to invalid IL or missing references) //IL_0035: Unknown result type (might be due to invalid IL or missing references) if ((Object)(object)_src != (Object)null) { return _src; } PortDude[] array = Resources.FindObjectsOfTypeAll<PortDude>(); foreach (PortDude val in array) { if ((Object)(object)val == (Object)null) { continue; } Scene scene = ((Component)val).gameObject.scene; if (((Scene)(ref scene)).IsValid() && ((Object)val).name.IndexOf("test", StringComparison.OrdinalIgnoreCase) < 0) { CharacterCustomizer componentInChildren = ((Component)val).GetComponentInChildren<CharacterCustomizer>(true); if ((Object)(object)componentInChildren != (Object)null) { _src = ((Component)componentInChildren).gameObject; break; } } } return _src; } private static Material GameMat(string name) { Material[] array = Resources.FindObjectsOfTypeAll<Material>(); foreach (Material val in array) { if ((Object)(object)val != (Object)null && ((Object)val).name == name && (Object)(object)val.shader != (Object)null && ((Object)val.shader).name.IndexOf("CustomCharacter", StringComparison.Ordinal) >= 0) { return val; } } return null; } private static void Set(Material m, string slot, Color c) { //IL_0014: Unknown result type (might be due to invalid IL or missing references) if ((Object)(object)m != (Object)null && m.HasProperty(slot)) { m.SetColor(slot, c); } } internal static GameObject Make(Transform parent, string name, Vector3 at, float yaw, Face face, List<Object> own, out string said) { //IL_005d: Unknown result type (might be due to invalid IL or missing references) //IL_0063: Expected O, but got Unknown //IL_007d: Unknown result type (might be due to invalid IL or missing references) //IL_0094: Unknown result type (might be due to invalid IL or missing references) //IL_00e1: Unknown result type (might be due to invalid IL or missing references) //IL_00e6: Unknown result type (might be due to invalid IL or missing references) //IL_00ee: Unknown result type (might be due to invalid IL or missing references) //IL_00fe: Unknown result type (might be due to invalid IL or missing references) //IL_010e: Unknown result type (might be due to invalid IL or missing references) //IL_0310: Unknown result type (might be due to invalid IL or missing references) //IL_0315: Unknown result type (might be due to invalid IL or missing references) //IL_0333: Expected O, but got Unknown //IL_0334: Unknown result type (might be due to invalid IL or missing references) //IL_0339: Unknown result type (might be due to invalid IL or missing references) //IL_0357: Expected O, but got Unknown //IL_0358: Unknown result type (might be due to invalid IL or missing references) //IL_035d: Unknown result type (might be due to invalid IL or missing references) //IL_037b: Expected O, but got Unknown //IL_037c: Unknown result type (might be due to invalid IL or missing references) //IL_0381: Unknown result type (might be due to invalid IL or missing references) //IL_039f: Expected O, but got Unknown //IL_012d: Unknown result type (might be due to invalid IL or missing references) //IL_03ce: Unknown result type (might be due to invalid IL or missing references) //IL_03df: Unknown result type (might be due to invalid IL or missing references) //IL_03f0: Unknown result type (might be due to invalid IL or missing references) //IL_0401: Unknown result type (might be due to invalid IL or missing references) //IL_0412: Unknown result type (might be due to invalid IL or missing references) //IL_0423: Unknown result type (might be due to invalid IL or missing references) //IL_0434: Unknown result type (might be due to invalid IL or missing references) //IL_0445: Unknown result type (might be due to invalid IL or missing references) //IL_0456: Unknown result type (might be due to invalid IL or missing references) //IL_0467: Unknown result type (might be due to invalid IL or missing references) //IL_0478: Unknown result type (might be due to invalid IL or missing references) //IL_0489: Unknown result type (might be due to invalid IL or missing references) //IL_049a: Unknown result type (might be due to invalid IL or missing references) //IL_04ab: Unknown result type (might be due to invalid IL or missing references) //IL_04bc: Unknown result type (might be due to invalid IL or missing references) //IL_04cd: Unknown result type (might be due to invalid IL or missing references) //IL_04de: Unknown result type (might be due to invalid IL or missing references) //IL_04ef: Unknown result type (might be due to invalid IL or missing references) //IL_0135: Unknown result type (might be due to invalid IL or missing references) //IL_0154: Unknown result type (might be due to invalid IL or missing references) //IL_015c: Unknown result type (might be due to invalid IL or missing references) //IL_017b: Unknown result type (might be due to invalid IL or missing references) //IL_0183: Unknown result type (might be due to invalid IL or missing references) //IL_02c7: Unknown result type (might be due to invalid IL or missing references) //IL_027c: Unknown result type (might be due to invalid IL or missing references) said = null; GameObject val = Source(); if ((Object)(object)val == (Object)null) { said = "no game figure to copy (no port dude found)"; return null; } Material val2 = GameMat(face.mat) ?? GameMat("NPC AlAnkh"); if ((Object)(object)val2 == (Object)null) { said = "the game's '" + face.mat + "' material not found"; return null; } GameObject val3 = new GameObject(name); val3.layer = 2; val3.transform.SetParent(parent, false); val3.transform.localPosition = at; val3.transform.localRotation = Quaternion.Euler(0f, yaw, 0f); Rigidbody obj = val3.AddComponent<Rigidbody>(); obj.isKinematic = true; obj.useGravity = false; GameObject val4 = Object.Instantiate<GameObject>(val, val3.transform, false); ((Object)val4).name = "Modular NPC (" + face.who + ", in uniform)"; Vector3 lossyScale = val3.transform.lossyScale; val4.transform.localPosition = Vector3.zero; val4.transform.localRotation = Quaternion.identity; val4.transform.localScale = new Vector3((Mathf.Abs(lossyScale.x) > 0.0001f) ? (1f / lossyScale.x) : 1f, (Mathf.Abs(lossyScale.y) > 0.0001f) ? (1f / lossyScale.y) : 1f, (Mathf.Abs(lossyScale.z) > 0.0001f) ? (1f / lossyScale.z) : 1f); val4.layer = 2; CharacterCustomizer component = val4.GetComponent<CharacterCustomizer>(); if ((Object)(object)component != (Object)null) { ((Behaviour)component).enabled = false; Object.Destroy((Object)(object)component); } Component[] componentsInChildren = val4.GetComponentsInChildren<Component>(true); foreach (Component val5 in componentsInChildren) { if ((Object)(object)val5 != (Object)null && ((object)val5).GetType().Name.IndexOf("Outline", StringComparison.Ordinal) >= 0) { Object.Destroy((Object)(object)val5); } } try { NPCAnimations component2 = val.GetComponent<NPCAnimations>(); NPCAnimations component3 = val4.GetComponent<NPCAnimations>(); if ((Object)(object)component2 != (Object)null && (Object)(object)component3 != (Object)null) { Traverse val6 = Traverse.Create((object)component2); Quaternion[] value = val6.Field("baseRots").GetValue<Quaternion[]>(); if (value != null && component3.breatheParts != null) { for (int j = 0; j < value.Length && j < component3.breatheParts.Length; j++) { if ((Object)(object)component3.breatheParts[j] != (Object)null) { component3.breatheParts[j].localRotation = value[j]; } } } if (value != null && (Object)(object)component3.head != (Object)null) { component3.head.localRotation = val6.Field("headInitialRot").GetValue<Quaternion>(); } } } catch (Exception) { } HashSet<string> hashSet = new HashSet<string>(face.parts); string[] uniform = Uniform; foreach (string item in uniform) { hashSet.Add(item); } Material val7 = new Material(val2) { name = ((Object)val2).name + " (" + name + ")" }; Material val8 = new Material(val2) { name = ((Object)val2).name + " (" + name + " coat)" }; Material val9 = new Material(val2) { name = ((Object)val2).name + " (" + name + " breeches)" }; Material val10 = new Material(val2) { name = ((Object)val2).name + " (" + name + " hat)" }; if (own != null) { own.Add((Object)(object)val7); own.Add((Object)(object)val8); own.Add((Object)(object)val9); own.Add((Object)(object)val10); } Set(val8, "_Color_Primary", Red); Set(val8, "_Color_Secondary", Buff); Set(val8, "_Color_Metal_Primary", Brass); Set(val8, "_Color_Metal_Secondary", Pewter); Set(val8, "_Color_Metal_Dark", White); Set(val8, "_Color_Leather_Primary", Black); Set(val8, "_Color_Leather_Secondary", DarkLeather); Set(val9, "_Color_Leather_Primary", Black); Set(val9, "_Color_Leather_Secondary", Black); Set(val9, "_Color_Metal_Dark", Buff); Set(val9, "_Color_Secondary", Brass); Set(val9, "_Color_Primary", Red); Set(val9, "_Color_Metal_Primary", Brass); Set(val10, "_Color_Metal_Dark", Black); Set(val10, "_Color_Leather_Primary", DarkLeather); Set(val10, "_Color_Metal_Primary", Brass); Set(val10, "_Color_Primary", Black); Set(val10, "_Color_Secondary", Black); int num = 0; HashSet<string> hashSet2 = new HashSet<string>(); SkinnedMeshRenderer[] componentsInChildren2 = val4.GetComponentsInChildren<SkinnedMeshRenderer>(true); foreach (SkinnedMeshRenderer val11 in componentsInChildren2) { if ((Object)(object)val11 == (Object)null) { continue; } string name2 = ((Object)((Component)val11).gameObject).name; if (!hashSet.Contains(name2) || hashSet2.Contains(name2)) { Object.Destroy((Object)(object)((Component)val11).gameObject); continue; } hashSet2.Add(name2); Transform val12 = ((Component)val11).transform; while ((Object)(object)val12 != (Object)null && (Object)(object)val12 != (Object)(object)val4.transform) { if (!((Component)val12).gameObject.activeSelf) { ((Component)val12).gameObject.SetActive(true); } val12 = val12.parent; } bool flag = name2.Contains("Torso") || name2.Contains("ArmUpper") || name2.Contains("ArmLower") || name2.Contains("Hips"); ((Renderer)val11).sharedMaterial = (flag ? val8 : (name2.Contains("_Leg") ? val9 : (name2.Contains("HeadCoverings") ? val10 : val7))); num++; } List<string> list = new List<string>(); foreach (string item2 in hashSet) { if (!hashSet2.Contains(item2)) { list.Add(item2); } } said = name + ": " + face.who + "'s face in the garrison's uniform (" + num + " parts" + ((list.Count > 0) ? ("; not found: " + string.Join(", ", list.ToArray())) : "") + ")"; return val3; } internal static bool Seen(GameObject keeper) { if ((Object)(object)keeper == (Object)null) { return false; } SkinnedMeshRenderer[] componentsInChildren = keeper.GetComponentsInChildren<SkinnedMeshRenderer>(false); foreach (SkinnedMeshRenderer val in componentsInChildren) { if ((Object)(object)val != (Object)null && ((Renderer)val).isVisible) { return true; } } return false; } } internal static class TamarackNames { internal const string IslandPath = "_shifting world/Dalkey Island (Martello Tower)"; internal const string Camp = "Tamarack camp (Martello Tower)"; internal const string OfficeName = "office (Tamarack camp)"; internal const string Office = "Tamarack camp (Martello Tower)/office (Tamarack camp)"; internal const string PadName = "stacking ground (Tamarack camp)"; internal const string Pad = "Tamarack camp (Martello Tower)/stacking ground (Tamarack camp)"; internal const string FarmKey = "SailwindFarming.tamarack.farm"; internal const int Coin = 2; internal const string BigIsland = "Tamarack"; internal const string CampName = "Tamarack"; internal const string Lighthouse = "Dalkey Lighthouse"; internal const string Chain = "Dalkey Islands"; internal const string Lagoon = "Tamarack Lagoon"; } internal static class IslandLoad { internal static Action<string> Log; private const string TurnKey = "Dixiecapt.IslandLoad.BuildFrame"; private static readonly Dictionary<IslandHorizon, bool> _wasNear = new Dictionary<IslandHorizon, bool>(); private static readonly Dictionary<IslandHorizon, int> _epoch = new Dictionary<IslandHorizon, int>(); private static int _polled = -1; private static bool _loadPending; private static float _freeUntil = -1f; private static readonly List<IslandHorizon> _extra = new List<IslandHorizon>(); private static int _nearFrame = -100; internal static int NearTotal; private static bool _refused; internal static IslandHorizon Horizon(int idx) { try { if (Refs.islands != null && idx >= 0 && idx < Refs.islands.Length && (Object)(object)Refs.islands[idx] != (Object)null) { return ((Component)Refs.islands[idx]).GetComponent<IslandHorizon>(); } } catch (Exception) { } return null; } internal static IslandHorizon HorizonOf(Transform t) { Transform val = t; while ((Object)(object)val != (Object)null) { IslandHorizon component = ((Component)val).GetComponent<IslandHorizon>(); if ((Object)(object)component != (Object)null) { return component; } val = val.parent; } return null; } internal static bool Near(IslandHorizon h) { if ((Object)(object)h != (Object)null) { return h.currentDistance < h.islandLoadDistance; } return false; } internal static bool Near(int idx) { return Near(Horizon(idx)); } internal static bool Near(Transform t) { return Near(HorizonOf(t)); } internal static bool InSight(IslandHorizon h) { if ((Object)(object)h != (Object)null) { return h.currentDistance < h.fullySunkDistance; } return false; } internal static bool InSight(int idx) { return InSight(Horizon(idx)); } internal static bool NearAt(Vector3 p) { //IL_004d: Unknown result type (might be due to invalid IL or missing references) //IL_0052: Unknown result type (might be due to invalid IL or missing references) //IL_0053: Unknown result type (might be due to invalid IL or missing references) //IL_0058: Unknown result type (might be due to invalid IL or missing references) IslandHorizon val = null; float num = float.MaxValue; List<IslandHorizon> list = null; try { list = (((Object)(object)IslandDistanceTracker.instance != (Object)null) ? IslandDistanceTracker.instance.islands : null); } catch (Exception) { } if (list == null) { return true; } foreach (IslandHorizon item in list) { if (!((Object)(object)item == (Object)null)) { Vector3 val2 = item.GetPosition() - p; float sqrMagnitude = ((Vector3)(ref val2)).sqrMagnitude; if (sqrMagnitude < num) { num = sqrMagnitude; val = item; } } } if (!((Object)(object)val == (Object)null)) { return Near(val); } return true; } internal static bool InSight(Transform t) { return InSight(HorizonOf(t)); } internal static void Poll() { if (_polled == Time.frameCount) { return; } _polled = Time.frameCount; if (_loadPending && GameState.playing && !GameState.currentlyLoading) { _loadPending = false; _freeUntil = Time.time + 4f; } if (Refs.islands == null) { return; } for (int i = 0; i < Refs.islands.Length; i++) { Transform val = Refs.islands[i]; if (!((Object)(object)val == (Object)null)) { IslandHorizon component = ((Component)val).GetComponent<IslandHorizon>(); if (!((Object)(object)component == (Object)null)) { Note(component); } } } for (int num = _extra.Count - 1; num >= 0; num--) { if ((Object)(object)_extra[num] == (Object)null) { _extra.RemoveAt(num); } else { Note(_extra[num]); } } } private static void Note(IslandHorizon h) { bool flag = Near(h); if (!_wasNear.TryGetValue(h, out var value) || value != flag) { _wasNear[h] = flag; if (flag) { _epoch.TryGetValue(h, out var value2); _epoch[h] = value2 + 1; NearTotal++; _nearFrame = Time.frameCount; } } } internal static bool TickNow(ref float next, ref int seen, float every) { Poll(); bool flag = TakeRefused() || Time.frameCount - _nearFrame <= 2; if (Time.time < next && !flag && seen == NearTotal) { return false; } next = Time.time + every; seen = NearTotal; return true; } internal static int NearCount(IslandHorizon h) { if ((Object)(object)h == (Object)null) { return 0; } if (!_wasNear.ContainsKey(h)) { if (!_extra.Contains(h)) { _extra.Add(h); } Note(h); } _epoch.TryGetValue(h, out var value); return value; } internal static bool Due(ref float next, ref int seen, IslandHorizon h, float every) { Poll(); int num = NearCount(h); if (Time.time < next && num == seen) { return false; } next = Time.time + every; seen = num; return true; } internal static bool Due(ref float next, ref int seen, int idx, float every) { return Due(ref next, ref seen, Horizon(idx), every); } internal static void Loaded() { _loadPending = true; } internal static bool BuildTurn() { Poll(); if (_loadPending || Time.time < _freeUntil || !GameState.playing) { return true; } int frameCount = Time.frameCount; object obj = null; try { obj = AppDomain.CurrentDomain.GetData("Dixiecapt.IslandLoad.BuildFrame"); } catch (Exception) { } if (obj is int && (int)obj == frameCount) { _refused = true; return false; } try { AppDomain.CurrentDomain.SetData("Dixiecapt.IslandLoad.BuildFrame", frameCount); } catch (Exception) { } return true; } internal static bool TakeRefused() { bool refused = _refused; _refused = false; return refused; } internal static bool Join(GameObject go, bool landmark) { if ((Object)(object)go == (Object)null) { return false; } IslandHorizon val = HorizonOf(go.transform.parent); if ((Object)(object)val == (Object)null) { if (Log != null) { Log("IslandLoad: '" + ((Object)go).name + "' is under no island - left shown."); } return false; } IslandShowHide islandShowHide = ((Component)val).GetComponent<IslandShowHide>(); if ((Object)(object)islandShowHide == (Object)null) { islandShowHide = ((Component)val).gameObject.AddComponent<IslandShowHide>(); } islandShowHide.Add(go, landmark); return true; } internal static void Leave(GameObject go) { if ((Object)(object)go == (Object)null) { return; } IslandHorizon val = HorizonOf(go.transform.parent); if (!((Object)(object)val == (Object)null)) { IslandShowHide component = ((Component)val).GetComponent<IslandShowHide>(); if ((Object)(object)component != (Object)null) { component.Remove(go); } } } } internal sealed class IslandShowHide : MonoBehaviour { private static FieldInfo _fPartFlag; private static FieldInfo _fFullFlag; private static FieldInfo _fPartList; private static FieldInfo _fFullList; private static bool _fTried; private IslandHorizon _h; private readonly List<GameObject> _part = new List<GameObject>(); private readonly List<GameObject> _full = new List<GameObject>(); private bool _started; private bool _partFlag; private bool _fullFlag; private bool _partShown = true; private bool _fullShown = true; private void Begin() { if (_started) { return; } _started = true; _h = ((Component)this).GetComponent<IslandHorizon>(); Component component = (Component)(object)((Component)this).GetComponent<IslandPerformanceSwitcher>(); if ((Object)(object)component == (Object)null) { return; } try { if (!_fTried) { _fTried = true; Type? typeFromHandle = typeof(IslandPerformanceSwitcher); _fPartFlag = typeFromHandle.GetField("partiallyHidden", BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic); _fFullFlag = typeFromHandle.GetField("fullyHidden", BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic); _fPartList = typeFromHandle.GetField("partialHideObjects", BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic); _fFullList = typeFromHandle.GetField("fullHideObjects", BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic); } if (_fPartFlag != null) { _partFlag = (bool)_fPartFlag.GetValue(component); } if (_fFullFlag != null) { _fullFlag = (bool)_fFullFlag.GetValue(component); } _partShown = Sample(_fPartList, component, _partFlag); _fullShown = Sample(_fFullList, component, _fullFlag); } catch (Exception ex) { if (IslandLoad.Log != null) { IslandLoad.Log("IslandLoad: the game's switch on '" + ((Object)this).name + "' not read (" + ex.Message + ") - ours start from the distance."); } Measure(force: true); } } private static bool Sample(FieldInfo f, Component game, bool flag) { if (f == null) { return flag; } if (f.GetValue(game) is List<GameObject> list) { foreach (GameObject item in list) { if ((Object)(object)item != (Object)null) { return item.activeSelf; } } } return true; } private void Measure(bool force) { if (!((Object)(object)_h == (Object)null)) { bool flag = _h.currentDistance < _h.islandLoadDistance; bool flag2 = _h.currentDistance < _h.fullySunkDistance; if (force || flag != _partFlag) { _partFlag = flag; _partShown = flag; Set(_part, flag); } if (force || flag2 != _fullFlag) { _fullFlag = flag2; _fullShown = flag2; Set(_full, flag2); } } } private static void Set(List<GameObject> list, bool on) { for (int num = list.Count - 1; num >= 0; num--) { GameObject val = list[num]; if ((Object)(object)val == (Object)null) { list.RemoveAt(num); } else if (val.activeSelf != on) { val.SetActive(on); } } } internal void Add(GameObject go, bool landmark) { Begin(); Measure(force: false); _part.Remove(go); _full.Remove(go); (landmark ? _full : _part).Add(go); bool flag = (landmark ? _fullShown : _partShown); if (go.activeSelf != flag) { go.SetActive(flag); } } internal void Remove(GameObject go) { _part.Remove(go); _full.Remove(go); if ((Object)(object)go != (Object)null && !go.activeSelf) { go.SetActive(true); } } private void Update() { Begin(); Measure(force: false); } } internal static class TextureLook { private sealed class Pick { public string key; public string mode; public string mat; public string tex; public string layer; public int w; public int h; public bool hasUv; public Rect uv; public float tile; public bool hasFlat; public Color flat; public bool fromOurs; public bool card; public bool turned; } private sealed class Row { public string id; public string pick; public string kind; public bool hasOurs; public Color ours; } private sealed class Job { public Renderer r; public int slot; public Material m; public string id; } private sealed class Done { public Material m; public Material snap; } private sealed class Swap { public Renderer r; public int slot; public Material was; public Material now; } private sealed class LayerWas { public Object layer; public Texture tex; public Vector2 tile; } internal const string Section = "Look"; internal const string Key = "Texture look"; internal const string Detailed = "Detailed"; internal const string Plain = "Plain"; internal const string Stock = "Stock Sailwind"; private static Dictionary<string, Pick> _picks; private static Dictionary<string, Row> _rows; private static Dictionary<string, string> _sigs; private static readonly string Scope = ScopeOf(typeof(TextureLook).Assembly.GetName().Name); private static ConfigEntry<string> _cfg; private static Action<string> _log; private static string _who = ""; private static bool _perPart; private static bool _started; private static readonly Dictionary<int, string> _texIds = new Dictionary<int, string>(); private static readonly Dictionary<int, string> _matIds = new Dictionary<int, string>(); private static readonly List<Transform> _kept = new List<Transform>(); private static readonly HashSet<string> _saidKept = new HashSet<string>(); private static string _applied = "Detailed"; private static float _scanAt = 2f; private static float _scanAgainAt = -1f; private static float _nextRound; private static float _playingSince = -1f; private static readonly Queue<Job> _queue = new Queue<Job>(); private static readonly HashSet<int> _queued = new HashSet<int>(); private static int _changed; private static int _parts; private static bool _saidRound; private static readonly Dictionary<int, Done> _done = new Dictionary<int, Done>(); private static readonly List<Swap> _swaps = new List<Swap>(); private static readonly Dictionary<int, Material> _copies = new Dictionary<int, Material>(); private static readonly HashSet<int> _copyIds = new HashSet<int>(); private static readonly HashSet<int> _notOurs = new HashSet<int>(); private static readonly HashSet<int> _leftAlone = new HashSet<int>(); private static readonly HashSet<string> _warned = new HashSet<string>(); private static readonly Dictionary<int, float> _mPerUv = new Dictionary<int, float>(); private static Dictionary<string, List<Material>> _gameMats; private static float _gameMatsAt = -100f; private static readonly Dictionary<string, Material> _matOf = new Dictionary<string, Material>(); private static readonly Dictionary<string, Texture> _texOf = new Dictionary<string, Texture>(); private static Type _layerType; private static PropertyInfo _layerDiffuse; private static PropertyInfo _layerTile; private static bool _layerTried; private static readonly Dictionary<int, Texture2D> _plain = new Dictionary<int, Texture2D>(); private static readonly List<LayerWas> _layers = new List<LayerWas>(); private static readonly HashSet<int> _layerSeen = new HashSet<int>(); internal static readonly string[] PickTable = new string[50] { "boards_aestrin|atlas_cut|buildings_M_paint|buildings M paint Diffuse Color|8192|8192||0.523 0.678 0.075 0.117|1.2|0.455 0.337 0.306 1|0|0|0", "boards_emerald|atlas_cut|buildings_E_paint|buildings E paint Diffuse Color|8192|8192||0.69 0.402 0.084 0.261|2.4|0.345 0.212 0.2 1|0|0|0", "boards_plain|atlas_cut|Z planks|junk large_Z planks_Albedo|4096|4096||0.012 0.015 0.256 0.4|2|0.384 0.259 0.188 1|0|0|1", "plaster_aestrin|atlas_cut|buildings_M_paint|buildings M paint Diffuse Color|8192|8192||0.74 0.65 0.09 0.105|3|0.627 0.533 0.475 1|0|0|0", "plaster_alankh|atlas_cut|buildings_A_paint|buildings A paint Diffuse Color|8192|8192||0.012 0.297 0.062 0.051|3|0.839 0.682 0.561 1|0|0|0", "roof_aestrin|atlas_cut|buildings_M_paint|buildings M paint Diffuse Color|8192|8192||0.015 0.015 0.11 0.195|4|0.525 0.239 0.196 1|0|0|0", "roof_emerald|atlas_cut|buildings_E_paint|buildings E paint Diffuse Color|8192|8192||0.557 0.207 0.06 0.143|2|0.412 0.243 0.235 1|0|0|0", "thatch|atlas_cut|buildings_E_paint|buildings E paint Diffuse Color|8192|8192||0.005 0.357 0.076 0.148|2|0.404 0.286 0.255 1|0|0|0", "stone_aestrin|atlas_cut|buildings_M_paint|buildings M paint Diffuse Color|8192|8192||0.14 0.602 0.116 0.119|2|0.561 0.478 0.431 1|0|0|0", "stone_dressed|material_copy|cobblestone|island cave church town_cobblestone_Albedo|4096|4096|||4|0.539 0.5 0.443 1|0|0|0", "stone_rough|material_copy|cliffrock|island cave church town_cliffrock_Albedo|4096|4096|||8|0.615 0.577 0.493 1|0|0|0", "stone_blocks_grey|material_copy|metal chronos roof|diffuse|1024|1024|||2|0.379 0.373 0.362 1|0|0|0", "rock|texture||hp_01|256|256|Rock 2||12|0.578 0.557 0.509 1|0|0|0", "brick_red|texture||Brick_05|512|512|Cobblestone Chaotic Red||3|0.695 0.49 0.394 1|0|0|0", "paving_grey|texture||Brick_03|256|256|Cobblestone Grid||3|0.539 0.526 0.492 1|0|0|0", "beam|flat_material|wood2||0|0|||0|0.34 0.258 0.235 1|0|0|0", "wood_light|flat_material|wood3||0|0|||0|0.623 0.485 0.397 1|0|0|0", "wood_warm|flat_material|wood1||0|0|||0|0.424 0.285 0.23 1|0|0|0", "bark|material_copy|tree wood tex|Tree Leaves 1 edited|512|512|||1.5|0.586 0.581 0.491 1|0|0|0", "bark_palm|material_copy|palm tree bark|palm_bark|128|256|||1|0.502 0.448 0.378 1|0|0|0", "canvas|material_copy|sail cloth test|ParticleCloudWhite|256|256|||2|1 1 1 1|1|0|0", "rope|material_copy|rope|QPHiResRope.bmp1494e1a0-4267-48de-a564-e98d9d71b959Original|256|256|||0.3|0.676 0.637 0.592 1|0|0|0", "rope_flat|flat_material|rope static||0|0|||0|0.406 0.36 0.331 1|0|0|0", "iron|flat_material|metal2||0|0|||0|0.11 0.145 0.151 1|0|0|0", "brass|flat_material|metal gold||0|0|||0|0.736 0.557 0.198 1|0|0|0", "tin|flat_material|metal3 (anchor)||0|0|||0|0.608 0.693 0.737 1|0|0|0", "soot|flat_material|wood4||0|0|||0|0.094 0.085 0.079 1|0|0|0", "terracotta|flat_material|Material_001||0|0|||0|0.615 0.312 0.256 1|0|0|0", "soil|texture||Dirt_01|256|256|Dirt||6|0.402 0.338 0.246 1|0|0|0", "field|texture||Dirt_03|256|256|Field 2||6|0.415 0.347 0.248 1|0|0|0", "mulch|texture||Dirt_04|256|256|Grass Brown||6|0.409 0.337 0.233 1|0|0|0", "path|texture||Dirt_02|256|256|Sand Path||6|0.404 0.346 0.236 1|0|0|0", "sand|texture||hp_earth_ground light|256|256|Sand Rocky||6|0.809 0.702 0.577 1|0|0|0", "gravel|texture||diffuse|1024|1024|Volcano Rock||6|0.457 0.463 0.461 1|0|0|0", "grass|texture||Grass_01|512|512|Grass Leaves||6|0.307 0.397 0.189 1|0|0|0", "grass_aestrin|texture||Grass_03|512|512|Grass Leaves Med||6|0.427 0.523 0.314 1|0|0|0", "grass_emerald|texture||Grass_02|512|512|Grass Leaves 1||6|0.311 0.427 0.28 1|0|0|0", "leaves|material_copy|tree leaves med|Tree Leaves 2|256|256|||0|0.629 0.701 0.477 1|0|1|0", "crop_leafy|texture||LGW_d37|512|512|||0|0.378 0.512 0.159 1|0|1|0", "crop_wheat|texture||LGW_d35|512|512|||0|0.548 0.549 0.286 1|0|1|0", "crop_vine|texture||LGW_d43|512|512|||0|0.409 0.552 0.172 1|0|1|0", "crop_bush|texture||LGW_d36|256|512|||0|0.361 0.471 0.16 1|0|1|0", "crop_flower|texture||LGW_d33|256|512|||0|0.52 0.397 0.269 1|0|1|0", "flat_grass|flat_material|grass||0|0|||0|0.193 0.301 0.089 1|0|0|0", "water|flat_material|test water||0|0|||0|0.221 0.354 0.537 0.467|0|0|0", "glass|game_glass|glass window transparent||0|0|||0||0|0|0", "keep|keep|||0|0|||0||0|0|0", "hide|hide|||0|0|||0||0|0|0", "already|already|||0|0|||0||0|0|0", "flat_ink_bottle_redd|flat_material|ink bottle redd||0|0|||0|0.387 0.071 0.071 1|0|0|0" }; internal static readonly string[] RowTable = new string[379] { "farm_glass_sh|already|glass|", "farm_abbeygamemat_kind_sh|already|stone or rock|", "farm_abbeyplainmat_kind_sh|already|paint or colour only|", "farm_dock_and_farm_stone_warm_grey|stone_aestrin|stone or rock|128 118 104", "farm_wire_dark_iron|iron|iron or metal|44 42 40", "farm_vine_post_bark|bark|bark or log|74 54 38", "farm_grape_vine_leaves|leaves|ivy or leaves|58 108 38", "farm_grapes|keep|crop|", "farm_mulch|mulch|earth or soil|86 60 42", "farm_fir_trim_fir_trim_jpg|boards_aestrin|wood beam or timber|", "farm_garden_soil|soil|earth or soil|78 56 40", "farm_dug_ridges_crop_rows|field|earth or soil|", "farm_bolts|iron|iron or metal|40 38 36", "farm_abbey_wall_stain_moss_and_dirt_overlay|hide|paint or colour only|", "farm_oak_beam_oak_beam_jpg|beam|wood beam or timber|", "farm_chronos_garden_earth|soil|earth or soil|92 66 44", "farm_fir_floor_boards_fir_floor_jpg|boards_aestrin|wood boards|", "farm_iron_chronos_tamarack_fallback|iron|iron or metal|60 60 62", "farm_bark_chronos_log_piles|bark|bark or log|94 72 52", "farm_terracotta_floor_tiles_chronos_fort_house|brick_red|brick|", "farm_chronos_fort_house_plaster|plaster_aestrin|plaster or render|214 200 176", "farm_chimney_cap_terracotta|terracotta|brick|150 84 58", "farm_wall_ivy_chronos|leaves|ivy or leaves|34 78 30", "farm_oak_boards_oak_boards_jpg|boards_aestrin|wood boards|", "farm_stepping_stones|stone_aestrin|stone or rock|150 144 132", "farm_chronos_house_plaster|plaster_aestrin|plaster or render|206 190 160", "farm_cedar_floor_boards_cedar_floor_jpg|boards_plain|wood boards|", "farm_chronos_house_stone|stone_aestrin|stone or rock|134 126 112", "farm_chronos_manor_floor_tiles_abbey_floor_picture_mu|brick_red|brick|", "farm_chronos_manor_dark_floor_tiles|brick_red|brick|", "farm_fireplace_grate|iron|iron or metal|46 44 43", "farm_glass_farmsh|already|glass|", "farm_firebox_soot|soot|paint or colour only|38 34 31", "farm_hearth_and_surround_stone|stone_aestrin|stone or rock|146 138 124", "farm_house_rock_walls_fallback_when_the_island_has_no|rock|stone or rock|150 136 118", "farm_ceiling_planks_dark|boards_aestrin|wood boards|84 58 42", "farm_fey_house_plaster|plaster_aestrin|plaster or render|228 200 166", "farm_terracotta_floor_fey_house|brick_red|brick|", "farm_feyrockmat_terr|already|stone or rock|", "farm_furniture_wood_fey_house|boards_plain|wood boards|112 79 62", "farm_bedding_cloth_fey_house|canvas|canvas or cloth|226 214 188", "farm_feybakeground_terr_gx0_gz0_gw_gh_out_bsaid|already|earth or soil|", "farm_garden_ground_fallback|grass_aestrin|grass|132 140 92", "farm_brown_earth_fallback|soil|earth or soil|96 74 52", "farm_fey_house_plaster_warm|plaster_aestrin|plaster or render|238 196 150", "farm_flagstones_fey_house|stone_dressed|stone or rock|128 120 108", "farm_feygamerock_scen_terr_out_rocktile|already|stone or rock|", "farm_feydirtmat_terr_out_dirtfrom|already|earth or soil|", "farm_arcade_stucco_fallback_when_the_game_s_paint_is_|plaster_aestrin|plaster or render|176 150 132", "farm_coffee_cherries|keep|crop|118 20 24", "farm_cutout_fieldshader_null_fieldshader_farmsh_tex_c|already|crop|", "farm_cropmat_tea_bushes|already|crop|", "farm_coffee_soil|soil|earth or soil|98 74 52", "farm_coffee_mulch|mulch|earth or soil|64 44 30", "farm_shrine_plaster_white|plaster_aestrin|plaster or render|226 222 210", "farm_shrine_paper_glowing_shoji|keep|canvas or cloth|236 230 210", "farm_shrine_iron|iron|iron or metal|34 34 36", "farm_shrine_rope|rope|rope|184 160 102", "farm_shrine_paper_streamers|canvas|canvas or cloth|242 240 232", "farm_shrine_bronze|brass|iron or metal|158 124 70", "farm_shrine_sakaki_leaves|leaves|ivy or leaves|56 82 44", "farm_shrine_lantern_glow|keep|other|236 194 130", "farm_shrine_red_lacquer|flat_ink_bottle_redd|paint or colour only|122 34 28", "farm_shrine_stone|stone_dressed|stone or rock|122 118 110", "farm_fort_courtyard_slabs|paving_grey|stone or rock|150 143 133", "farm_fort_courtyard_seams_dark_joint_lines_over_the_s|keep|other|", "farm_fort_gravel_walks|gravel|sand|", "farm_farm_timber_farmtimber|boards_aestrin|wood beam or timber|96 61 42", "farm_farm_boards_farmboards|boards_aestrin|wood boards|104 66 46", "farm_fort_english_grass_a_terrain_layer_of_ours|grass_aestrin|grass|", "farm_terracotta_planters_fort_garden|terracotta|paint or colour only|", "farm_pale_sign_board_kicia_bay|keep|paint or colour only|", "farm_dark_wood_lamp_post|boards_aestrin|wood beam or timber|46 40 35", "farm_lamp_iron|iron|iron or metal|40 40 42", "farm_garden_tool_handles|boards_aestrin|wood beam or timber|74 54 38", "farm_garden_tool_iron|iron|iron or metal|92 94 96", "farm_watering_can_tin|tin|iron or metal|118 120 116", "farm_canvas_sack|canvas|canvas or cloth|170 142 102", "farm_garden_pot_terracotta|terracotta|paint or colour only|166 92 62", "farm_garden_pot_soil|soil|earth or soil|30 22 16", "farm_potted_tree_trunk|bark|bark or log|92 70 50", "farm_potted_crop_fruit_colour_per_crop|keep|crop|", "farm_grc_sun_shades_canvas|canvas|canvas or cloth|", "farm_grc_house_plaster|plaster_alankh|plaster or render|226 198 160", "farm_cedar_trim_cedar_trim_jpg|beam|wood beam or timber|", "farm_crocus_flowers_grc_roof_garden|crop_flower|crop|", "farm_fireplace_logs_bark|bark|bark or log|", "farm_fireplace_firedogs|iron|iron or metal|", "farm_cedar_boards_cedar_boards_jpg|boards_emerald|wood boards|", "farm_kicia_house_plaster|plaster_aestrin|plaster or render|230 218 194", "farm_kicia_house_shoji_paper|canvas|canvas or cloth|236 230 212", "farm_kicia_house_stone|stone_dressed|stone or rock|124 120 114", "farm_kicia_house_ridge_grey|stone_blocks_grey|roof tile|70 72 76", "farm_kicia_house_tatami_woven_rush|thatch|thatch|", "farm_coconuts_lion_s_fang|keep|crop|96 70 40", "farm_lion_s_fang_plaster|plaster_alankh|plaster or render|180 146 121", "farm_lion_s_fang_stone|stone_dressed|stone or rock|128 105 87", "farm_lion_s_fang_logs|bark|bark or log|112 79 62", "farm_lion_s_fang_roof_tiles|roof_aestrin|roof tile|166 108 84", "farm_brick_lion_s_fang|brick_red|brick|", "farm_lion_s_fang_canvas|canvas|canvas or cloth|226 214 188", "farm_iron_lion_s_fang_4_uses|iron|iron or metal|46 44 42", "farm_malefic_barn_roof_tiles|roof_aestrin|roof tile|150 92 72", "farm_malefic_house_plaster|plaster_aestrin|plaster or render|214 202 182", "farm_terracotta_floor_malefic_house|brick_red|brick|", "farm_lime_tree_trunks|bark|bark or log|104 90 70", "farm_lime_tree_leaves|leaves|ivy or leaves|28 64 28", "farm_limes_on_the_trees|keep|crop|118 158 52", "farm_oasis_well_frame_wood|beam|wood beam or timber|98 68 48", "farm_oasis_water_ripples_normal_map|keep|other|", "farm_oasis_packed_shell_path|sand|sand|", "farm_old_ankh_window_glass|glass|glass|", "farm_akcutmat_akhillpaint_the_hill_cliff_home_s_cuts|already|other|", "farm_akcutmat_roompaint_the_copied_tavern_room_its_ba|already|other|", "farm_akcutmat_was_d4_s_pilasters_the_west_one_cut|already|other|", "farm_saffron_book_cover_leather|keep|paint or colour only|96 46 36", "farm_saffron_book_pages|keep|other|226 214 184", "farm_seed_card|keep|other|230 218 186", "farm_pavilion_canvas_saffron_farm|canvas|canvas or cloth|224 208 170", "farm_wisteria_stems|bark|bark or log|92 74 52", "farm_wisteria_leaves|leaves|ivy or leaves|70 120 40", "farm_wisteria_flowers|keep|ivy or leaves|", "farm_yard_tool_handles|beam|wood beam or timber|74 54 38", "farm_yard_tool_iron|iron|iron or metal|92 94 96", "farm_canvas_sack_saffron_yard|canvas|canvas or cloth|170 142 102", "farm_compost|mulch|earth or soil|64 46 32", "farm_speech_bubble|keep|other|", "farm_pale_weathered_sign_board|keep|paint or colour only|218 203 170", "farm_black_frame|soot|paint or colour only|20 18 16", "farm_seed_label|keep|other|160 136 112", "farm_wall_ivy_saffron|leaves|ivy or leaves|", "farm_saffron_gravel|gravel|sand|", "farm_saffron_soil_fields|field|earth or soil|", "farm_market_awning|canvas|canvas or cloth|214 196 158", "farm_fig_trunks|bark|bark or log|150 142 128", "farm_fig_leaves|leaves|ivy or leaves|56 104 40", "farm_figs|keep|crop|104 52 112", "farm_orchard_tree_trunks|bark|bark or log|96 78 58", "farm_palm_stems_banana|bark_palm|bark or log|108 120 72", "farm_orange_tree_leaves|leaves|ivy or leaves|30 70 28", "farm_apple_tree_leaves|leaves|ivy or leaves|52 98 40", "farm_oranges|keep|crop|238 140 30", "farm_apples|keep|crop|196 50 40", "farm_banana_fronds|leaves|crop|", "farm_banana_hands|keep|crop|", "farm_banana_hearts|keep|crop|", "farm_tobacco_stalks|flat_grass|crop|110 140 70", "farm_tobacco_leaves|crop_leafy|crop|", "farm_tobacco_flowers|crop_flower|crop|232 150 190", "farm_blue_tobacco_leaves|crop_leafy|crop|52 88 66", "farm_blue_tobacco_sugar_leaves|crop_leafy|crop|70 118 72", "farm_blue_tobacco_buds|crop_flower|crop|104 72 130", "farm_green_tobacco_leaves|crop_leafy|crop|46 92 38", "farm_green_tobacco_sugar_leaves|crop_leafy|crop|60 110 46", "farm_green_tobacco_buds|crop_flower|crop|78 122 60", "farm_carrot_tops|crop_leafy|crop|", "farm_potato_plants|crop_leafy|crop|40 92 34", "farm_cucumber_vines|crop_vine|crop|", "farm_cucumbers|keep|crop|58 112 40", "farm_sweet_potato_vines|crop_vine|crop|", "farm_cucumber_pea_stakes|beam|wood beam or timber|150 128 96", "farm_wheat|crop_wheat|crop|", "farm_cabbage_leaves|crop_leafy|crop|", "farm_cabbage_heads|keep|crop|166 190 122", "farm_pea_vines|crop_vine|crop|", "farm_tea_bushes_ours|crop_bush|crop|30 70 34", "farm_mushroom_stems|keep|crop|222 212 192", "farm_cave_mushroom_caps|keep|crop|196 178 150", "farm_field_mushroom_caps|keep|crop|138 98 66", "farm_coffeeleafmat|already|crop|", "farm_rice|crop_wheat|crop|", "farm_saffron_adobe_walls|plaster_alankh|plaster or render|180 146 121", "farm_saffron_fort_stone_3_uses|stone_dressed|stone or rock|128 105 87", "farm_saffron_roof_tiles|roof_aestrin|roof tile|166 108 84", "farm_saffron_boards_colour_from_the_fort_s_palette|boards_plain|wood boards|", "farm_saffron_timber_colour_from_the_fort_s_palette|beam|wood beam or timber|", "farm_saffron_fort_stonework_five_tints|stone_dressed|stone or rock|", "farm_saffron_fort_mortar_dark|stone_blocks_grey|stone or rock|82 78 72", "farm_fire_flame_sheet|keep|other|", "farm_lighthouse_beam|keep|other|", "farm_fire_glow_blob|keep|other|", "farm_gamepiermat_buildings_e_paint_swamp_buildings_e_|already|wood boards|", "farm_gamepiermat_buildings_e_paint_buildings_e_paint|already|wood boards|", "farm_gamepiermat_buildings_a_paint_buildings_a_paint|already|wood boards|", "farm_sage_hills_parchment_tan|keep|paint or colour only|200 165 110", "farm_parchment_rolls|keep|paint or colour only|184 146 96", "farm_parchment_nails|iron|iron or metal|40 36 32", "farm_sage_hills_barn_timber|beam|wood beam or timber|70 46 40", "farm_sage_hills_barn_boards|boards_emerald|wood boards|92 62 52", "farm_seed_catalogue_cover_green|keep|other|46 82 52", "farm_seedling_soil|soil|earth or soil|52 38 28", "farm_green_painted_boards_green_boards_jpg_sen_na_ins|boards_emerald|wood boards|", "farm_sen_na_window_glass|glass|glass|", "farm_oasis_barn_boards|boards_plain|wood boards|", "farm_oasis_barn_floor_tiles|paving_grey|stone or rock|", "farm_barn_sign_text|keep|other|", "farm_estate_sign_text|keep|other|", "farm_for_sale_sign_text|keep|other|", "farm_oasis_house_roof_logs_inside|beam|wood beam or timber|", "farm_oasis_fence_wood|beam|wood beam or timber|104 66 46", "farm_gamemat_face_mat|already|other|", "farm_gamemat_npc_alankh|already|other|", "mt_dkcloverpicture_out_pic|already|ivy or leaves|", "mt_dalkey_larch_bark_atlas_with_needles|bark|bark or log|", "mt_dalkey_larch_needles|leaves|ivy or leaves|", "mt_tamarack_lighthouse_boards|boards_aestrin|wood boards|", "mt_lighthouse_beam|keep|other|", "mt_lighthouse_flame_sheet|keep|other|", "mt_lighthouse_fire_blob|keep|other|", "mt_lighthouse_hooks_iron|iron|iron or metal|", "mt_reef_kelp|keep|other|", "mt_reef_foam|keep|water|", "mt_snow_drift_patches|keep|other|", "mt_snowflakes|keep|other|", "mt_snow_clean|keep|other|", "mt_snow_trodden|keep|other|", "mt_glass|already|glass|", "mt_cistern_water_ripples_normal_map|keep|water|", "mt_camp_oak_fallback_when_the_bundle_is_missing|boards_aestrin|wood beam or timber|92 70 50", "mt_camp_boards_fallback|boards_aestrin|wood boards|170 140 104", "mt_camp_weathered_boards_fallback|boards_aestrin|wood boards|120 112 102", "mt_camp_log_bark_the_larches_bark|bark|bark or log|", "mt_camp_bark_fallback|bark|bark or log|94 72 52", "mt_camp_log_ends_rings|wood_light|bark or log|", "mt_camp_iron|iron|iron or metal|60 60 62", "mt_camp_tent_canvas|canvas|canvas or cloth|", "mt_camp_stone_fallback|stone_aestrin|stone or rock|140 136 128", "mt_camp_rope|rope|rope|150 128 96", "mt_camp_straw_ticking_mattress|canvas|canvas or cloth|170 152 116", "mt_well_s_depth_black|keep|other|10 13 13", "mt_camp_earth_fallback|path|earth or soil|150 128 100", "mt_lantern_post_wood_camp|beam|wood beam or timber|76 61 48", "mt_lantern_iron_camp|iron|iron or metal|26 26 26", "mt_ledger_leather|keep|other|96 46 36", "mt_ledger_pages|keep|other|226 214 184", "mt_tobacco_trade_buttons_ui_tobmat_0_3|keep|other|", "mt_tower_fireplace_logs_bark|bark|bark or log|", "mt_happy_bay_walkway_timber|boards_aestrin|wood beam or timber|104 95 84", "mt_happy_bay_walkway_boards|boards_aestrin|wood boards|121 110 96", "mt_happy_bay_walkway_boards_2|boards_aestrin|wood boards|112 102 90", "mt_happy_bay_walkway_piles|boards_aestrin|wood beam or timber|78 70 62", "mt_trail_earth|path|earth or soil|", "mt_trail_packed_earth_solid|path|earth or soil|", "mt_drytex_t_nm_lgw_d45_goldstraw_straw_0_88f|already|grass|", "mt_drytex_cl_mosstone_0_62f|already|grass|", "mt_hillmaterial_ctx_island|already|earth or soil|", "mt_gamedockmat_buildings_a_paint_buildings_a_paint_|already|wood boards|", "mt_gamedockmat_buildings_e_paint_buildings_e_paint_|already|wood boards|", "mt_gamemat_face_mat|already|other|", "mt_gamemat_npc_alankh|already|other|", "bs_worn_cast_iron_stoves|iron|iron or metal|", "bs_stove_handle_wood_turned|wood_warm|wood beam or timber|", "bs_stove_window_glass_copies_a_game_bottle_glass_wh|glass|glass|", "bs_gallus_glass_pane_cabin_stove|glass|glass|", "bs_unlit_pane_cabin_stove|glass|glass|", "bs_hearth_bricks_grime_brick_galley|brick_red|brick|", "bs_hearth_copper_sheets_grimed|brass|iron or metal|", "bs_hearth_spark_screen_wire|iron|iron or metal|", "vit_pie_lattice_pie_lattice_jpg|keep|food|", "vit_pie_crust_pie_crust_jpg|keep|food|", "vit_pie_filling_pie_filling_jpg|keep|food|", "vit_pie_crumble_pie_crumble_jpg|keep|food|", "vit_pie_filling_darker|keep|food|219 209 204", "vit_pie_mash_top_pie_mash_jpg|keep|food|", "vit_shepherd_s_pie_filling_pie_filling_shep_jpg|keep|food|", "vit_plain_pie_filling_pie_filling_plain_jpg|keep|food|", "vit_pudding_skin_pud_jpg|keep|food|", "vit_pudding_inside_pud_jpg|keep|food|", "vit_scrambled_egg|keep|food|", "vit_raw_egg|keep|food|", "vit_rice|keep|food|", "vit_coconut_flesh|keep|food|", "vit_meat_hunk|keep|food|", "vit_beef|keep|food|", "vit_egg_shell|keep|food|", "vit_fried_egg|keep|food|", "vit_dough|keep|food|", "vit_bookmaterial_cr_sharedmaterial_out_drawn|already|other|", "vit_bookmaterial_lr_sharedmaterial_out_d2|already|other|", "vit_bookmaterial_r_sharedmaterial_out_d3|already|other|", "vit_victualling_book_pages|keep|other|", "vit_paint_jar_color_white_0f_0_55f_t|already|other|", "vit_mill_wood_blotched|beam|wood beam or timber|", "vit_mill_basin_stone|stone_dressed|stone or rock|", "vit_millstone|stone_dressed|stone or rock|", "vit_burlap_sack_canvas|canvas|canvas or cloth|", "vit_mill_tent_canvas|canvas|canvas or cloth|", "vit_sack_stencil_lettering|keep|other|", "vit_dried_residue_per_liquid|keep|food|", "vit_dough_mound_in_a_pot|keep|food|219 204 168", "vit_dish_in_a_jar|keep|food|92 69 41", "vit_cask_staves_wood|boards_plain|wood boards|", "vit_cask_hoops_iron|iron|iron or metal|31 29 28", "vit_jar_cork|wood_light|other|", "vit_jar_wax_seal_red|flat_ink_bottle_redd|paint or colour only|97 19 17", "vit_straw_hen_nest|thatch|thatch|189 161 97", "vit_hen_feathers_colour|keep|other|140 82 41", "vit_hen_comb|keep|other|158 26 20", "vit_hen_beak|keep|other|209 158 64", "vit_chicken_hen_feathers_picture|keep|other|219 199 158", "vit_cabbage_shared_provisions|keep|food|", "vit_sack_of_peas_shared_provisions|keep|food|", "vit_lime_shared_provisions|keep|food|", "vit_cabbage_wedge_shared_provisions|keep|food|", "vit_pile_of_peas_shared_provisions|keep|food|", "vit_lime_slice_shared_provisions|keep|food|", "vit_sea_biscuit_shared_provisions|keep|food|", "mt_brick_wall|stone_dressed|brick|", "mt_brick_vault|stone_dressed|brick|", "mt_brick_grime|stone_dressed|brick|", "mt_firebrick|brick_red|brick|", "mt_paving|paving_grey|stone or rock|", "mt_ashlar|stone_dressed|stone or rock|", "mt_plaster|plaster_aestrin|plaster or render|", "mt_exterior|stone_rough|plaster or render|", "mt_hearth_slate|stone_blocks_grey|stone or rock|", "mt_green_boards|boards_aestrin|wood boards|", "mt_floor_boards|boards_aestrin|wood boards|", "mt_door_oak|beam|wood boards|", "mt_map_glass|glass|glass|140 166 178", "mt_map_iron|iron|iron or metal|28 28 28", "mt_map_soot|soot|paint or colour only|5 5 5", "mt_map_rope|rope_flat|rope|143 122 92", "mt_map_water|water|water|36 102 133", "farm_abbey_oak_boards|boards_aestrin|wood boards|", "farm_abbey_room_plaster|plaster_aestrin|plaster or render|", "farm_abbey_abbey_floor|brick_red|brick|", "farm_abbey_abbey_floor_dark|brick_red|brick|", "farm_abbey_abbey_flags|stone_dressed|stone or rock|", "farm_abbey_a