From 670394ca2fa8bf149c949898c44efc8be27b8ca3 Mon Sep 17 00:00:00 2001 From: Olivier Gagnon Date: Fri, 19 Mar 2021 22:56:43 -0400 Subject: [PATCH] format rep gain in hacking mission. --- src/Missions.js | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/Missions.js b/src/Missions.js index 062b46254..f81de3c5e 100644 --- a/src/Missions.js +++ b/src/Missions.js @@ -5,6 +5,7 @@ import { Player } from "./Player"; import { dialogBoxCreate } from "../utils/DialogBox"; import { formatNumber } from "../utils/StringHelperFunctions"; +import { numeralWrapper } from "./ui/numeralFormat"; import { addOffset } from "../utils/helpers/addOffset"; import { getRandomInt } from "../utils/helpers/getRandomInt"; @@ -286,11 +287,8 @@ HackingMission.prototype.createPageDom = function() { var gain = this.reward * Player.faction_rep_mult * favorMult; var headerText = document.createElement("p"); headerText.innerHTML = "You are about to start a hacking mission! You will gain " + - formatNumber(gain, 3) + " faction reputation with " + this.faction.name + - " if you win. For more information " + - "about how hacking missions work, click one of the guide links " + - "below (one opens up an in-game guide and the other opens up " + - "the guide from the wiki). Click the 'Start' button to begin."; + numeralWrapper.format(gain, '0.000a') + " faction reputation with " + this.faction.name + + " if you win. Click the 'Start' button to begin."; headerText.style.display = "block"; headerText.classList.add("hack-mission-header-element"); headerText.style.width = "80%";