File tree Expand file tree Collapse file tree
Celeste.Mod.mm/Mod/Entities Expand file tree Collapse file tree Original file line number Diff line number Diff line change 22using System . Collections ;
33
44namespace Celeste . Mod . Entities {
5+ [ Tracked ]
56 public class DialogCutscene : CutsceneEntity {
67
78 private Player player ;
@@ -45,5 +46,12 @@ public override void OnEnd(Level level) {
4546 }
4647 }
4748
49+ public static bool IsInProgress ( string dialogID ) {
50+ foreach ( DialogCutscene dialogCutscene in Engine . Scene . Tracker . GetEntities < DialogCutscene > ( ) ) {
51+ if ( dialogCutscene . dialogID == dialogID ) return true ;
52+ }
53+ return false ;
54+ }
55+
4856 }
4957}
Original file line number Diff line number Diff line change @@ -58,8 +58,8 @@ private void TriggerCutscene(Player player) {
5858 if ( ignoreIntroState && ( ( patch_Player ) player ) . IsIntroState )
5959 return ;
6060
61- // don't activate if some dialog is already in progress
62- if ( level . Tracker . GetEntity < Textbox > ( ) is not null )
61+ // don't activate if the same dialog is already in progress
62+ if ( DialogCutscene . IsInProgress ( dialogEntry ) )
6363 return ;
6464
6565 triggered = true ;
You can’t perform that action at this time.
0 commit comments