Skip to content

Commit 26c7b2e

Browse files
committed
Stupidity fix.
1 parent f7141fd commit 26c7b2e

File tree

3 files changed

+9
-5
lines changed

3 files changed

+9
-5
lines changed

source/archipelago/APGameState.hx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -883,6 +883,10 @@ class APGameState
883883
if (_saveData.hasItem("hasPocketLens"))
884884
{
885885
APItem.hasPocketLens = _saveData.getItem("hasPocketLens");
886+
if (APItem.hasPocketLens && !APItem.getItems().exists(item -> item.name == "Pocket Lens"))
887+
{
888+
archipelago.APItem.createItemByName("Pocket Lens");
889+
}
886890
}
887891
if (_saveData.hasItem("hasDashMechanic"))
888892
{

source/archipelago/APInfo.hx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,9 +80,9 @@ abstract APSlotData(APSlotDataType) from APSlotDataType to APSlotDataType {
8080
return Reflect.field(this, key);
8181
}
8282

83-
public function set(key:String, value:Dynamic):Void {
84-
Reflect.setField(this, key, value);
85-
}
83+
// public function set(key:String, value:Dynamic):Void {
84+
// Reflect.setField(this, key, value);
85+
// }
8686

8787
public function hasKey(key:String):Bool {
8888
return Reflect.hasField(this, key);

source/archipelago/APItem.hx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -438,8 +438,8 @@ class APItem {
438438
trace("Pocket Lens acquired! Player can now view AP items.");
439439
popup('You can now view your AP items and stats!', "You got a Pocket Lens!");
440440

441-
// If currently in APItemsViewerState, reset it to refresh with new data
442-
if (Std.is(FlxG.state, archipelago.APItemsViewerState)) {
441+
// If currently in APCategoryState, reset it to refresh with new data
442+
if (Std.is(FlxG.state, archipelago.APCategoryState)) {
443443
FlxG.resetState();
444444
}
445445
}, true, true);

0 commit comments

Comments
 (0)