Skip to content

Commit 1e0a0f3

Browse files
committed
sobbing
1 parent 67cd2c2 commit 1e0a0f3

File tree

2 files changed

+11
-22
lines changed

2 files changed

+11
-22
lines changed

source/archipelago/APGameState.hx

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff 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
}

source/archipelago/APPlayState.hx

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff 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]);

0 commit comments

Comments
 (0)