mirror of
https://github.com/doublespeakgames/adarkroom.git
synced 2026-06-03 03:01:55 +08:00
Fixed variable name
"k" still refers to the English string, while "lk" carries the translated value.
This commit is contained in:
+3
-3
@@ -797,7 +797,7 @@ var Room = {
|
|||||||
$SM.set('stores["'+k+'"]', 0);
|
$SM.set('stores["'+k+'"]', 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
k = _(k);
|
lk = _(k);
|
||||||
|
|
||||||
// thieves?
|
// thieves?
|
||||||
if(typeof $SM.get('game.thieves') == 'undefined' && num > 5000 && $SM.get('features.location.world')) {
|
if(typeof $SM.get('game.thieves') == 'undefined' && num > 5000 && $SM.get('features.location.world')) {
|
||||||
@@ -806,14 +806,14 @@ var Room = {
|
|||||||
|
|
||||||
if(row.length === 0 && num > 0) {
|
if(row.length === 0 && num > 0) {
|
||||||
row = $('<div>').attr('id', id).addClass('storeRow');
|
row = $('<div>').attr('id', id).addClass('storeRow');
|
||||||
$('<div>').addClass('row_key').text(k).appendTo(row);
|
$('<div>').addClass('row_key').text(lk).appendTo(row);
|
||||||
$('<div>').addClass('row_val').text(Math.floor(num)).appendTo(row);
|
$('<div>').addClass('row_val').text(Math.floor(num)).appendTo(row);
|
||||||
$('<div>').addClass('clear').appendTo(row);
|
$('<div>').addClass('clear').appendTo(row);
|
||||||
var curPrev = null;
|
var curPrev = null;
|
||||||
location.children().each(function(i) {
|
location.children().each(function(i) {
|
||||||
var child = $(this);
|
var child = $(this);
|
||||||
var cName = child.children('.row_key').text();
|
var cName = child.children('.row_key').text();
|
||||||
if(cName < k) {
|
if(cName < lk) {
|
||||||
curPrev = child.attr('id');
|
curPrev = child.attr('id');
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user