mirror of
https://github.com/doublespeakgames/adarkroom.git
synced 2026-05-28 08:11:54 +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')) {
|
||||
$SM.set('features.location.spaceShip');
|
||||
$SM.set('features.location.spaceShip', true);
|
||||
$SM.setM('game.spaceShip', {
|
||||
hull: Ship.BASE_HULL,
|
||||
thrusters: Ship.BASE_THRUSTERS
|
||||
@@ -90,7 +90,6 @@ var Ship = {
|
||||
if(!$SM.get('game.spaceShip.seenShip')) {
|
||||
Notifications.notify(Ship, 'somewhere above the debris cloud, the wanderer fleet hovers. been on this rock too long.');
|
||||
$SM.set('game.spaceShip.seenShip', true);
|
||||
Engine.saveGame();
|
||||
}
|
||||
|
||||
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'};
|
||||
|
||||
if(typeof $SM.get('features.location.world') == 'undefined') {
|
||||
$SM.set('features.location.world');
|
||||
$SM.set('features.location.world', true);
|
||||
$SM.setM('game.world', {
|
||||
map: World.generateMap(),
|
||||
mask: World.newMask()
|
||||
|
||||
Reference in New Issue
Block a user