-
-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix and update Vanilla Expanded mods for 1.5 (#445)
This should fix the issues I've found so far, along with a handful of changes/improvements. Vanilla Expanded Framework: - Slightly modified the modular patching - Changed where the patch method is called, so it'll include the try/catch block in late patches as well - Added a message log behind (for debug builds only) that will log what is being patched before applying the patch - Vanilla Furniture Expanded patch was moved to late patch to prevent issues due to the mod accessing DefOfs in the patched methods Vanilla Events Expanded: - Stopped pushing/popping the RNG state where it's not needed - I've originally made those patches when I didn't fully understand how MP and RimWorld work, so I assumed that those would be needed Vanilla Factions Expanded - Empire: - Added a null map check to the quest generation - This is an issue with the mod itself which will happen if `TestRun` method is called for a faction without maps (Vanilla-Expanded/VanillaFactionsExpanded-Empire#8) - After deeper investigation I've realized it always happens in MP due to MP's `FactionRepeater` trying to repeat a quest generation for all factions, including spectator faction (which doesn't have any maps) Vanilla Furniture Expanded - Security: - Stopped pushing/popping the RNG state where it's not needed - Same reason as for Vanilla Events Expanded - Changed patch target from `Draw` to `DrawAt` Vanilla Psycasts Expanded: - Changed the patching to work similar as Vanilla Expanded Framework - made it modular so if a single module fails then it won't break everything after it - Removed an empty method (PatchCurrentMapUsage) - Renamed PatchGizmosAndFlecks to PatchMotesAndFlecks - Slightly reorganized where some of the patches are - Completely reworked psyset renaming code (won't do anything meaningful until mering rwmt/Multiplayer#443) - Added `Dialog_RenamePsysetMp` class, which will handle renaming and allow MP to sync it - Added `PsysetRenameHolder` class, which hold the psyset and psycasting hediff and will be used for syncing psysets - We cannot sync psysets by themselves as they don't store any reference to their parent, and we need a workaround by using the hediff to sync them - Changed psycasting ITab code to create our rename dialog instead of the VPE one, as well as making the code pass the hediff to the constructor
- Loading branch information
1 parent
02a3b98
commit becce73
Showing
5 changed files
with
164 additions
and
102 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.