mirror of
https://github.com/doublespeakgames/adarkroom.git
synced 2026-06-26 06:12:30 +08:00
bugfix set ship,world location to true on init
This commit is contained in:
+1
-2
@@ -16,7 +16,7 @@ var Ship = {
|
|||||||
);
|
);
|
||||||
|
|
||||||
if(!$SM.get('features.location.spaceShip')) {
|
if(!$SM.get('features.location.spaceShip')) {
|
||||||
$SM.set('features.location.spaceShip');
|
$SM.set('features.location.spaceShip', true);
|
||||||
$SM.setM('game.spaceShip', {
|
$SM.setM('game.spaceShip', {
|
||||||
hull: Ship.BASE_HULL,
|
hull: Ship.BASE_HULL,
|
||||||
thrusters: Ship.BASE_THRUSTERS
|
thrusters: Ship.BASE_THRUSTERS
|
||||||
@@ -90,7 +90,6 @@ var Ship = {
|
|||||||
if(!$SM.get('game.spaceShip.seenShip')) {
|
if(!$SM.get('game.spaceShip.seenShip')) {
|
||||||
Notifications.notify(Ship, 'somewhere above the debris cloud, the wanderer fleet hovers. been on this rock too long.');
|
Notifications.notify(Ship, 'somewhere above the debris cloud, the wanderer fleet hovers. been on this rock too long.');
|
||||||
$SM.set('game.spaceShip.seenShip', true);
|
$SM.set('game.spaceShip.seenShip', true);
|
||||||
Engine.saveGame();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Engine.moveStoresView(null, transition_diff);
|
Engine.moveStoresView(null, transition_diff);
|
||||||
|
|||||||
+1
-1
@@ -129,7 +129,7 @@ var World = {
|
|||||||
World.LANDMARKS[World.TILE.SWAMP] = {num: 1, minRadius: 15, maxRadius: World.RADIUS * 1.5, scene: 'swamp', label: 'A Murky Swamp'};
|
World.LANDMARKS[World.TILE.SWAMP] = {num: 1, minRadius: 15, maxRadius: World.RADIUS * 1.5, scene: 'swamp', label: 'A Murky Swamp'};
|
||||||
|
|
||||||
if(typeof $SM.get('features.location.world') == 'undefined') {
|
if(typeof $SM.get('features.location.world') == 'undefined') {
|
||||||
$SM.set('features.location.world');
|
$SM.set('features.location.world', true);
|
||||||
$SM.setM('game.world', {
|
$SM.setM('game.world', {
|
||||||
map: World.generateMap(),
|
map: World.generateMap(),
|
||||||
mask: World.newMask()
|
mask: World.newMask()
|
||||||
|
|||||||
Reference in New Issue
Block a user