Moved Ship Stats from the Player object to Game Manager
This commit is contained in:
parent
beecc22cb5
commit
02e70bcf73
|
@ -4,5 +4,16 @@ G = Game;
|
||||||
G.player = {}; // Just a reference until G.player is created at rm_Ocean's load time.
|
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.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.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 () {}
|
function loadGameManager () {}
|
||||||
|
|
|
@ -21,9 +21,6 @@ var pr_ship = OS.P.Add("Ship", {
|
||||||
moveStepAmount: 5 * Oversimplified.R[Oversimplified.R.currentRoom].stepSpeed,
|
moveStepAmount: 5 * Oversimplified.R[Oversimplified.R.currentRoom].stepSpeed,
|
||||||
moveStepProgress: 0,
|
moveStepProgress: 0,
|
||||||
doTakeStep: false,
|
doTakeStep: false,
|
||||||
|
|
||||||
// Ship stats.
|
|
||||||
speedStat: 1
|
|
||||||
});
|
});
|
||||||
|
|
||||||
pr_ship.Do = function () {
|
pr_ship.Do = function () {
|
||||||
|
|
Loading…
Reference in New Issue