static void Postfix(Area_Home __instance) { if (Multiplayer.Client != null) { Multiplayer.WorldComp.DirtyColonyTradeForMap(__instance.Map); } }
static void Postfix(Area_Home __instance) { foreach (Building building in __instance.Map.listerBuildings.allBuildingsColonist) { if (building.def.HasComp(typeof(Comp_EnhancedBeacon))) { building.GetComp <Comp_EnhancedBeacon>().UpdateTradeRegion(); } } }
//protected virtual void Set(IntVec3 c, bool val) public static bool Prefix(Area_Home __instance, IntVec3 c, bool val) { if (!Settings.Get().neverHome) { return(true); } if (val && __instance.Map.areaManager.GetLabeled("Never Home") is Area neverHome && neverHome[c]) { return(false); } return(true); }