diff --git a/.gitignore b/.gitignore
index b2cb6d1..945c553 100644
--- a/.gitignore
+++ b/.gitignore
@@ -331,6 +331,7 @@ ASALocalRun/
/Assemblies/
/Referenced/
+scratch/
Multiplayer-Compatibility.zip
/Multiplayer-Compatibility
\ No newline at end of file
diff --git a/README.md b/README.md
index c153d44..9df1b6a 100644
--- a/README.md
+++ b/README.md
@@ -12,6 +12,7 @@ Requires latest Zetrith's Multiplayer: [Download](https://github.com/rwmt/Multip
Support added to these mods | _
---|---
+Adaptive Work Priorities | [![url][steam]](https://steamcommunity.com/sharedfiles/filedetails/?id=3792993740)
Allow Tool | [![url][steam]](https://steamcommunity.com/sharedfiles/filedetails/?id=761421485) [![url][repo]](https://github.com/UnlimitedHugs/RimworldAllowTool)
Almost There! | [![url][steam]](https://steamcommunity.com/sharedfiles/filedetails/?id=2372543327) [![url][repo]](https://github.com/rheirman/AlmostThere)
Alpha Animals | [![url][steam]](https://steamcommunity.com/sharedfiles/filedetails/?id=1541721856) [![url][repo]](https://github.com/juanosarg/AlphaAnimals)
@@ -32,6 +33,7 @@ Biotech Expansion - Mythic | [![url][steam]](https://steamcommunity.com/sharedfi
Biotech Mech Stuff Elongated - Mechanoid Upgrades V2 | [![url][steam]](https://steamcommunity.com/sharedfiles/filedetails/?id=2926928394)
Blueprints | [![url][steam]](https://steamcommunity.com/sharedfiles/filedetails/?id=708455313) [![url][repo]](https://github.com/fluffy-mods/Blueprints)
Cash Register | [![url][steam]](https://steamcommunity.com/sharedfiles/filedetails/?id=2506046833) [![url][repo]](https://github.com/OrionFive/CashRegister)
+Character Creator | [![url][steam]](https://steamcommunity.com/sharedfiles/filedetails/?id=3762126187)
Choice Of Psycasts | [![url][steam]](https://steamcommunity.com/sharedfiles/filedetails/?id=2293460251)
Cleaning Area | [![url][steam]](https://steamcommunity.com/sharedfiles/filedetails/?id=870089952)
Clean Pathfinding 2 | [![url][steam]](https://steamcommunity.com/sharedfiles/filedetails/?id=2603765747) [![url][repo]](https://github.com/Owlchemist/clean-pathfinding)
@@ -54,6 +56,7 @@ Eccentric Tech - Fusion Power | [![url][steam]](https://steamcommunity.com/share
Enhanced Vat Learning | [![url][steam]](https://steamcommunity.com/sharedfiles/filedetails/?id=2908453851) [![url][repo]](https://github.com/SmArtKar/EnhancedVatLearning)
Extended Bioengineering for VFE Insectoids | [![url][steam]](https://steamcommunity.com/sharedfiles/filedetails/?id=2706534548)
Fertile Fields | [![url][steam]](https://steamcommunity.com/sharedfiles/filedetails/?id=2012735237)
+Flourish | [![url][steam]](https://steamcommunity.com/sharedfiles/filedetails/?id=3793154978)
Follow Me | [![url][steam]](https://steamcommunity.com/sharedfiles/filedetails/?id=715759739) [![url][repo]](https://github.com/fluffy-mods/FollowMe)
Gastronomy | [![url][steam]](https://steamcommunity.com/sharedfiles/filedetails/?id=2279786905) [![url][repo]](https://github.com/OrionFive/Gastronomy)
Gene Ripper | [![url][steam]](https://steamcommunity.com/sharedfiles/filedetails/?id=2885485814)
@@ -62,14 +65,22 @@ Giddy-Up 2 | [![url][steam]](https://steamcommunity.com/sharedfiles/filedetails/
Grazing Lands | [![url][steam]](https://steamcommunity.com/sharedfiles/filedetails/?id=1770268130) [![url][repo]](https://github.com/catgirlfighter/RimWorld_GrazingLands)
Healer Mech Serum Choice | [![url][steam]](https://steamcommunity.com/sharedfiles/filedetails/?id=2714095848) [![url][repo]](https://github.com/XT-0xFF/HealerMechSerumChoice)
Immortals | [![url][steam]](https://steamcommunity.com/sharedfiles/filedetails/?id=1984905966)
+Isekai RPG Leveling | [![url][steam]](https://steamcommunity.com/sharedfiles/filedetails/?id=3657580708)
+Isekai RPG - Guild Faction Add-on | [![url][steam]](https://steamcommunity.com/sharedfiles/filedetails/?id=3718568958)
+Isekai RPG - Creatures Add-on | [![url][steam]](https://steamcommunity.com/sharedfiles/filedetails/?id=3757560461)
LightsOut | [![url][steam]](https://steamcommunity.com/sharedfiles/filedetails/?id=2584269293) [![url][repo]](https://github.com/NathanIkola/LightsOut)
Medical Tab | [![url][steam]](https://steamcommunity.com/workshop/filedetails/?id=715565817) [![url][repo]](https://github.com/fluffy-mods/MedicalTab)
Medicines+ | [![url][steam]](https://steamcommunity.com/sharedfiles/filedetails/?id=2558272601) [![url][repo]](https://github.com/Atla55/Medicines-Plus)
Minify Everything | [![url][steam]](https://steamcommunity.com/sharedfiles/filedetails/?id=872762753) [![url][repo]](https://github.com/erdelf/MinifyEverything)
Misc. Robots | [![url][steam]](https://steamcommunity.com/sharedfiles/filedetails/?id=724602224)
Misc. Training | [![url][steam]](https://steamcommunity.com/sharedfiles/filedetails/?id=717575199)
+Modern Faction Menu | [![url][steam]](https://steamcommunity.com/sharedfiles/filedetails/?id=3742926690)
+Modern History Menu | [![url][steam]](https://steamcommunity.com/sharedfiles/filedetails/?id=3742925193)
+Modern Quest Menu | [![url][steam]](https://steamcommunity.com/sharedfiles/filedetails/?id=3742906203)
+Modern Social Tab | [![url][steam]](https://steamcommunity.com/sharedfiles/filedetails/?id=3740700588)
More Archotech Garbage | [![url][steam]](https://steamcommunity.com/sharedfiles/filedetails/?id=2391102796)
More Faction Interaction | [![url][steam]](https://steamcommunity.com/sharedfiles/filedetails/?id=2379076640) [![url][repo]](https://github.com/emipa606/MoreFactionInteraction)
+Nice Bill Tab & Nice Bill Tab Expansion | [![url][steam]](https://steamcommunity.com/sharedfiles/filedetails/?id=3520130671) [![url][steam]](https://steamcommunity.com/sharedfiles/filedetails/?id=3721023311)
One bed to sleep with all | [![url][steam]](https://steamcommunity.com/sharedfiles/filedetails/?id=2572109781) [![url][repo]](https://github.com/densevoid/one-bed-to-sleep-with-all)
Path Avoid | [![url][steam]](https://steamcommunity.com/sharedfiles/filedetails/?id=1180719857) [![url][repo]](https://github.com/KiameV/rimworld-pathavoid)
Performance Optimizer | [![url][steam]](https://steamcommunity.com/sharedfiles/filedetails/?id=2664723367) [![url][repo]](https://github.com/Taranchuk/PerformanceOptimizer)
@@ -82,6 +93,12 @@ PowerSwitch | [![url][steam]](https://steamcommunity.com/sharedfiles/filedetails
Prison Commons | [![url][steam]](https://steamcommunity.com/workshop/filedetails/?id=2630896782)
Processor Framework | [![url][steam]](https://steamcommunity.com/workshop/filedetails/?id=2633514537) [![url][repo]](https://github.com/Syrchalis/ProcessorFramework)
Quality Builder | [![url][steam]](https://steamcommunity.com/sharedfiles/filedetails/?id=754637870)
+Radius UI - Colonist Bar | [![url][steam]](https://steamcommunity.com/sharedfiles/filedetails/?id=3788278207)
+Radius UI - Faction Menu | [![url][steam]](https://steamcommunity.com/sharedfiles/filedetails/?id=3786945713)
+Radius UI - Health Tab | [![url][steam]](https://steamcommunity.com/sharedfiles/filedetails/?id=3786129210)
+Radius UI - Inspector | [![url][steam]](https://steamcommunity.com/sharedfiles/filedetails/?id=3786131805)
+Radius UI - Mission Control | [![url][steam]](https://steamcommunity.com/sharedfiles/filedetails/?id=3788256848)
+Radius UI - Quest Menu | [![url][steam]](https://steamcommunity.com/sharedfiles/filedetails/?id=3786840944)
ReGrowth: Core | [![url][steam]](https://steamcommunity.com/sharedfiles/filedetails/?id=2260097569) [![url][repo]](https://github.com/Helixien/ReGrowth-Core)
Reinforced Mechanoid 2 | [![url][steam]](https://steamcommunity.com/sharedfiles/filedetails/?id=2910050186) [![url][repo]](https://github.com/Helixien/ReinforcedMechanoids-2)
ResearchPowl | [![url][steam]](https://steamcommunity.com/sharedfiles/filedetails/?id=2877856030)
@@ -112,6 +129,7 @@ Tacticowl | [![url][steam]](https://steamcommunity.com/sharedfiles/filedetails/?
TD Enhancement Pack - Continued | [![url][steam]](https://steamcommunity.com/sharedfiles/filedetails/?id=3525414162) [![url][repo]](https://github.com/MemeGoddess/RimWorld-EnhancementPack)
Time of day switches | [![url][steam]](https://steamcommunity.com/sharedfiles/filedetails/?id=776114412)
Toggleable Shields | [![url][steam]](https://steamcommunity.com/sharedfiles/filedetails/?id=2690413766) [![url][repo]](https://github.com/Owlchemist/toggleable-shields)
+True RPG Inventory | [![url][steam]](https://steamcommunity.com/sharedfiles/filedetails/?id=3744201621)
Utility Columns | [![url][steam]](https://steamcommunity.com/sharedfiles/filedetails/?id=2013476665) [![url][repo]](https://github.com/RealTelefonmast/UtilityColumns)
Vanilla Achievements Expanded | [![url][steam]](https://steamcommunity.com/sharedfiles/filedetails/?id=2288125657) [![url][repo]](https://github.com/Vanilla-Expanded/VanillaAchievementsExpanded)
Vanilla Animals Expanded - Caves | [![url][steam]](https://steamcommunity.com/sharedfiles/filedetails/?id=2576512001) [![url][repo]](https://github.com/Vanilla-Expanded/VanillaAnimalsExpanded-Caves)
diff --git a/Source/Mods/AdaptiveWorkPriorities.cs b/Source/Mods/AdaptiveWorkPriorities.cs
new file mode 100644
index 0000000..4a229a8
--- /dev/null
+++ b/Source/Mods/AdaptiveWorkPriorities.cs
@@ -0,0 +1,1245 @@
+using System;
+using System.Collections;
+using System.Collections.Generic;
+using System.Linq;
+using System.Reflection;
+using System.Reflection.Emit;
+using HarmonyLib;
+using Multiplayer.API;
+using RimWorld;
+using UnityEngine;
+using Verse;
+
+namespace Multiplayer.Compat
+{
+ /// Adaptive Work Priorities by Astryl
+ ///
+ [MpCompatFor("astryl.adaptiveworkpriorities")]
+ internal class AdaptiveWorkPriorities
+ {
+ // Types
+ private static Type learningStoreType;
+ private static Type proposalType;
+ private static Type pawnProfileType;
+ private static Type priorityWriterType;
+ private static Type emergencyManagerType;
+ private static Type demandProbeType;
+ private static Type activeCoverType;
+ private static Type emergencyViewType;
+ private static Type mainWindowType;
+ private static Type pawnCardType;
+ private static Type awSettingsType;
+ private static Type awModType;
+ private static Type workTypeTuningDefType;
+ private static Type emergencyStateDefType;
+ private static Type emergencyProfileEntryType;
+ private static Type priorityRangesType;
+ private static Type toastsType;
+
+ // Reflection Accessors - LearningStore
+ private static PropertyInfo learningStoreInstanceProp;
+ private static MethodInfo learningStoreApplyProposalMethod;
+ private static MethodInfo learningStoreSnoozeMethod;
+ private static MethodInfo learningStoreNeverMethod;
+ private static MethodInfo learningStoreResetLearningMethod;
+ private static MethodInfo learningStoreUndoLastMethod;
+ private static MethodInfo learningStoreMarkDirtyMethod;
+ private static MethodInfo learningStoreMarkAllDirtyMethod;
+ private static MethodInfo learningStoreTracksMethod;
+ private static MethodInfo learningStoreProfileForMethod;
+ private static MethodInfo learningStoreProposalsForMethod;
+ private static MethodInfo learningStoreFindPawnMethod;
+ private static MethodInfo learningStoreChainForMethod;
+ private static MethodInfo learningStoreTryEmitDigestMethod;
+ private static AccessTools.FieldRef