mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-24 02:03:01 +02:00
Finished location code refactor. Has not yet been tested
This commit is contained in:
@@ -1,12 +0,0 @@
|
||||
import { PlayerObject } from "../../Player";
|
||||
import { Cities } from "../../Locations/Cities";
|
||||
|
||||
PlayerObject.prototype.travel = function(to) {
|
||||
if (Cities[to] == null) {
|
||||
console.warn(`Player.travel() called with invalid city: ${to}`);
|
||||
return false;
|
||||
}
|
||||
this.city = to;
|
||||
|
||||
return true;
|
||||
}
|
||||
Reference in New Issue
Block a user