public static bool TP() { Main.Mod.Debug(MethodBase.GetCurrentMethod()); BlueprintAreaEnterPoint ep = new BlueprintAreaEnterPoint(); bool result = false; if (InThroneRoom) //TODO: change getter to check if in throne room, do not set it... { IsStone = Game.Instance.CurrentlyLoadedArea.AssetGuid.Equals("c39ed0e2ceb98404b811b13cb5325092"); ep = ResourcesLibrary.TryGetBlueprint <BlueprintAreaEnterPoint>(merchGuildEpId); result = true; } if (InGuild) { if (IsStone) { ep = ResourcesLibrary.TryGetBlueprint <BlueprintAreaEnterPoint>("3a9748aba32e1694f80a6cae9b7b3f99"); } else { ep = ResourcesLibrary.TryGetBlueprint <BlueprintAreaEnterPoint>("21fb2ff53d1e2fb4c9b06f067ab89435"); } //LibraryUnload(); result = true; } if (result) { GameHelper.EnterToArea(ep, Kingmaker.EntitySystem.Persistence.AutoSaveMode.None); } return(result); }
public static void Teleport(string blueprintAreaEnterPointAssetGuid) { BlueprintAreaEnterPoint bae = Utilities.GetBlueprint <BlueprintAreaEnterPoint>(blueprintAreaEnterPointAssetGuid); GameHelper.EnterToArea(bae, Kingmaker.EntitySystem.Persistence.AutoSaveMode.None); }
public static void To(this BlueprintAreaEnterPoint enterPoint) => GameHelper.EnterToArea(enterPoint, AutoSaveMode.None);