Skip to content

Commit c0b6e88

Browse files
style: Fix some typos in code
1 parent c9a19a2 commit c0b6e88

File tree

4 files changed

+22
-13
lines changed

4 files changed

+22
-13
lines changed

.vscode/settings.json

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,10 @@
3737
"chronospheres",
3838
"cinfo",
3939
"Craftable",
40+
"cryo",
4041
"Cryochamber",
4142
"Cryochambers",
43+
"Cryptotheology",
4244
"cwarn",
4345
"devcontainer",
4446
"eludium",
@@ -52,22 +54,28 @@
5254
"nagas",
5355
"nbsp",
5456
"necrocorn",
57+
"necrocorns",
58+
"Numeromancy",
5559
"oliversalzburg",
5660
"POSIX",
5761
"prio",
5862
"promotekittens",
5963
"railguns",
6064
"redmoon",
6165
"savegame",
66+
"solarfarm",
67+
"Stackable",
6268
"starchart",
6369
"Steamworks",
70+
"sunspire",
6471
"Tampermonkey",
6572
"Toggleable",
6673
"tradepost",
6774
"typecheck",
6875
"ucfirst",
6976
"unobtainium",
7077
"userscript",
71-
"Ziggurath"
78+
"Ziggurath",
79+
"zigguraths"
7280
]
7381
}

packages/userscript/source/ReligionManager.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,7 @@ export class ReligionManager implements Automation {
298298
// We now want to determine how quickly the cost of given building is neutralized
299299
// by its effect on production of unicorns.
300300

301-
let bestAmoritization = Infinity;
301+
let bestAmortization = Infinity;
302302
let bestBuilding: ZiggurathUpgrades | null = null;
303303
const unicornsPerTickBase = mustExist(
304304
this._host.gamePage.bld.getBuildingExt("unicornPasture").meta.effects["unicornsPerTickBase"]
@@ -316,8 +316,8 @@ export class ReligionManager implements Automation {
316316
// set it as the default. This is likely to protect against cases where
317317
// production of unicorns is 0.
318318
const pastureAmortization = mustExist(pastureButton.model.prices)[0].val / pastureProduction;
319-
if (pastureAmortization < bestAmoritization) {
320-
bestAmoritization = pastureAmortization;
319+
if (pastureAmortization < bestAmortization) {
320+
bestAmortization = pastureAmortization;
321321
bestBuilding = "unicornPasture";
322322
}
323323

@@ -366,9 +366,9 @@ export class ReligionManager implements Automation {
366366
buildingProduction += riftBonus;
367367
const amortization = unicornPrice / buildingProduction;
368368

369-
if (amortization < bestAmoritization) {
369+
if (amortization < bestAmortization) {
370370
if (0 < riftBonus || (religionRatio < religionBonus && 0 < unicornPrice)) {
371-
bestAmoritization = amortization;
371+
bestAmortization = amortization;
372372
bestBuilding = button.id;
373373
}
374374
}
@@ -660,7 +660,7 @@ export class ReligionManager implements Automation {
660660
// Transcend
661661
if (transcendenceReached) {
662662
// How much our adoration ratio increases from transcending.
663-
const adoreIncreaceRatio = Math.pow(
663+
const adoreIncreaseRatio = Math.pow(
664664
(transcendenceTierCurrent + 2) / (transcendenceTierCurrent + 1),
665665
2
666666
);
@@ -669,10 +669,10 @@ export class ReligionManager implements Automation {
669669
this._host.gamePage.religion._getTranscendTotalPrice(transcendenceTierCurrent + 1) -
670670
this._host.gamePage.religion._getTranscendTotalPrice(transcendenceTierCurrent);
671671

672-
// We want to determine the ideal value for when to trancend.
672+
// We want to determine the ideal value for when to transcend.
673673
// TODO: How exactly this works isn't understood yet.
674674
const x = needNextLevel;
675-
const k = adoreIncreaceRatio;
675+
const k = adoreIncreaseRatio;
676676
const epiphanyRecommend =
677677
((1 - k + Math.sqrt(80 * (k * k - 1) * x + (k - 1) * (k - 1))) * k) /
678678
(40 * (k + 1) * (k + 1) * (k - 1)) +

packages/userscript/source/TradeManager.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -406,7 +406,7 @@ export class TradeManager implements Automation {
406406
}
407407
} else {
408408
// We can reach this branch if we have partial necrocorns from resets.
409-
// The partial necrocorns will then be fead to the elders to bring us back
409+
// The partial necrocorns will then be feed to the elders to bring us back
410410
// to even zero.
411411
if (0.25 * (1 + this._host.gamePage.getEffect("corruptionBoostRatio")) < 1) {
412412
this._host.engine.storeForSummary("feed", necrocorns.value);
@@ -538,7 +538,8 @@ export class TradeManager implements Automation {
538538

539539
// All of this code is straight-forward. Buy low, sell high.
540540

541-
// Exchanges up to a certain threshold, in order to keep a good exchange rate, then waits for a higher treshold before exchanging for relics.
541+
// Exchanges up to a certain threshold, in order to keep a good exchange rate, then waits
542+
// for a higher threshold before exchanging for relics.
542543
if (
543544
coinPrice < (this.settings.tradeBlackcoin.buy ?? 950.0) &&
544545
(this.settings.tradeBlackcoin.trigger ?? 0) < relicsInitial
@@ -628,7 +629,7 @@ export class TradeManager implements Automation {
628629
}
629630

630631
// Add to the cost.
631-
// We consider all resources to be equal in the profatibility calculation.
632+
// We consider all resources to be equal in the profitability calculation.
632633
// We just add the cost of the resource, divided by how much of it we're
633634
// producing. So resources that we produce a lot of, don't "cost" as much.
634635
cost += amount / tick;

packages/userscript/source/helper/BulkPurchaseHelper.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -492,7 +492,7 @@ export class BulkPurchaseHelper {
492492
}
493493

494494
/**
495-
* Determing the price modifier for the given building.
495+
* Determine the price modifier for the given building.
496496
*
497497
* @param data The building metadata.
498498
* @param source The tab the building belongs to.

0 commit comments

Comments
 (0)