Skip to content

Commit 3b9409c

Browse files
committed
SlotData Access.
1 parent 36daa84 commit 3b9409c

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

source/archipelago/APGameState.hx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -546,9 +546,12 @@ class APGameState
546546
|| _ap.clientStatus == ClientStatus.READY;
547547
}
548548

549+
public var _slotData:Dynamic;
550+
549551
public function new(ap:Client, slotData:Dynamic)
550552
{
551553
_ap = ap;
554+
_slotData = slotData;
552555

553556
_seed = _ap.seed;
554557

@@ -583,7 +586,7 @@ class APGameState
583586
}
584587
});
585588

586-
_ap.toggleDeathLink(ClientPrefs.data.deathlink);
589+
_ap.toggleDeathLink(slotData != null && Reflect.hasField(slotData, "deathLink") ? slotData.deathLink : ClientPrefs.data.deathlink);
587590

588591
_ap.onRetrieved.add(handleRetrievedPacket);
589592

source/archipelago/APInfo.hx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,11 @@ class APInfo {
1919
public static var hintPoints(get, never):Int;
2020
public static var hintCost(get, never):Int;
2121

22+
public static var slotData(get, never):Dynamic;
23+
public static function get_slotData():Dynamic {
24+
return apGame?._slotData;
25+
}
26+
2227
public static var gradeList:Array<String> =
2328
[
2429
'Any',

0 commit comments

Comments
 (0)