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