mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-22 17:23:00 +02:00
Formatted number in TravelBox. Upgrading Core on Hacknet node even more expensive
This commit is contained in:
+1
-4
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user