Began creating 'parent' components for the City and Location-specific parts of the UI

This commit is contained in:
danielyxie
2019-03-29 00:12:41 -07:00
parent 75bc34208c
commit 7172f4e527
16 changed files with 551 additions and 344 deletions
@@ -0,0 +1,12 @@
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;
}