mirror of
https://github.com/doublespeakgames/adarkroom.git
synced 2026-06-24 05:12:30 +08:00
Fixing minor whitespace conformity in state_manager.js, fixed whitespace conformity in world.js
This commit is contained in:
@@ -51,7 +51,7 @@ var StateManager = {
|
|||||||
var words = stateName.split(/[.\[\]'"]+/);
|
var words = stateName.split(/[.\[\]'"]+/);
|
||||||
//for some reason there are sometimes empty strings
|
//for some reason there are sometimes empty strings
|
||||||
for (var i = 0; i < words.length; i++) {
|
for (var i = 0; i < words.length; i++) {
|
||||||
if (words[i] == '') {
|
if (words[i] == '') {
|
||||||
words.splice(i, 1);
|
words.splice(i, 1);
|
||||||
i--;
|
i--;
|
||||||
}
|
}
|
||||||
@@ -402,4 +402,4 @@ var StateManager = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
//alias
|
//alias
|
||||||
var $SM = StateManager;
|
var $SM = StateManager;
|
||||||
|
|||||||
+2
-2
@@ -20,7 +20,7 @@ var World = {
|
|||||||
BOREHOLE: 'B',
|
BOREHOLE: 'B',
|
||||||
BATTLEFIELD: 'F',
|
BATTLEFIELD: 'F',
|
||||||
SWAMP: 'M',
|
SWAMP: 'M',
|
||||||
CACHE: 'U'
|
CACHE: 'U'
|
||||||
},
|
},
|
||||||
TILE_PROBS: {},
|
TILE_PROBS: {},
|
||||||
LANDMARKS: {},
|
LANDMARKS: {},
|
||||||
@@ -131,7 +131,7 @@ var World = {
|
|||||||
|
|
||||||
// Only add the cache if there is prestige data
|
// Only add the cache if there is prestige data
|
||||||
if($SM.get('previous.stores')) {
|
if($SM.get('previous.stores')) {
|
||||||
World.LANDMARKS[World.TILE.CACHE] = { num: 1, minRadius: 10, maxRadius: World.RADIUS * 1.5, scene: 'cache', label: _('A Destroyed Village')};
|
World.LANDMARKS[World.TILE.CACHE] = { num: 1, minRadius: 10, maxRadius: World.RADIUS * 1.5, scene: 'cache', label: _('A Destroyed Village')};
|
||||||
}
|
}
|
||||||
|
|
||||||
if(typeof $SM.get('features.location.world') == 'undefined') {
|
if(typeof $SM.get('features.location.world') == 'undefined') {
|
||||||
|
|||||||
Reference in New Issue
Block a user