Ради вашего удобства наш сайт использует cookies! Узнать больше! Мы используем cookies

What Was Inside?

What is this Mod? This mod adds a message telling you what was inside openable crates and sarcophagi (optionally) when they're opened, so you never miss out on the sweet dopamine hit of a awesome drop ever again. In the mod options, you can enable the message for containers with pawns in them, like Cryptosleep Caskets, this is initially disabled. You can also toggle the message for specific container types and change the line width of the messages. Compatibility The mod was built with compatibility in mind and should be compatible with mods that add vanilla-like containers. Please let me know if anything needs patching. Patches are included for the following: [list] [*] Alpha Random [*] Vanilla Factions Expanded - Deserters [/list] What was Inside is tested and compatible with these container-adding mods: [list] [*] Ancient Urban Ruins [*] Vanilla Quests Expanded - Deadlife [*] Vanilla Quests Expanded - Ancients [*] Vanilla Quests Expanded - Cryptoforge [*] Vanilla Quests Expanded - The Generator [*] Vanilla Factions Expanded: Pirates [*] Dark Ages: Crypts and Tombs [*] Big Graves and Sarcophaguses [*] Hacking Expansion [*] Glittertech Expansion [/list] Technical Details What was Inside? uses Harmony to intercept container opening events and display their contents as a message. For vanilla containers and any mods inheriting from the [b]Building_Casket[/b] class (hermetic crates, sealed crates, cryptosleep caskets, graves, etc), the mod patches [b]Building_Casket.Open()[/b] with a prefix that snapshots the container's contents before ejection, and a postfix that gets the pawn responsible and displays the message. Some modded containers may generate their contents dynamically during opening, Alpha Random being one example. For these, the mod uses a 'soft patch', only applied when the relevant mod is loaded. A flag-gated patch on [b]GenPlace.TryPlaceThing[/b] collects the items as they are placed during the opening process. The flag is a quick bool check, adding virtually 0 overhead. This mod is licenced under the [url=https%3A%2F%2Fopensource.org%2Flicenses%2FMIT]MIT Licence[/url][opensource.org]. Feel free to edit, but give credit :)