Skip to content

Commit f56c441

Browse files
committed
a
1 parent 8963368 commit f56c441

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

source/archipelago/APGameState.hx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ class APGameState {
108108

109109
public var APLocations:Array<Int> = [];
110110
public var APItems:Map<String, Int> = new Map<String, Int>();
111-
public var ItemIndex:Int = 0;
111+
public var ItemIndex:Int = 1;
112112

113113
public function locationData(songName:String):Array<Int> {
114114
// trace("Starting locationData function with songName: " + songName);
@@ -282,6 +282,7 @@ class APGameState {
282282
function addSongs(song:Array<NetworkItem>)
283283
{
284284
var nonSongs:Map<String, Int> = [];
285+
var nonSongsNames:Array<String> = [];
285286
states.FreeplayState.curMissing.clear();
286287

287288

@@ -294,6 +295,7 @@ class APGameState {
294295
if (APItems.exists(itemName) && APItems.get(itemName) == songName.item)
295296
{
296297
nonSongs.set(itemName, songName.index);
298+
nonSongsNames.push(itemName);
297299
continue;
298300
}
299301

@@ -382,7 +384,7 @@ class APGameState {
382384
}
383385
}
384386

385-
for (items in nonSongs.keys())
387+
for (items in nonSongsNames)
386388
{
387389
if (nonSongs.get(items) <= ItemIndex)
388390
{

source/archipelago/APPlayState.hx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1388,8 +1388,8 @@ effectMap = [
13881388
{
13891389
randoTimer.start(FlxG.random.float(5, 10), function(tmr:FlxTimer)
13901390
{
1391-
doEffect(effectArray[curEffect]);
13921391
tmr.reset(FlxG.random.float(5, 10));
1392+
doEffect(effectArray[curEffect]);
13931393
});
13941394
trace("Ghost Chat Activated! L E T T H E C H A O S B E G I N !");
13951395
}

source/archipelago/Client.hx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -952,7 +952,9 @@ class Client {
952952
Synchronizes check progress with the multiworld server.
953953
@return Whether the operation was successful.
954954
**/
955+
public var firstSync:Bool = true;
955956
public function Sync():Bool {
957+
firstSync = false;
956958
if (state < State.SLOT_CONNECTED)
957959
return false;
958960
return InternalSend(OutgoingPacket.Sync);

0 commit comments

Comments
 (0)