File tree Expand file tree Collapse file tree 2 files changed +11
-22
lines changed Expand file tree Collapse file tree 2 files changed +11
-22
lines changed Original file line number Diff line number Diff line change @@ -282,7 +282,6 @@ class APGameState {
282282 function addSongs (song : Array <NetworkItem >)
283283 {
284284 var nonSongs : Map <String , Int > = [];
285- var nonSongsNames : Array <String > = [];
286285 states. FreeplayState .curMissing .clear ();
287286
288287
@@ -321,6 +320,7 @@ class APGameState {
321320 break ;
322321 }
323322 }
323+
324324 if (firstParenIndex == - 1 || ! isModName (modName )) {
325325 modName = " " ;
326326 itemName = info ().get_item_name (songName .item );
@@ -383,20 +383,19 @@ class APGameState {
383383 }
384384 }
385385
386- for (item in nonSongsNames ) {
387- trace ( item );
388- if (haventranyet ) {
389- if ( ! trapList . contains ( item )) {
390- ItemIndex = nonSongs . get ( item ) ;
391- archipelago. APItem . createItemByName ( item );
392- }
393- } else {
394- ItemIndex = nonSongs .get (item );
395- archipelago. APItem .createItemByName (item );
386+ for (items in nonSongs . keys ())
387+ {
388+ if (nonSongs . get ( items ) <= ItemIndex )
389+ {
390+ continue ;
391+ }
392+ else
393+ {
394+ ItemIndex = nonSongs .get (items );
395+ archipelago. APItem .createItemByName (items );
396396 }
397397 }
398398 archipelago. APItem .doCheck ();
399- // haventranyet = false;
400399 isSync = false ;
401400
402401 }
Original file line number Diff line number Diff line change @@ -1386,16 +1386,6 @@ effectMap = [
13861386 // I feel bad for the poor soul that has this trigger on them multiple times
13871387 public function triggerGhostChat ()
13881388 {
1389- effectTimer .start (5 , function (timer )
1390- {
1391- if (paused )
1392- return ;
1393- if (startingSong )
1394- return ;
1395- if (endingSong )
1396- return ;
1397- }, 0 );
1398-
13991389 randoTimer .start (FlxG .random .float (5 , 10 ), function (tmr : FlxTimer )
14001390 {
14011391 doEffect (effectArray [curEffect ]);
You can’t perform that action at this time.
0 commit comments