mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-21 08:42:53 +02:00
Merge pull request #270 from hydroflame/fix-travelToCity
made travel cost a constant and prevent travelToCity from traveling i…
This commit is contained in:
@@ -2473,7 +2473,11 @@ function NetscriptFunctions(workerScript) {
|
||||
case Locations.NewTokyo:
|
||||
case Locations.Ishima:
|
||||
case Locations.Volhaven:
|
||||
Player.loseMoney(200000);
|
||||
if(Player.money.lt(CONSTANTS.TravelCost)) {
|
||||
workerScript.scriptRef.log("ERROR: not enough money to travel with travelToCity().");
|
||||
throw makeRuntimeRejectMsg(workerScript, "ERROR: not enough money to travel with travelToCity().");
|
||||
}
|
||||
Player.loseMoney(CONSTANTS.TravelCost);
|
||||
Player.city = cityname;
|
||||
Player.gainIntelligenceExp(CONSTANTS.IntelligenceSingFnBaseExpGain);
|
||||
if (workerScript.disableLogs.ALL == null && workerScript.disableLogs.travelToCity == null) {
|
||||
|
||||
Reference in New Issue
Block a user