Skip to content

Commit b9dd981

Browse files
committed
Oops! No Octeracts
1 parent 78d956c commit b9dd981

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

src/Config.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
export const version = '3.0.0 pt 5.2: June 27, 2024: Fall of the Octeracts'
1+
export const version = '3.0.0 pt 5.2: June 27, 2024: Fall of the Octeracts 2'
22

33
/**
44
* PSEUDO DO NOT CHANGE THIS LINE

src/Octeracts.ts

+7-2
Original file line numberDiff line numberDiff line change
@@ -166,8 +166,13 @@ export class OcteractUpgrade extends DynamicUpgrade {
166166
return 0
167167
}
168168
const actualFreeLevels = this.computeFreeLevelSoftcap()
169-
const decayLevel = Math.min(actualFreeLevels + this.level, 2 * Math.sqrt(actualFreeLevels * this.level))
170-
return decayLevel // There is currently no 'improvement' to oct free upgrades.
169+
170+
if (this.level >= actualFreeLevels) {
171+
return actualFreeLevels + this.level
172+
}
173+
else {
174+
return 2 * Math.sqrt(actualFreeLevels * this.level)
175+
}
171176
}
172177

173178
public getEffect (): { bonus: number | boolean; desc: string } {

0 commit comments

Comments
 (0)