mirror of
https://github.com/doublespeakgames/adarkroom.git
synced 2026-06-29 07:42:30 +08:00
@@ -3153,3 +3153,23 @@ msgstr ""
|
|||||||
#: script/events/setpieces.js:3565
|
#: script/events/setpieces.js:3565
|
||||||
msgid "ripe for the picking."
|
msgid "ripe for the picking."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
#: script/events/outside.js:74
|
||||||
|
msgid "a fire rampages through one of the huts, destroying it."
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: script/events/outside.js:75
|
||||||
|
msgid "all residents in the hut perished in the fire."
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: script/events/outside.js:77
|
||||||
|
msgid "a fire has started"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: script/events/outside.js:87
|
||||||
|
msgid "mourn"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: script/events/outside.js:88
|
||||||
|
msgid "some villagers have died"
|
||||||
|
msgstr ""
|
||||||
|
|||||||
+1
-1
File diff suppressed because one or more lines are too long
+582
-562
File diff suppressed because it is too large
Load Diff
+9
-7
@@ -158,6 +158,7 @@ var Outside = {
|
|||||||
|
|
||||||
this.updateVillage();
|
this.updateVillage();
|
||||||
Outside.updateWorkersView();
|
Outside.updateWorkersView();
|
||||||
|
Outside.updateVillageIncome();
|
||||||
|
|
||||||
Engine.updateSlider();
|
Engine.updateSlider();
|
||||||
|
|
||||||
@@ -363,26 +364,27 @@ var Outside = {
|
|||||||
|
|
||||||
updateVillageRow: function(name, num, village) {
|
updateVillageRow: function(name, num, village) {
|
||||||
var id = 'building_row_' + name.replace(' ', '-');
|
var id = 'building_row_' + name.replace(' ', '-');
|
||||||
|
var lname = _(name);
|
||||||
var row = $('div#' + id, village);
|
var row = $('div#' + id, village);
|
||||||
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(_(name)).appendTo(row);
|
$('<div>').addClass('row_key').text(lname).appendTo(row);
|
||||||
$('<div>').addClass('row_val').text(num).appendTo(row);
|
$('<div>').addClass('row_val').text(num).appendTo(row);
|
||||||
$('<div>').addClass('clear').appendTo(row);
|
$('<div>').addClass('clear').appendTo(row);
|
||||||
var curPrev = null;
|
var curPrev = null;
|
||||||
village.children().each(function(i) {
|
village.children().each(function(i) {
|
||||||
var child = $(this);
|
var child = $(this);
|
||||||
if(child.attr('id') != 'population') {
|
if(child.attr('id') != 'population') {
|
||||||
var cName = child.attr('id').substring(13).replace('-', ' ');
|
var cName = child.children('.row_key').text();
|
||||||
if(cName < name && (curPrev == null || cName > curPrev)) {
|
if(cName < lname) {
|
||||||
curPrev = cName;
|
curPrev = child.attr('id');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
if(curPrev == null) {
|
if(curPrev == null) {
|
||||||
row.prependTo(village);
|
row.prependTo(village);
|
||||||
} else {
|
} else {
|
||||||
row.insertAfter('#building_row_' + curPrev.replace(' ', '-'));
|
row.insertAfter('#' + curPrev);
|
||||||
}
|
}
|
||||||
} else if(num > 0) {
|
} else if(num > 0) {
|
||||||
$('div#' + row.attr('id') + ' > div.row_val', village).text(num);
|
$('div#' + row.attr('id') + ' > div.row_val', village).text(num);
|
||||||
@@ -585,13 +587,13 @@ 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 i = 0, len = msg.length; i < len; i++) {
|
||||||
if(len > 1 && i > 0 && i < len - 1) {
|
if(len > 1 && i > 0 && i < len - 1) {
|
||||||
s += ", ";
|
s += ", ";
|
||||||
} else if(len > 1 && i == len - 1) {
|
} else if(len > 1 && i == 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[i];
|
||||||
|
|||||||
+6
-5
@@ -797,6 +797,7 @@ var Room = {
|
|||||||
$SM.set('stores["'+k+'"]', 0);
|
$SM.set('stores["'+k+'"]', 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
var 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')) {
|
||||||
@@ -805,21 +806,21 @@ 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.attr('id').substring(4).replace('-', ' ');
|
var cName = child.children('.row_key').text();
|
||||||
if(cName < k && (curPrev == null || cName > curPrev)) {
|
if(cName < lk) {
|
||||||
curPrev = cName;
|
curPrev = child.attr('id');
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
if(curPrev == null) {
|
if(curPrev == null) {
|
||||||
row.prependTo(location);
|
row.prependTo(location);
|
||||||
} else {
|
} else {
|
||||||
row.insertAfter(location.find('#row_' + curPrev.replace(' ', '-')));
|
row.insertAfter(location.find('#' + curPrev));
|
||||||
}
|
}
|
||||||
newRow = true;
|
newRow = true;
|
||||||
} else if(num>= 0){
|
} else if(num>= 0){
|
||||||
|
|||||||
Reference in New Issue
Block a user