fix int exp gain in sing func

This commit is contained in:
Olivier Gagnon 2021-11-14 08:36:40 -05:00
parent 275c740a16
commit ded230eaaf
3 changed files with 3 additions and 3 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

@ -530,7 +530,6 @@ export function NetscriptSingularity(
if (player.hasProgram(item.program)) { if (player.hasProgram(item.program)) {
workerScript.log("purchaseProgram", `You already have the '${item.program}' program`); workerScript.log("purchaseProgram", `You already have the '${item.program}' program`);
player.gainIntelligenceExp(CONSTANTS.IntelligenceSingFnBaseExpGain / 50);
return true; return true;
} }
@ -540,6 +539,7 @@ export function NetscriptSingularity(
"purchaseProgram", "purchaseProgram",
`You have purchased the '${item.program}' program. The new program can be found on your home computer.`, `You have purchased the '${item.program}' program. The new program can be found on your home computer.`,
); );
player.gainIntelligenceExp(CONSTANTS.IntelligenceSingFnBaseExpGain / 50);
return true; return true;
}, },
getCurrentServer: function (): any { getCurrentServer: function (): any {