Skip to content

Commit a5f8a57

Browse files
[Fix/Story mode] Fix INTRO-2 map and make adjust recruitment requirements (#210)
* Fix INTRO-2 map and make recruitment possible without optional challenges. * Bump version
1 parent a72098c commit a5f8a57

3 files changed

Lines changed: 10 additions & 4 deletions

File tree

rlbot_gui/gui/js/story-challenges.js

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -276,12 +276,18 @@ export default {
276276
recruit_list: function () {
277277
let recruits = {};
278278

279+
// You can recruit bots from mandatory challenges of
280+
// a city once all the mandatory challenges of that city is complete.
279281
for (let city of Object.keys(this.challenges)) {
280-
if (this.getCityState(city) != CITY_STATE.DONE) {
282+
const state = this.getCityState(city);
283+
if (state === CITY_STATE.LOCKED || state === CITY_STATE.OPEN) {
281284
continue;
282285
}
283286
for (let challenge of this.challenges[city]) {
284-
// This challenge was completed so opponents are available
287+
if (challenge.optional) {
288+
continue
289+
}
290+
// This challenge was mandatory and now completed so opponents are available
285291
const botIds = challenge.opponentBots;
286292
for (let botId of botIds) {
287293
let bot = Object.assign({}, this.bots_config[botId]);

rlbot_gui/story/story-default.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
"humanTeamSize": 1,
2222
"opponentBots": ["noobbot"],
2323
"optional": true,
24-
"map": "BeckwithPark_Dawn",
24+
"map": "Farmstead",
2525
"display": "A training partner challenges you"
2626
}
2727
]

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import setuptools
22

3-
__version__ = '0.0.150'
3+
__version__ = '0.0.151'
44

55
with open("README.md", "r") as readme_file:
66
long_description = readme_file.read()

0 commit comments

Comments
 (0)