private static bool Prefix() { CSApplyChoices.ApplyStoryOptions(); Vec2 StartPos = CulturedStartLocPatch.GetSettlementLoc(CSCharCreationOption.CSOptionSettlement()); MobileParty.MainParty.Position2D = StartPos; return(true); }
private static bool Prefix(BannerEditorVM __instance) { Action <bool> OnExit = (Action <bool>)AccessTools.Field(typeof(BannerEditorVM), "OnExit").GetValue(__instance); OnExit(false); if ((CSCharCreationOption.CSSelectOption == 7 || CSCharCreationOption.CSSelectOption == 8) && Clan.PlayerClan.Kingdom == null) { CSApplyChoices.CSCreateKingdom(); } return(false); }
private static void Postfix() { Vec2 StartPos2 = CulturedStartLocPatch.GetSettlementLoc(CSCharCreationOption.CSOptionSettlement()); MobileParty.MainParty.Position2D = StartPos2; MapState mapstate; mapstate = (GameStateManager.Current.ActiveState as MapState); mapstate.Handler.TeleportCameraToMainParty(); CSApplyChoices.ApplyStoryOptions(); }