Revert "Gang rework"

This commit is contained in:
danielyxie
2018-10-23 13:47:00 -05:00
committed by GitHub
parent 25bbccca88
commit be0a08d70c
41 changed files with 1690 additions and 171071 deletions
+5 -1
View File
@@ -28,6 +28,10 @@ import {yesNoBoxCreate, yesNoTxtInpBoxCreate,
yesNoTxtInpBoxClose} from "../utils/YesNoBox";
function displayLocationContent() {
if (Engine.Debug) {
console.log("displayLocationContent() called with location " + Player.location)
}
var returnToWorld = document.getElementById("location-return-to-world-button");
var locationName = document.getElementById("location-name");
@@ -1807,7 +1811,7 @@ function initLocationButtons() {
yesBtn.innerHTML = "Purchase"; noBtn.innerHTML = "Cancel";
yesBtn.addEventListener("click", ()=>{
if (Player.money.lt(cost)) {
dialogBoxCreate("You do not have enough money to purchase an additional CPU Core for your home computer!");
dialogBoxCreate("You do not have enough mone to purchase an additional CPU Core for your home computer!");
} else {
Player.loseMoney(cost);
Player.getHomeComputer().cpuCores++;