mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-12-18 20:25:45 +01:00
BUGFIX: Fix wrong money source when traveling (#1456)
This commit is contained in:
parent
313d6a28b6
commit
26316c2494
@ -5,6 +5,7 @@ import { currentNodeMults } from "../BitNode/BitNodeMultipliers";
|
||||
import { Player } from "@player";
|
||||
import { WorkStats } from "@nsdefs";
|
||||
import { CONSTANTS } from "../Constants";
|
||||
import { PlayerObject } from "./Player/PlayerObject";
|
||||
|
||||
export function gainHackingExp(this: Person, exp: number): void {
|
||||
if (isNaN(exp)) {
|
||||
@ -176,7 +177,7 @@ export function travel(this: Person, cityName: CityName): boolean {
|
||||
return false;
|
||||
}
|
||||
|
||||
Player.loseMoney(CONSTANTS.TravelCost, "sleeves");
|
||||
Player.loseMoney(CONSTANTS.TravelCost, this instanceof PlayerObject ? "other" : "sleeves");
|
||||
this.city = cityName;
|
||||
|
||||
return true;
|
||||
|
Loading…
Reference in New Issue
Block a user