Merge pull request #965 from danielyxie/dev

Hotfix large numbers
This commit is contained in:
hydroflame
2021-05-26 14:14:44 -04:00
committed by GitHub
6 changed files with 9 additions and 7 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1384,7 +1384,7 @@ function initAugmentations() {
"Even though it contains no weapons, the advance tungsten titanium " +
"alloy increases the users strength to unbelievable levels.<br><br>" +
"This augmentation increases the player's strength by 300%.",
strength_mult: 3,
strength_mult: 2.70,
});
HydroflameLeftArm.addToFactions(["NWO"]);
if (augmentationExists(AugmentationNames.HydroflameLeftArm)) {

View File

@ -17,7 +17,7 @@ export const GeneralActions: IMap<Action> = {};
actionName = "Field Analysis";
GeneralActions[actionName] = new Action({
name:actionName,
desc:"Mine and analyze Synthoid-related data. This improve the " +
desc:"Mine and analyze Synthoid-related data. This improves the " +
"Bladeburner's unit intelligence on Synthoid locations and " +
"activities. Completing this action will improve the accuracy " +
"of your Synthoid population estimated in the current city.<br><br>" +
@ -46,4 +46,4 @@ export const GeneralActions: IMap<Action> = {};
desc: "Enter cryogenic stasis using the Bladeburner division's hi-tech Regeneration Chamber. " +
"This will slowly heal your wounds and slightly increase your stamina.<br><br>",
});
})()
})()

View File

@ -716,7 +716,7 @@ class DevMenuComponent extends Component {
<button className="std-button" onClick={this.addMoney(1e9)}>Add $1b</button>
<button className="std-button" onClick={this.addMoney(1e12)}>Add $1t</button>
<button className="std-button" onClick={this.addMoney(1e15)}>Add $1000t</button>
<button className="std-button" onClick={this.addMoney(1e27)}>Add $1e27</button>
<button className="std-button" onClick={this.addMoney(1e99)}>Add $1e99</button>
<button className="std-button" onClick={this.upgradeRam}>Upgrade Home Computer's RAM</button>
</div>
<div className="row">

View File

@ -56,7 +56,9 @@ class NumeralFormatter {
if(Math.abs(n) < 1000) {
return this.format(n, "$0.00");
}
return this.format(n, "$0.000a");
const str = this.format(n, "$0.000a");
if(str === "$NaNt") return '$'+this.format(n, '0.000e0');
return str;
}
formatSkill(n: number): string {