fix bug with getTaskTask release 50.1

This commit is contained in:
Olivier Gagnon 2021-03-22 18:42:39 -04:00
parent 29abffd464
commit ce7c2c309c
7 changed files with 21 additions and 17 deletions

File diff suppressed because one or more lines are too long

20
dist/vendor.bundle.js vendored

File diff suppressed because one or more lines are too long

@ -66,7 +66,7 @@ documentation_title = '{0} Documentation'.format(project)
# The short X.Y version. # The short X.Y version.
version = '0.50' version = '0.50'
# The full version, including alpha/beta/rc tags. # The full version, including alpha/beta/rc tags.
release = '0.50.0' release = '0.50.1'
# The language for content autogenerated by Sphinx. Refer to documentation # The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages. # for a list of supported languages.

@ -590,6 +590,8 @@
<p>If the game fails to load, consider <a href="?noScripts">killing all scripts</a></p> <p>If the game fails to load, consider <a href="?noScripts">killing all scripts</a></p>
</div> </div>
</div> </div>
<div id="unclickable" style="display: none">Click on this to upgrade your Source-File -1!</div>
<script type="text/javascript" src="dist/vendor.bundle.js"></script><script type="text/javascript" src="dist/engine.bundle.js"></script><script type="text/javascript" src="dist/engineStyle.bundle.js"></script></body> <script type="text/javascript" src="dist/vendor.bundle.js"></script><script type="text/javascript" src="dist/engine.bundle.js"></script><script type="text/javascript" src="dist/engineStyle.bundle.js"></script></body>
<!-- Misc Scripts --> <!-- Misc Scripts -->

@ -121,5 +121,5 @@
"watch": "webpack --watch --mode production", "watch": "webpack --watch --mode production",
"watch:dev": "webpack --watch --mode development" "watch:dev": "webpack --watch --mode development"
}, },
"version": "0.49.2" "version": "0.50.1"
} }

@ -228,8 +228,10 @@ export let CONSTANTS: IMap<any> = {
LatestUpdate: LatestUpdate:
` `
v0.5X.X - 2021-XX-XX TITLE (hydroflame) v0.50.1 - 2021-03-22 (hydroflame)
------- -------
Netscript
* getTaskTasks works
Factions Factions
* Augmentations offered by a Faction but already bought are in a separate list at the bottom of the page. * Augmentations offered by a Faction but already bought are in a separate list at the bottom of the page.

@ -490,9 +490,9 @@ function NetscriptFunctions(workerScript) {
} }
const getGangTask = function(func, name) { const getGangTask = function(func, name) {
const task = GangMemberTasks[taskName]; const task = GangMemberTasks[name];
if (!task) { if (!task) {
throw makeRuntimeErrorMsg(`gang.${func}`, `Invalid task: '${taskName}'`); throw makeRuntimeErrorMsg(`gang.${func}`, `Invalid task: '${name}'`);
} }
return task; return task;