Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

seeded rng #609

Closed
wants to merge 24 commits into from
Closed
Changes from 1 commit
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix a potentially huge exploit with EXALTs
Pseudonian committed Jul 5, 2024
commit 58fa893bc2eff0f581ab4c3b430fd08b1d484035
6 changes: 5 additions & 1 deletion src/singularity.ts
Original file line number Diff line number Diff line change
@@ -2307,7 +2307,7 @@ export const singularityPerks: SingularityPerk[] = [
// Placeholder text for Perk Info that is seen upon first load, check Line 645 EventListeners.ts for actual Perk Info code.
export const updateSingularityPerks = (): void => {
const singularityCount = player.singularityCount

DOMCacheGetOrSet('singularityPerksHeader').innerHTML = i18next.t(
'singularity.perks.header',
{
@@ -2719,6 +2719,10 @@ export const calculateTotalCacheSeconds = () => {
export const setSingularity = async () => {
// TODO: Make this i18 compatible. This function was honestly made in a hurry to get the beta out

if (player.insideSingularityChallenge) {
return Alert('The elevator does not function properly in these EXALTs.')
}

const c = Number(await Prompt(`What singularity would you like to travel to?
Your highest singularity is ${player.highestSingularityCount}
Your current singularity is ${player.singularityCount}