Skip to content

Commit 2307c1b

Browse files
authored
Add files via upload
1 parent 2bf0132 commit 2307c1b

File tree

4 files changed

+52
-6
lines changed

4 files changed

+52
-6
lines changed

js/cards.js

Lines changed: 38 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1106,7 +1106,33 @@ APP.cards = {
11061106
landType: "duplex",
11071107
units: 2
11081108
},
1109-
limitedPartnershipB1: {
1109+
realEstateB34: {
1110+
name: "Mansion for Sale - 5 Br/4 Ba",
1111+
type: "Real Estate",
1112+
description: "5/4 house outside of metropolitan area offers potential capital gain plus current cash flow. Good rentals and nice financing.",
1113+
rule: "Use this yourself or sell to another player. 51% ROI, may sell for $650,000 to $1,350,000.",
1114+
roi: 0.51,
1115+
cost: 820000,
1116+
mortgage: 750000,
1117+
downPayment: 80000,
1118+
cashFlow: 8200,
1119+
tag: "Mansion",
1120+
landType: "Mansion"
1121+
},
1122+
realEstateB35: {
1123+
name: "Mansion for Sale - 6 Br/6 Ba",
1124+
type: "Real Estate",
1125+
description: "6/6 house in exclusive hollywood neighborhood offers potential capital gain plus current cash flow. Good rentals and nice financing.",
1126+
rule: "Use this yourself or sell to another player. 51% ROI, may sell for $6,500,000 to $10,350,000.",
1127+
roi: 0.51,
1128+
cost: 11000000,
1129+
mortgage: 8000000,
1130+
downPayment: 3000000,
1131+
cashFlow: 55000,
1132+
tag: "Mansion",
1133+
landType: "Mansion"
1134+
},
1135+
limitedPartnershipB1: {
11101136
name: "Limited Partner Wanted",
11111137
type: "Limited Partnership",
11121138
description: "Non-franchise sandwich shop doubling the number of locations. Owner needs additional equity capital to get operating loan.",
@@ -1213,7 +1239,8 @@ APP.cards = {
12131239
rule: "Pay $1,000 if you own any rental real estate",
12141240
propertyType: "rental",
12151241
cost: 1000
1216-
}
1242+
},
1243+
//property damage mansion - weather protectiom
12171244
},
12181245
offer: {
12191246
offer1: {
@@ -1572,6 +1599,15 @@ APP.cards = {
15721599
rule2: "",
15731600
offer: 5000
15741601
}
1602+
/*,
1603+
offer45: {
1604+
name: "Mansion Buyer",
1605+
description: "You are offered $135,000 for a 3/2 rental house. Buyer has own financing.",
1606+
rule1: "Everyone may sell at this price",
1607+
rule2: "If you sell, pay off the related mortgage and give up the cash flow you currently receive on this property.",
1608+
offer: 135000,
1609+
type: "Mansion"
1610+
}*/
15751611
},
15761612
doodad: {
15771613
doodad1: {

js/display.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -410,6 +410,7 @@ APP.display = {
410410
if ((damageType === "rental" && landType ==
411411
("3Br/2Ba" ||
412412
"2Br/1Ba" ||
413+
"Mansion" ||
413414
"duplex" ||
414415
"4-plex" ||
415416
"8-plex" ||

js/index.js

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2510,7 +2510,6 @@ function save() {
25102510
setTimeout(function(){document.getElementById("alert").innerHTML = ''; }, 4000);
25112511
}
25122512

2513-
25142513
function load(saveKey) {
25152514
var gameState = JSON.parse(localStorage.getItem('saveState'));
25162515
var players = JSON.parse(localStorage.getItem('player array'));
@@ -2522,6 +2521,16 @@ function load(saveKey) {
25222521
APP.currentPlayer = gameState['currentPlayer'];
25232522
}
25242523

2525-
if (localStorage) {
2524+
function deleteSave(saveKey) {
2525+
localStorage.removeItem('saveState');
2526+
localStorage.removeItem('player array');
2527+
}
2528+
2529+
if (localStorage.length > 0) {
25262530
$("#continue-game").css("display", "inline-block");
2527-
}
2531+
$("#start-game").css("padding", "6% 8%");
2532+
$("#start-game").css("margin", "auto");
2533+
} else {
2534+
$("#continue-game").css("display", "none");
2535+
$("#start-game").css("padding", "6% 33.5%");
2536+
}

js/options.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,7 @@ var OPTIONS = {
340340
this.checkState();
341341
} else if (title.innerText == "Hard"){
342342
$(title).text("Custom");
343-
this.checkState();
343+
this.defaultOptions();
344344
}
345345
}
346346
};

0 commit comments

Comments
 (0)