Commit a4d95ee4 authored by Rob Swindell's avatar Rob Swindell

Fix "jsexec lord.js +IGM grabbag/grabbag" installation

parent aed390ae
Pipeline #150 passed with stage
in 9 minutes and 8 seconds
......@@ -3014,24 +3014,6 @@ function run_maint(b)
var bs;
load('array.js'); // probably no longer needed
var mnum = undefined;
if (player.level === 1)
{
mnum = random(10);
}
else
{
if (random(6) !== 2)
{
mnum = ((player.level-1)*11)+random(10);
}
else
{
mnum = (random(player.level) * 11) + random(10);
}
}
var husband = load_monster(mnum); // sets up monster battle and nymph husband
// end globals
function main()
......@@ -3185,6 +3167,24 @@ if (argc == 1 && argv[0] == 'INSTALL') {
exit(0);
}
else {
if (player.level === 1)
{
mnum = random(10);
}
else
{
if (random(6) !== 2)
{
mnum = ((player.level-1)*11)+random(10);
}
else
{
mnum = (random(player.level) * 11) + random(10);
}
}
var husband = load_monster(mnum); // sets up monster battle and nymph husband
main();
exit(0); // most routines end with good_bye();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment