mirror of
https://github.com/doublespeakgames/adarkroom.git
synced 2026-05-28 08:11:54 +08:00
Made outside.js jshint compliant
This commit is contained in:
@@ -65,5 +65,5 @@
|
|||||||
_('the compass points southwest')
|
_('the compass points southwest')
|
||||||
];
|
];
|
||||||
|
|
||||||
delete keywords;
|
keywords = null;
|
||||||
})();
|
})();
|
||||||
|
|||||||
+5
-5
@@ -619,14 +619,14 @@ var Outside = {
|
|||||||
}
|
}
|
||||||
/// TRANSLATORS : Mind the whitespace at the end.
|
/// TRANSLATORS : Mind the whitespace at the end.
|
||||||
var s = _('the traps contain ');
|
var s = _('the traps contain ');
|
||||||
for(var i = 0, len = msg.length; i < len; i++) {
|
for(var l = 0, len = msg.length; l < len; l++) {
|
||||||
if(len > 1 && i > 0 && i < len - 1) {
|
if(len > 1 && l > 0 && l < len - 1) {
|
||||||
s += ", ";
|
s += ", ";
|
||||||
} else if(len > 1 && i == len - 1) {
|
} else if(len > 1 && l == len - 1) {
|
||||||
/// TRANSLATORS : Mind the whitespaces at the beginning and end.
|
/// TRANSLATORS : Mind the whitespaces at the beginning and end.
|
||||||
s += _(" and ");
|
s += _(" and ");
|
||||||
}
|
}
|
||||||
s += msg[i];
|
s += msg[l];
|
||||||
}
|
}
|
||||||
|
|
||||||
var baitUsed = numBait < numTraps ? numBait : numTraps;
|
var baitUsed = numBait < numTraps ? numBait : numTraps;
|
||||||
@@ -643,7 +643,7 @@ var Outside = {
|
|||||||
Outside.updateVillage();
|
Outside.updateVillage();
|
||||||
Outside.updateWorkersView();
|
Outside.updateWorkersView();
|
||||||
Outside.updateVillageIncome();
|
Outside.updateVillageIncome();
|
||||||
};
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
scrollSidebar: function(direction, reset) {
|
scrollSidebar: function(direction, reset) {
|
||||||
|
|||||||
Reference in New Issue
Block a user