-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Correctly model de-duplication bypass (#21)
* First pass of logic changes: mListHeads uninit modelling, allows de-dupe bypass for the first acquired item (incl. quantity checks) * Adjust existing unit tests to match corrected behaviour; add new ones based on mListHeads understanding * Add tests for explicit duping of non-stackable key items when tab data is missing (reloading / in-game, same result) * test material stack duping behaviour with tab data info * make sure listHeadsInit is properly updated and propagated * E2E tests for newly modelled duping behaviour * lint: add trailing newline * Remove OS-generated metadata files from lint check; describe use of linter `-v` flag in README * Exclude `build` folder from lint * Add E2E tests for the two cases originally raise in issue #20
- Loading branch information
Showing
19 changed files
with
251 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
// Author: Pearfalse | ||
const TEST = "apples_999_twice"; | ||
it(TEST, () => { | ||
expect(TEST).toPassE2ESimulation(); | ||
}); | ||
export { }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
Init 999 Apple 1 Slate 1 Glider | ||
Save | ||
Break 3 Slots | ||
Reload | ||
Sync GameData |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
Init 999 Apple 1 Slate 1 Glider | ||
Save | ||
# | ||
Init 999 Apple 1 Slate 1 Glider 999 Apple | ||
Break 3 Slots |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
// Author: Pearfalse | ||
const TEST = "arrows_quantityCheckExceptions"; | ||
it(TEST, () => { | ||
expect(TEST).toPassE2ESimulation(); | ||
}); | ||
export { }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
Init 1 axe 1 bow [life=2200, equip] 5 arrow [equip] 1 slate | ||
Save | ||
Break 2 Slots | ||
Drop bow | ||
D&P 1 axe | ||
Unequip axe | ||
Reload | ||
Save | ||
Sync GameData | ||
Shoot 5 arrows | ||
Save as A1 | ||
Get 1 apple | ||
Reload | ||
Drop bow | ||
Drop axe | ||
Save | ||
Eat 1 apple | ||
Reload | ||
Sync GameData | ||
Save | ||
Reload A1 | ||
Eat 1 apple | ||
Reload | ||
Sync GameData |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
Init 2200 arrow [equip] 2200 arrow [equip] 1 apple 1 slate | ||
Save | ||
|
||
Init 1 axe 1 axe 1 bow [life=2200, equip] 0 arrow [equip] 1 slate | ||
Save as A1 | ||
|
||
Init 0 arrow [equip] 2200 arrow [equip] 2200 arrow[equip] 1 apple 1 slate | ||
Break 2 slots |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
// Author: Pearfalse | ||
const TEST = "gliderOpensGameData"; | ||
it(TEST, () => { | ||
expect(TEST).toPassE2ESimulation(true); | ||
}); | ||
export { }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# prepare SoR autosave | ||
save as NewGame | ||
get 4 weapon 4 simm 1 glider | ||
break 3 slots | ||
reload NewGame | ||
get 1 slate | ||
eat all simm | ||
get 2 weapon | ||
save | ||
drop all weapon | ||
reload | ||
sync gamedata |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
save as NewGame | ||
init 1 glider 1 slate 1 weapon [equip] 1 weapon | ||
save | ||
init 1 weapon [equip] 1 weapon 1 glider 1 slate 1 glider | ||
break 3 slots |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
// Author: Pearfalse | ||
const TEST = "slate_VOSDedupe"; | ||
it(TEST, () => { | ||
expect(TEST).toPassE2ESimulation(); | ||
}); | ||
export { }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# prepare SoR autosave | ||
save as SoR | ||
init 4 weapon 4 simm 1 slate | ||
break 1 slot | ||
# activate VOS | ||
reload SoR | ||
get 1 weapon | ||
drop weapon | ||
# walk along edge of cliff to hit slate pickup failsafe trigger | ||
get 1 slate |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
save as SoR | ||
init 1 slate | ||
break 1 slot | ||
init gamedata |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.