Skip to content

Commit

Permalink
Added 2 more mythos events, removed Mythos trigger from D2E (NPBruce#…
Browse files Browse the repository at this point in the history
  • Loading branch information
estarriol authored Nov 15, 2020
1 parent 56c9ee0 commit f73a790
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 2 additions & 0 deletions unity/Assets/Scripts/Quest/RoundControllerMoM.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@ override public void HeroActivated()
game.stageUI.Update();
game.monsterCanvas.UpdateList();

game.quest.eManager.EventTriggerType("BeforeMonsterActivation", false);
game.quest.eManager.EventTriggerType("Mythos", false);
game.quest.eManager.EventTriggerType("EndInvestigatorTurn", false);
// This will cause the next phase if nothing was added
game.quest.eManager.TriggerEvent();

Expand Down
8 changes: 7 additions & 1 deletion unity/Assets/Scripts/QuestEditor/EditorComponentEvent.cs
Original file line number Diff line number Diff line change
Expand Up @@ -627,9 +627,15 @@ public void SetTrigger()
select.AddItem("Eliminated", traits);
}

select.AddItem("Mythos", traits);
select.AddItem("EndRound", traits);
select.AddItem("StartRound", traits);

if (game.gameType is MoMGameType)
{
select.AddItem("Mythos", traits);
select.AddItem("EndInvestigatorTurn", traits);
select.AddItem("BeforeMonsterActivation", traits);
}

traits = new Dictionary<string, IEnumerable<string>>();
traits.Add(CommonStringKeys.TYPE.Translate(), new string[] { CommonStringKeys.MONSTER.Translate() });
Expand Down

0 comments on commit f73a790

Please sign in to comment.