Moved Ship Stats from the Player object to Game Manager

This commit is contained in:
Robbie Antenesse 2016-04-06 14:41:40 -06:00
parent beecc22cb5
commit 02e70bcf73
2 changed files with 11 additions and 3 deletions

View File

@ -4,5 +4,16 @@ G = Game;
G.player = {}; // Just a reference until G.player is created at rm_Ocean's load time.
G.oceanParticle = {}; // One ocean particle will exist at any time and move around the boat.
G.map = []; // List of island objects, generated/loaded and saved at game start, loaded on room start.
G.inventory = [];
G.stats = {
money: 100,
inventory: 5, // Maximum number of different things the inventory can hold.
speed: 1,
hull: 1,
popularity: 0,
haggling: 1,
crew: 1,
energy: 10
}
function loadGameManager () {}

View File

@ -21,9 +21,6 @@ var pr_ship = OS.P.Add("Ship", {
moveStepAmount: 5 * Oversimplified.R[Oversimplified.R.currentRoom].stepSpeed,
moveStepProgress: 0,
doTakeStep: false,
// Ship stats.
speedStat: 1
});
pr_ship.Do = function () {