enefel 1.0.112 → 1.0.113
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/stadium.js +9 -2
package/package.json
CHANGED
package/stadium.js
CHANGED
|
@@ -85,12 +85,18 @@ const maxHeight = 15;
|
|
|
85
85
|
const priceSize = 20;
|
|
86
86
|
const COACH_REROLL_COST = 50;
|
|
87
87
|
const STORE_COST = 50;
|
|
88
|
+
const MAX_STORE = 5;
|
|
88
89
|
|
|
89
90
|
const getStoreCost = (team) => {
|
|
90
|
-
|
|
91
|
+
if (team.stadiumStore >= MAX_STORE) {
|
|
92
|
+
return Infinity;
|
|
93
|
+
}
|
|
94
|
+
// 50, 100, 200, 400, 800
|
|
95
|
+
return STORE_COST * Math.pow(2, team.stadiumStore);
|
|
91
96
|
};
|
|
92
97
|
|
|
93
98
|
const getRerollCoachCost = (team) => {
|
|
99
|
+
// 50, 100, 150, 200, 250
|
|
94
100
|
return COACH_REROLL_COST * (team.rerollCoach + 1);
|
|
95
101
|
};
|
|
96
102
|
|
|
@@ -260,7 +266,6 @@ function splitList(w, s) {
|
|
|
260
266
|
}
|
|
261
267
|
|
|
262
268
|
module.exports = {
|
|
263
|
-
getStoreCost,
|
|
264
269
|
addCenterZone,
|
|
265
270
|
getRerollCoachCost,
|
|
266
271
|
getStadiumCapacity,
|
|
@@ -268,9 +273,11 @@ module.exports = {
|
|
|
268
273
|
getStadiumFan,
|
|
269
274
|
getStadiumReroll,
|
|
270
275
|
getStadiumRerollCoach,
|
|
276
|
+
getStoreCost,
|
|
271
277
|
insertLine,
|
|
272
278
|
insertTile,
|
|
273
279
|
MAX_LATERAL,
|
|
280
|
+
MAX_STORE,
|
|
274
281
|
maxHeight,
|
|
275
282
|
maxWidth,
|
|
276
283
|
MIN_SCRIMMAGE,
|