Formatted number in TravelBox. Upgrading Core on Hacknet node even more expensive

This commit is contained in:
Daniel Xie
2017-05-23 15:20:28 -05:00
parent bfcecd7e0f
commit 8eb0809d90
2 changed files with 2 additions and 5 deletions
+1 -4
View File
@@ -27,13 +27,10 @@ travelBoxSetText = function(txt) {
}
travelBoxCreate = function(destCityName, cost) {
travelBoxSetText("Would you like to travel to " + destCityName + "? The trip will cost $" + cost + ".");
travelBoxSetText("Would you like to travel to " + destCityName + "? The trip will cost $" + formatNumber(cost, 2) + ".");
//Clear old event listeners from Confirm button
var newConfirmButton = clearEventListeners("travel-box-confirm");
//var confirmButton = document.getElementById("travel-box-confirm");
//var newConfirmButton = confirmButton.cloneNode(true);
//confirmButton.parentNode.replaceChild(newConfirmButton, confirmButton);
newConfirmButton.addEventListener("click", function() {
travelBoxClose();
travelToCity(destCityName, cost);