mirror of
https://github.com/doublespeakgames/adarkroom.git
synced 2026-05-28 08:11:54 +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(/[.\[\]'"]+/);
|
||||
//for some reason there are sometimes empty strings
|
||||
for (var i = 0; i < words.length; i++) {
|
||||
if (words[i] == '') {
|
||||
if (words[i] == '') {
|
||||
words.splice(i, 1);
|
||||
i--;
|
||||
}
|
||||
@@ -402,4 +402,4 @@ var StateManager = {
|
||||
};
|
||||
|
||||
//alias
|
||||
var $SM = StateManager;
|
||||
var $SM = StateManager;
|
||||
|
||||
+2
-2
@@ -20,7 +20,7 @@ var World = {
|
||||
BOREHOLE: 'B',
|
||||
BATTLEFIELD: 'F',
|
||||
SWAMP: 'M',
|
||||
CACHE: 'U'
|
||||
CACHE: 'U'
|
||||
},
|
||||
TILE_PROBS: {},
|
||||
LANDMARKS: {},
|
||||
@@ -131,7 +131,7 @@ var World = {
|
||||
|
||||
// Only add the cache if there is prestige data
|
||||
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') {
|
||||
|
||||
Reference in New Issue
Block a user