Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Pseudonian committed Apr 3, 2024
2 parents 21e853c + 5ab5b8d commit 4e5ba27
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ImportExport.ts
Original file line number Diff line number Diff line change
Expand Up @@ -514,12 +514,12 @@ export const promocodes = async (input: string | null, amount?: number) => {

const cap = craft.computeActualCap()

if (cap <= craft.BAL + 1) {
if (cap >= 1e300) {
return Alert(i18next.t('importexport.promocodes.bribe.overCapacity'))
}

player.codes.set(47, true)
craft.BAL++
craft.CAP = Math.min(1e300, craft.CAP * 2)

return Alert(i18next.t('importexport.promocodes.bribe.thanks'))
} else if (input.toLowerCase() === 'daily' && !player.dailyCodeUsed) {
Expand Down
2 changes: 2 additions & 0 deletions src/Reset.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1340,6 +1340,7 @@ export const singularity = async (setSingNumber = -1): Promise<void> => {
const saveCode44 = player.codes.get(44) ?? false
const saveCode45 = player.codes.get(45) ?? false
const saveCode46 = player.codes.get(46) ?? false
const saveCode47 = player.codes.get(47) ?? false

// Import Game

Expand All @@ -1361,6 +1362,7 @@ export const singularity = async (setSingNumber = -1): Promise<void> => {
player.codes.set(44, saveCode44)
player.codes.set(45, saveCode45)
player.codes.set(46, saveCode46)
player.codes.set(47, saveCode47)
updateSingularityMilestoneAwards()

player.rngCode = Date.now()
Expand Down

0 comments on commit 4e5ba27

Please sign in to comment.