File tree Expand file tree Collapse file tree 3 files changed +9
-5
lines changed Expand file tree Collapse file tree 3 files changed +9
-5
lines changed Original file line number Diff line number Diff 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 {
Original file line number Diff line number Diff 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 );
Original file line number Diff line number Diff 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 );
You can’t perform that action at this time.
0 commit comments