Fix some EventHandler related code if in firmament
This commit is contained in:
parent
f7d56663d2
commit
cd16cf93a3
@ -517,8 +517,8 @@ internal sealed class InteractionUiController : IDisposable
|
||||
|
||||
_logger.LogTrace("Prompt: '{Prompt}'", actualPrompt);
|
||||
var director = UIState.Instance()->DirectorTodo.Director;
|
||||
if (director != null && director->EventHandlerInfo != null &&
|
||||
director->EventHandlerInfo->EventId.ContentId == EventHandlerType.GatheringLeveDirector &&
|
||||
if (director != null &&
|
||||
director->Info.EventId.ContentId == EventHandlerType.GatheringLeveDirector &&
|
||||
director->Sequence == 254)
|
||||
{
|
||||
// just close the dialogue for 'do you want to return to next settlement', should prolly be different for
|
||||
|
@ -135,8 +135,7 @@ internal sealed unsafe class GatheringController : MiniTaskController<GatheringC
|
||||
return;
|
||||
|
||||
var director = UIState.Instance()->DirectorTodo.Director;
|
||||
if (director != null && director->EventHandlerInfo != null &&
|
||||
director->EventHandlerInfo->EventId.ContentId == EventHandlerType.GatheringLeveDirector)
|
||||
if (director != null && director->Info.EventId.ContentId == EventHandlerType.GatheringLeveDirector)
|
||||
{
|
||||
if (director->Sequence == 254)
|
||||
return;
|
||||
|
@ -44,8 +44,7 @@ internal static class InitiateLeve
|
||||
{
|
||||
var director = UIState.Instance()->DirectorTodo.Director;
|
||||
if (director != null &&
|
||||
director->EventHandlerInfo != null &&
|
||||
director->EventHandlerInfo->EventId.ContentId == EventHandlerType.GatheringLeveDirector &&
|
||||
director->Info.EventId.ContentId == EventHandlerType.GatheringLeveDirector &&
|
||||
director->ContentId == Task.ElementId.Value)
|
||||
return ETaskResult.SkipRemainingTasksForStep;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user