Small hotfix (#840)

* yesno box now correctly clean up before new content is loaded in.

* formatHp doesnt display decimal, duh

* character overview uses numeralWrapper formatHp

* minor formatting stuff

* Class spending is tracked indepedently of work money

* Made an augmentation named after myself.

* hotfix a bunch of small stuff
This commit is contained in:
hydroflame
2021-04-12 20:03:32 -04:00
committed by GitHub
parent 0afdba8f38
commit 80b703639e
11 changed files with 36 additions and 11 deletions

View File

@@ -550,7 +550,11 @@ export function processWorkEarnings(numCycles=1) {
this.gainAgilityExp(agiExpGain);
this.gainCharismaExp(chaExpGain);
this.gainMoney(moneyGain);
this.recordMoneySource(moneyGain, "work");
if (this.className) {
this.recordMoneySource(moneyGain, "class");
} else {
this.recordMoneySource(moneyGain, "work");
}
this.workHackExpGained += hackExpGain;
this.workStrExpGained += strExpGain;
this.workDefExpGained += defExpGain;