Skip to content

Apply iOS TS131 logic to this version - #3496

Open
nicholasptran wants to merge 2 commits into
IvarK:masterfrom
nicholasptran:master
Open

Apply iOS TS131 logic to this version#3496
nicholasptran wants to merge 2 commits into
IvarK:masterfrom
nicholasptran:master

Conversation

@nicholasptran

Copy link
Copy Markdown

#3495

TS 131 iOS logic:
Automatic Replicanti Galaxies are disabled while offline, but you can get 50% more of them

Cost: 5 Time Theorems

@nicholasptran
nicholasptran marked this pull request as draft July 31, 2026 04:09
@kajfik
kajfik marked this pull request as ready for review July 31, 2026 09:24
@kajfik
kajfik self-requested a review July 31, 2026 09:24

@kajfik kajfik left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks like the 6h/24h offline time IAPs (purchaseTimeSkip and purchaseLongerTimeSkip) don't count as offline here on web, while on iOS they do.

Should be fixed by removing the isSimulatingOfflineProgress = true from storage.js and adding GameStorage.isSimulatingOfflineProgress = false to the beginning of afterSimulation(), and then GameStorage.isSimulatingOfflineProgress = true right after if (seconds < 0) return; in simulateTime(). This is because both the offline time puchases use simulateTime().

It also looks like disabling hibernationCatchup doesn't simulate offline time (similar to the offline IAPs) when the game "hibernates". This could probably be fixed by removing isSimulatingOfflineProgress = true from inside the if(player.options.hibernationCatchup ...), and instead moving it above the if with something like if (passDiff === undefined) GameStorage.isSimulatingOfflineProgress = realDiff > 6e4;.

@nicholasptran

nicholasptran commented Jul 31, 2026

Copy link
Copy Markdown
Author

objective:
Read pr

knowledge exploration:

  • Find all instances of offline logic

expected:

observed:

reproduction steps:

  • unlock achievement 138

  • buy ts 131

  • go offline

  • observe replicanti antimatter autobuys

  • lock achievement 138

  • buy ts 131

  • go offline

  • observe replicanti antimatter does not auto buy

validation:

  • logic affects offline iap

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants