merged from upstream

This commit is contained in:
rderfler
2022-04-14 15:47:00 -04:00
11 changed files with 75 additions and 39 deletions
+4 -2
View File
@@ -38,6 +38,7 @@ import { PlayerAchievement } from "../../Achievements/Achievements";
import { cyrb53 } from "../../utils/StringHelperFunctions";
import { getRandomInt } from "../../utils/helpers/getRandomInt";
import { ITaskTracker } from "../ITaskTracker";
import { CONSTANTS } from "../../Constants";
export class PlayerObject implements IPlayer {
// Class members
@@ -356,7 +357,7 @@ export class PlayerObject implements IPlayer {
this.faction_rep_mult = 1;
//Money
this.money = 1000;
this.money = 1000 + CONSTANTS.Donations;
//Location information
this.city = CityName.Sector12;
@@ -635,7 +636,8 @@ export class PlayerObject implements IPlayer {
return "Player";
}
/**
/**
* Serialize the current object to a JSON save state.
*/
toJSON(): any {