Cant stop wont stop studying

Correct merge, and known bug that prevents stopping studying
This commit is contained in:
rderfler 2022-04-25 13:41:43 -04:00
parent e381e857a5
commit 5f46775950
2 changed files with 3 additions and 4 deletions

@ -67,7 +67,7 @@ import { achievements } from "../../Achievements/Achievements";
import { FactionNames } from "../../Faction/data/FactionNames";
import { ITaskTracker } from "../ITaskTracker";
import { IPerson } from "../IPerson";
import { use } from "../../ui/Context";
import { Player } from "../../Player";
import { graftingIntBonus } from "../Grafting/GraftingHelpers";
export function init(this: IPlayer): void {
@ -470,8 +470,7 @@ export function gainIntelligenceExp(this: IPerson, exp: number): void {
console.error("ERROR: NaN passed into Player.gainIntelligenceExp()");
return;
}
const player = use.Player();
if (player.sourceFileLvl(5) > 0 || this.intelligence > 0) {
if (Player.sourceFileLvl(5) > 0 || this.intelligence > 0) {
this.intelligence_exp += exp;
this.intelligence = Math.floor(this.calculateSkill(this.intelligence_exp, 1));
}

@ -590,7 +590,7 @@ export class Sleeve extends Person {
// for, we need to reset the sleeve's task
if (p.gang) {
if (fac.name === p.gang.facName) {
this.resetTaskStatus();
this.resetTaskStatus(p);
}
}