This commit is contained in:
mmKALLL
2018-04-23 02:05:29 +09:00
41 changed files with 17948 additions and 4635 deletions
+1
View File
@@ -35,6 +35,7 @@ a minimalist text adventure game for your browser
<td><a href="http://adarkroom.doublespeakgames.com/?lang=uk">Ukrainian</a></td>
</tr><tr>
<td><a href="http://adarkroom.doublespeakgames.com/?lang=vi">Vietnamese</a></td>
<td><a href="http://adarkroom.doublespeakgames.com/?lang=lt_LT">Lithuanian</a></td>
</tr>
</table>
+3
View File
@@ -0,0 +1,3 @@
.button{width: 100px !important;}
#outsidePanel .button{width: 115px !important;}
.eventPanel .button {width: 122px !important;}
File diff suppressed because one or more lines are too long
+3313
View File
File diff suppressed because it is too large Load Diff
+1 -1
View File
File diff suppressed because one or more lines are too long
+3
View File
@@ -0,0 +1,3 @@
.button{width: 100px !important;}
#outsidePanel .button{width: 115px !important;}
.eventPanel .button {width: 122px !important;}
File diff suppressed because one or more lines are too long
+3304
View File
File diff suppressed because it is too large Load Diff
+1 -1
View File
File diff suppressed because one or more lines are too long
+2252 -2234
View File
File diff suppressed because it is too large Load Diff
+1 -1
View File
File diff suppressed because one or more lines are too long
+14 -13
View File
@@ -8,7 +8,7 @@ msgstr ""
"Project-Id-Version: PROJECT VERSION\n"
"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n"
"POT-Creation-Date: 2015-12-22 13:35-0600\n"
"PO-Revision-Date: 2016-02-15 02:05+0100\n"
"PO-Revision-Date: 2017-03-14 22:47+0900\n"
"Last-Translator: Jeong YunWon <adarkroom@youknowone.org>\n"
"Language-Team: \n"
"Language: ko\n"
@@ -16,12 +16,12 @@ msgstr ""
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Generated-By: Babel 1.3\n"
"X-Generator: Poedit 1.7.6\n"
"X-Generator: Poedit 1.8.12\n"
"Plural-Forms: nplurals=1; plural=0;\n"
#: script/dropbox.js:62
msgid "Dropbox connection"
msgstr "드롭박스 연결"
msgstr "Dropbox 연결"
#: script/dropbox.js:65
msgid "connect game to dropbox local storage"
@@ -250,7 +250,7 @@ msgstr "드롭박스."
#: script/engine.js:184
msgid "github."
msgstr ""
msgstr "깃허브"
#: script/engine.js:268
msgid "Export / Import"
@@ -346,12 +346,14 @@ msgstr "밝게."
#: script/engine.js:493
msgid "Go Hyper?"
msgstr ""
msgstr "하이퍼 모드"
#: script/engine.js:496
msgid ""
"turning hyper mode speeds up the game to x2 speed. do you want to do that?"
msgstr ""
"하이퍼 모드로 전환하면 게임 진행 속도가 2배 빨라집니다. 하이퍼 모드로 전환하"
"시겠습니까?"
#: script/engine.js:519
msgid "classic."
@@ -1949,13 +1951,12 @@ msgstr "나침반 사기"
msgid "the old compass is dented and dusty, but it looks to work."
msgstr "낡은 나침반은 찌그러지고 먼지 투성이지만, 그래도 쓸 수 있다."
#: script/events/room.js:45 script/events/room.js:227
#: script/events/room.js:240 script/events/room.js:253
#: script/events/room.js:309 script/events/room.js:332
#: script/events/room.js:388 script/events/room.js:411
#: script/events/room.js:450 script/events/room.js:568
#: script/events/room.js:584 script/events/room.js:600
#: script/events/room.js:611
#: script/events/room.js:45 script/events/room.js:227 script/events/room.js:240
#: script/events/room.js:253 script/events/room.js:309
#: script/events/room.js:332 script/events/room.js:388
#: script/events/room.js:411 script/events/room.js:450
#: script/events/room.js:568 script/events/room.js:584
#: script/events/room.js:600 script/events/room.js:611
msgid "say goodbye"
msgstr "작별하기"
@@ -2314,7 +2315,7 @@ msgstr "축축한 동굴"
#: script/events/setpieces.js:95
msgid "the mouth of the cave is wide and dark."
msgstr "동굴 넓고 어두운 아가리를 벌리고 있다."
msgstr "동굴의 입구는 넓고 어두다."
#: script/events/setpieces.js:96
msgid "can't see what's inside."
+3
View File
@@ -2,14 +2,17 @@ var langs = {
'de':'deutsch',
'el':'ελληνικά',
'en':'english',
'eo':'esperanto',
'es':'español',
'fr':'français',
'id':'bahasa indonesia',
'it':'italiano',
'lv':'latviešu valoda',
'ja':'日本語',
'ko':'한국어',
'nb':'norsk',
'pl':'polski',
'lt_LT':'lietuvių',
'pt':'português',
'pt_br':'português (brasil)',
'ru':'русский',
+3
View File
@@ -0,0 +1,3 @@
.button{width: 100px !important;}
#outsidePanel .button{width: 115px !important;}
.eventPanel .button {width: 122px !important;}
File diff suppressed because one or more lines are too long
Binary file not shown.
File diff suppressed because it is too large Load Diff
File diff suppressed because one or more lines are too long
+3308
View File
File diff suppressed because it is too large Load Diff
+32 -36
View File
@@ -33,7 +33,7 @@ msgstr "cancelar"
#: script/dropbox.js:86 script/dropbox.js:176
msgid "Dropbox Export / Import"
msgstr "Dropbox Exportar / Importar"
msgstr "Exportar / Importar no Dropbox"
#: script/dropbox.js:89
msgid "export or import save data to dropbox datastorage"
@@ -41,7 +41,7 @@ msgstr "exportar ou importar dados salvos ao dropbox"
#: script/dropbox.js:90
msgid "your are connected to dropbox with account / email "
msgstr "você está conectado ao dropbox com uma conta / email"
msgstr "você está conectado ao dropbox com a conta / email"
#: script/dropbox.js:93
msgid "save"
@@ -89,7 +89,7 @@ msgstr "boxeador"
#: script/engine.js:16
msgid "punches do more damage"
msgstr "socos fazem mais danos"
msgstr "socos causam mais danos"
#: script/engine.js:18
msgid "learned to throw punches with purpose"
@@ -137,7 +137,7 @@ msgstr "metabolismo lento"
#: script/engine.js:38
msgid "go twice as far without eating"
msgstr "aguente duas vezes mais sem comer"
msgstr "aguenta duas vezes mais sem comer"
#: script/engine.js:39
msgid "learned how to ignore the hunger"
@@ -149,7 +149,7 @@ msgstr "rato do deserto"
#: script/engine.js:43
msgid "go twice as far without drinking"
msgstr "aguente duas vezes mais sem beber"
msgstr "aguenta duas vezes mais sem beber"
#: script/engine.js:44
msgid "learned to love the dry air"
@@ -173,7 +173,7 @@ msgstr "preciso"
#: script/engine.js:53
msgid "land blows more often"
msgstr "acerte socos com mais frequência"
msgstr "acerta socos com mais frequência"
#: script/engine.js:54
msgid "learned to predict their movement"
@@ -185,7 +185,7 @@ msgstr "patrulhar"
#: script/engine.js:58
msgid "see farther"
msgstr "veja mais"
msgstr "ver mais distante"
#: script/engine.js:59
msgid "learned to look ahead"
@@ -197,7 +197,7 @@ msgstr "furtivo"
#: script/engine.js:63
msgid "better avoid conflict in the wild"
msgstr "melhor evitar o conflito em estado selvagem"
msgstr "melhor em evitar o conflito na selva"
#: script/engine.js:64
msgid "learned how not to be seen"
@@ -209,7 +209,7 @@ msgstr "gastrónomo"
#: script/engine.js:68
msgid "restore more health when eating"
msgstr "restaurar mais saúde ao comer"
msgstr "restaura mais saúde ao comer"
#: script/engine.js:69
msgid "learned to make the most of food"
@@ -414,8 +414,8 @@ msgid "all"
msgstr "tudo"
#: script/events.js:649
msgid "pegue tudo"
msgstr ""
msgid "take everything"
msgstr "pegue tudo"
#: script/events.js:653 script/outside.js:627
msgid " and "
@@ -427,7 +427,7 @@ msgstr "*** EVENTO ***"
#: script/localization.js:4
msgid "saved."
msgstr "salvos."
msgstr "salvo."
#: script/localization.js:5
msgid "wood"
@@ -435,7 +435,7 @@ msgstr "madeira"
#: script/localization.js:6
msgid "builder"
msgstr "o construtor"
msgstr "construtor"
#: script/localization.js:7
msgid "teeth"
@@ -491,7 +491,7 @@ msgstr "tocha"
#: script/localization.js:20
msgid "medicine"
msgstr "medicina"
msgstr "remédio"
#: script/localization.js:21 script/outside.js:22
msgid "hunter"
@@ -783,7 +783,7 @@ msgstr "embarcar"
#: script/path.js:60 script/room.js:1153
msgid "the compass points "
msgstr "o compasso aponta "
msgstr "a bússola aponta "
#: script/path.js:102
msgid "perks:"
@@ -856,7 +856,7 @@ msgstr "o construtor diz que há mais errantes. diz que eles vão trabalhar tamb
#: script/room.js:48
msgid "builder puts up a hut, out in the forest. says word will get around."
msgstr ""
"o construtor constrói uma cabana na floresta. diz que a palavra vai se espalhar."
"o construtor monta uma cabana na floresta. diz que a palavra vai se espalhar."
#: script/room.js:49
msgid "no more room for huts."
@@ -906,13 +906,11 @@ msgstr "defumadouro"
#: script/room.js:105
msgid "should cure the meat, or it'll spoil. builder says she can fix something up."
msgstr ""
"deve curar a carne, ou ela vai estragar. o construtor diz que pode corrigir alguma "
"coisa."
msgstr "deve curar a carne, ou ela vai estragar. a construtora diz que pode pensar em alguma coisa."
#: script/room.js:106
msgid "builder finishes the smokehouse. she looks hungry."
msgstr "o construtor termina a charcutaria. ela parece com fome."
msgstr "a construtora termina a charcutaria. ela parece com fome."
#: script/room.js:116
msgid "workshop"
@@ -921,11 +919,11 @@ msgstr "oficina"
#: script/room.js:119
msgid "builder says she could make finer things, if she had the tools"
msgstr ""
"o construtor diz que ela poderia fazer coisas melhores, se ela tivesse ferramentas"
"a construtora diz que ela poderia fazer coisas melhores, se ela tivesse ferramentas"
#: script/room.js:120
msgid "workshop's finally ready. builder's excited to get to it"
msgstr "a oficina está finalmente pronta. o construtor está animada para usar"
msgstr "a oficina está finalmente pronta. a construtora está animada para usar"
#: script/room.js:131
msgid "steelworks"
@@ -933,7 +931,7 @@ msgstr "siderúrgica"
#: script/room.js:134
msgid "builder says the villagers could make steel, given the tools"
msgstr "o construtor diz que os moradores poderiam fazer aço, dadas as ferramentas"
msgstr "a construtora diz que os moradores poderiam fazer aço, dadas as ferramentas"
#: script/room.js:135
msgid "a haze falls over the village as the steelworks fires up"
@@ -945,7 +943,7 @@ msgstr "arsenal"
#: script/room.js:149
msgid "builder says it'd be useful to have a steady source of bullets"
msgstr "o construtor diz que seria útil ter uma fonte constante de projéteis"
msgstr "a construtora diz que seria útil ter uma fonte constante de projéteis"
#: script/room.js:150
msgid "armoury's done, welcoming back the weapons of the past."
@@ -993,7 +991,7 @@ msgstr "mochila"
#: script/room.js:227
msgid "carrying more means longer expeditions to the wilds"
msgstr "carregando mais coisas significa expedições mais longas para a floresta"
msgstr "carregando mais coisas significa expedições mais longas na a floresta"
#: script/room.js:235
msgid "wagon"
@@ -1041,7 +1039,7 @@ msgstr "espada de ferro"
#: script/room.js:301
msgid "sword is sharp. good protection out in the wilds."
msgstr "espada é afiada. boa proteção no mato."
msgstr "espada é afiada. boa proteção na floresta."
#: script/room.js:311
msgid "steel sword"
@@ -1086,9 +1084,7 @@ msgstr "o fogo está {0}"
#: script/room.js:565
msgid ""
"the stranger is standing by the fire. she says she can help. says she builds things."
msgstr ""
"a estranha está de pé perto do fogo. ela disse que pode ajudar. diz ela queconstrói "
"coisas."
msgstr "a estranha está de pé perto do fogo. ela disse que pode ajudar. ela diz que constrói coisas."
#: script/room.js:580
msgid "freezing"
@@ -1148,7 +1144,7 @@ msgstr "a luz do fogo derrama das janelas, para o escuro"
#: script/room.js:688
msgid "builder stokes the fire"
msgstr "o construtor atiça o fogo"
msgstr "o construtor alimenta o fogo"
#: script/room.js:718
msgid "the wind howls outside"
@@ -1160,15 +1156,15 @@ msgstr "a madeira está se esgotando"
#: script/room.js:726
msgid "a ragged stranger stumbles through the door and collapses in the corner"
msgstr "um estranho maltrapilho tropeça através da porta e cai no canto"
msgstr "uma estranha maltrapilha tropeça através da porta e cai no canto"
#: script/room.js:734
msgid "the stranger shivers, and mumbles quietly. her words are unintelligible."
msgstr "o estanho se arrepia, e murmura baixinho. suas palavras são ininteligíveis."
msgstr "a estanha se arrepia, e murmura baixinho. suas palavras são ininteligíveis."
#: script/room.js:737
msgid "the stranger in the corner stops shivering. her breathing calms."
msgstr "o estranho no canto para de tremer. sua respiração acalma."
msgstr "a estranha no canto para de tremer. sua respiração acalma."
#: script/room.js:760
msgid "stores"
@@ -1196,7 +1192,7 @@ msgstr "construir:"
#: script/room.js:1061
msgid "craft:"
msgstr "ofício:"
msgstr "construir:"
#: script/room.js:1068
msgid "buy:"
@@ -1248,7 +1244,7 @@ msgstr "Pronto para sair?"
#: script/ship.js:138
msgid "time to get out of this place. won't be coming back."
msgstr "hora de sair deste lugar. não vai voltar."
msgstr "hora de sair deste lugar. não voltarei."
#: script/ship.js:150
msgid "linger"
@@ -1460,7 +1456,7 @@ msgstr "A&nbsp;Aldeia"
#: script/world.js:851
msgid "the world fades"
msgstr "o mundo enfraque"
msgstr "o mundo vai sumindo"
#: script/world.js:952 script/events/setpieces.js:2961
msgid "water replenished"
+19 -19
View File
@@ -18,11 +18,11 @@ msgstr ""
#: ../../script/dropbox.js:62
msgid "Dropbox connection"
msgstr ""
msgstr "Подключение к Dropbox"
#: ../../script/dropbox.js:65
msgid "connect game to dropbox local storage"
msgstr ""
msgstr "подключить игру к хранилущу Dropbox"
#: ../../script/dropbox.js:68
msgid "connect"
@@ -63,7 +63,7 @@ msgstr "выйти"
#: ../../script/dropbox.js:113
msgid "choose one slot to save to"
msgstr ""
msgstr "выберите один из слотов, чтобы сохранить"
#: ../../script/dropbox.js:119
#, fuzzy
@@ -72,7 +72,7 @@ msgstr "сохранить."
#: ../../script/dropbox.js:141
msgid "choose one slot to load from"
msgstr ""
msgstr "выберите один из слотов, чтобы загрузить"
#: ../../script/dropbox.js:148
#, fuzzy
@@ -81,11 +81,11 @@ msgstr "сохранить."
#: ../../script/dropbox.js:179
msgid "successfully saved to dropbox datastorage"
msgstr ""
msgstr "успешно сохранено в хранилище dropbox"
#: ../../script/dropbox.js:180
msgid "error while saving to dropbox datastorage"
msgstr ""
msgstr "ошибка при сохранении в хранилище dropbox"
#: ../../script/dropbox.js:183
msgid "ok"
@@ -252,11 +252,11 @@ msgstr "сохранить."
#: ../../script/engine.js:177
msgid "dropbox."
msgstr ""
msgstr "dropbox"
#: ../../script/engine.js:184
msgid "github."
msgstr ""
msgstr "github"
#: ../../script/engine.js:268
msgid "Export / Import"
@@ -363,7 +363,7 @@ msgstr ""
#: ../../script/engine.js:519
msgid "classic."
msgstr ""
msgstr "классический."
#: ../../script/engine.js:620
msgid "{0} per {1}s"
@@ -426,11 +426,11 @@ msgstr "ничего"
#: ../../script/events.js:627
msgid "all"
msgstr ""
msgstr "всё"
#: ../../script/events.js:649
msgid "take everything"
msgstr ""
msgstr "взять всё"
#: ../../script/events.js:653 ../../script/outside.js:627
msgid " and "
@@ -682,7 +682,7 @@ msgstr "в лесу тишина."
#: ../../script/events/outside.js:40
msgid "nothing was found"
msgstr ""
msgstr "ничего не найдено"
#: ../../script/events/outside.js:43 ../../script/events/outside.js:61
#: ../../script/events/outside.js:126 ../../script/events/outside.js:144
@@ -745,7 +745,7 @@ msgstr "срочно нужно лекарство."
#: ../../script/events/outside.js:105
#, fuzzy
msgid "some villagers are ill"
msgstr "некоторые жители погибли"
msgstr "некоторые жители заболели"
#: ../../script/events/outside.js:109
msgid "1 medicine"
@@ -761,7 +761,7 @@ msgstr "болезнь была вовремя вылечена."
#: ../../script/events/outside.js:123
msgid "sufferers are healed"
msgstr ""
msgstr "больные исцелены"
#: ../../script/events/outside.js:133
msgid "the sickness spreads through the village."
@@ -777,7 +777,7 @@ msgstr "каждую ночь слышатся крики."
#: ../../script/events/outside.js:137
msgid "sufferers are left to die"
msgstr ""
msgstr "страдальцы остались умирать"
#: ../../script/events/outside.js:153
msgid "Plague"
@@ -818,7 +818,7 @@ msgstr "остальные хоронят их."
#: ../../script/events/outside.js:190
msgid "epidemic is eradicated eventually"
msgstr ""
msgstr "в конце концов эпидемия ликвидирована"
#: ../../script/events/outside.js:204
msgid "the plague rips through the village."
@@ -830,7 +830,7 @@ msgstr "единственная надежда - на быструю смерт
#: ../../script/events/outside.js:208
msgid "population is almost exterminated"
msgstr ""
msgstr "население почти истреблено"
#: ../../script/events/outside.js:224
msgid "A Beast Attack"
@@ -850,11 +850,11 @@ msgstr "жители оплакивают погибших."
#: ../../script/events/outside.js:235
msgid "wild beasts attack the villagers"
msgstr ""
msgstr "дикие звери атакуют жителей деревни"
#: ../../script/events/outside.js:249
msgid "predators become prey. price is unfair"
msgstr ""
msgstr "хищники становятся жертвами. цена несправедлива"
#: ../../script/events/outside.js:258
msgid "A Military Raid"
+1 -1
View File
File diff suppressed because one or more lines are too long
+2218 -2223
View File
File diff suppressed because it is too large Load Diff
+15 -18
View File
@@ -2,14 +2,14 @@ msgid ""
msgstr ""
"Project-Id-Version: adarkroom\n"
"POT-Creation-Date: 2016-02-15 02:03+0100\n"
"PO-Revision-Date: 2016-02-15 02:03+0100\n"
"PO-Revision-Date: 2017-05-02 09:32+0200\n"
"Last-Translator: Vanadar <vanadar.univers@gmail.com>\n"
"Language-Team: \n"
"Language: fr\n"
"Language: tr\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"X-Generator: Poedit 1.7.6\n"
"X-Generator: Poedit 2.0.1\n"
"X-Poedit-KeywordsList: _\n"
"X-Poedit-Basepath: .\n"
"Plural-Forms: s;\n"
@@ -247,11 +247,11 @@ msgstr "kaydet"
#: ../../script/engine.js:177
msgid "dropbox."
msgstr ""
msgstr "dropbox"
#: ../../script/engine.js:184
msgid "github."
msgstr ""
msgstr "github"
#: ../../script/engine.js:268
msgid "Export / Import"
@@ -424,8 +424,9 @@ msgid "all"
msgstr ""
#: ../../script/events.js:649
#, fuzzy
msgid "take everything"
msgstr ""
msgstr "hepsini al"
#: ../../script/events.js:653 ../../script/outside.js:627
msgid " and "
@@ -847,7 +848,7 @@ msgstr "köylüler geri çekildi ve ölenler için yas tutuyor."
#: ../../script/events/outside.js:235
msgid "wild beasts attack the villagers"
msgstr ""
msgstr "vahşi yaratıklar köylülere saldırdı"
#: ../../script/events/outside.js:249
msgid "predators become prey. price is unfair"
@@ -2034,7 +2035,7 @@ msgstr ""
#: ../../script/events/setpieces.js:2934
msgid "An Old House"
msgstr ""
msgstr "Eski bir ev"
#: ../../script/events/setpieces.js:2938
msgid "an old house remains here, once white siding yellowed and peeling."
@@ -2129,9 +2130,8 @@ msgid "salvage"
msgstr ""
#: ../../script/events/setpieces.js:3156
#, fuzzy
msgid "The Sulphur Mine"
msgstr "sülfür madeni"
msgstr "Sülfür madeni"
#: ../../script/events/setpieces.js:3160
msgid "the military is already set up at the mine's entrance."
@@ -2157,12 +2157,11 @@ msgstr ""
#: ../../script/events/setpieces.js:3209 ../../script/events/setpieces.js:3249
#: ../../script/events/setpieces.js:3352 ../../script/events/setpieces.js:3386
msgid "run"
msgstr ""
msgstr "koş"
#: ../../script/events/setpieces.js:3241
#, fuzzy
msgid "a second soldier joins the fight."
msgstr "bir gözcü gecelemek için uğradı"
msgstr "bir gözcü gecelemek için uğradı."
#: ../../script/events/setpieces.js:3275
msgid "a grizzled soldier attacks, waving a bayonet."
@@ -2174,18 +2173,16 @@ msgstr ""
#: ../../script/events/setpieces.js:3287 ../../script/events/setpieces.js:3429
#: ../../script/events/setpieces.js:3505
#, fuzzy
msgid "the mine is now safe for workers."
msgstr "hiç su kalmadı"
msgstr "maden işçiler için şimdi güvenli."
#: ../../script/events/setpieces.js:3289
msgid "the sulphur mine is clear of dangers"
msgstr ""
#: ../../script/events/setpieces.js:3305
#, fuzzy
msgid "The Coal Mine"
msgstr "kömür madeni"
msgstr "Kömür madeni"
#: ../../script/events/setpieces.js:3309
msgid "camp fires burn by the entrance to the mine."
@@ -3060,7 +3057,7 @@ msgstr "silahlar"
#: ../../script/room.js:914
msgid "total"
msgstr ""
msgstr "toplam"
#: ../../script/room.js:935 ../../script/room.js:979
msgid "not enough "
+4 -4
View File
@@ -451,7 +451,7 @@ msgstr "взяти все"
#: ../../script/events.js:738
msgid "take all you can"
msgstr ""
msgstr "взяти все. що можеш"
#. TRANSLATORS : Mind the whitespaces at the beginning and end.
#: ../../script/events.js:744 ../../script/outside.js:627
@@ -764,7 +764,7 @@ msgstr "негайно потрібні ліки."
#: ../../script/events/outside.js:105
msgid "some villagers are ill"
msgstr ""
msgstr "деякі селяни захворіли"
#: ../../script/events/outside.js:109
msgid "1 medicine"
@@ -780,7 +780,7 @@ msgstr "хворобу вчасно зупинили."
#: ../../script/events/outside.js:123
msgid "sufferers are healed"
msgstr ""
msgstr "пострадалі були виліковані"
#: ../../script/events/outside.js:133
msgid "the sickness spreads through the village."
@@ -868,7 +868,7 @@ msgstr "поселенці сумують за загиблими."
#: ../../script/events/outside.js:235
msgid "wild beasts attack the villagers"
msgstr ""
msgstr "дикі звірі атакують селян"
#: ../../script/events/outside.js:249
msgid "predators become prey. price is unfair"
+1 -1
View File
@@ -111,7 +111,7 @@ var Base64 = {
_utf8_decode : function (utftext) {
var string = "";
var i = 0;
var c = c1 = c2 = 0;
var c = c2 = 0;
while ( i < utftext.length ) {
Vendored
+7 -7
View File
@@ -7,17 +7,17 @@
window.icu = window.icu || new Object();
var icu = window.icu;
icu.getCountry = function() { return "" };
icu.getCountryName = function() { return "" };
icu.getCountry = function() { return ""; };
icu.getCountryName = function() { return ""; };
icu.getDateFormat = function(formatCode) { var retVal = {}; retVal.format = df[formatCode]; return retVal; };
icu.getDateFormats = function() { return df; };
icu.getDateFormatSymbols = function() { return dfs; };
icu.getDecimalFormat = function(places) { var retVal = {}; retVal.format = function(n) { var ns = n < 0 ? Math.abs(n).toFixed(places) : n.toFixed(places); var ns2 = ns.split('.'); s = ns2[0]; var d = ns2[1]; var rgx = /(\d+)(\d{3})/;while(rgx.test(s)){s = s.replace(rgx, '$1' + nfs["grouping_separator"] + '$2');} return (n < 0 ? nfs["minus"] : "") + s + nfs["decimal_separator"] + d;}; return retVal; };
icu.getDecimalFormatSymbols = function() { return nfs; };
icu.getIntegerFormat = function() { var retVal = {}; retVal.format = function(i) { var s = i < 0 ? Math.abs(i).toString() : i.toString(); var rgx = /(\d+)(\d{3})/;while(rgx.test(s)){s = s.replace(rgx, '$1' + nfs["grouping_separator"] + '$2');} return i < 0 ? nfs["minus"] + s : s;}; return retVal; };
icu.getLanguage = function() { return "fr" };
icu.getLanguageName = function() { return "français" };
icu.getLocale = function() { return "fr" };
icu.getLocaleName = function() { return "français" };
icu.getLanguage = function() { return "fr"; };
icu.getLanguageName = function() { return "français"; };
icu.getLocale = function() { return "fr"; };
icu.getLocaleName = function() { return "français"; };
})();
})();
+2 -2
View File
@@ -63,7 +63,7 @@
return target;
}
if (target in translation == false)
if (target in translation === false)
{
if (dynoTrans != null)
{
@@ -79,7 +79,7 @@
}
return result;
};
}
window._ = translate;
+2 -2
View File
@@ -109,8 +109,8 @@ var Button = {
}
},
clearCooldown: function(btn, ended) {
var ended = ended || false;
clearCooldown: function(btn, cooldownEnded) {
var ended = cooldownEnded || false;
if(!ended){
$('div.cooldown', btn).stop(true, true);
}
+5 -1
View File
@@ -423,11 +423,15 @@
onChoose: function() {
window.open('https://play.google.com/store/apps/details?id=com.yourcompany.adarkroom');
}
},
'close': {
text: _('close'),
nextScene: 'end'
}
}
}
}
})
});
},
share: function() {
+15 -11
View File
@@ -153,7 +153,7 @@ var Events = {
string = 'resume.';
log = 'paused';
}
btn.children('.text').first().text( _(string) )
btn.children('.text').first().text( _(string) );
Events.paused = (state == 'auto') ? 'auto' : true;
event.addClass('paused');
Button.clearCooldown(btn);
@@ -189,6 +189,7 @@ var Events = {
break;
case 'auto':
Button.cooldown(btn);
/* falls through */
default:
log = 'resumed';
time = Events._PAUSE_COOLDOWN * 1000;
@@ -373,8 +374,8 @@ var Events = {
out = true;
}
}
for(var k in mod) {
Path.outfit[k] += mod[k];
for(var m in mod) {
Path.outfit[m] += mod[m];
}
if(out) {
Button.setDisabled(btn, true);
@@ -596,11 +597,12 @@ var Events = {
if(weight > freeSpace) {
// Draw the drop menu
Engine.log('drop menu');
var dropMenu;
if($('#dropMenu').length){
var dropMenu = $('#dropMenu');
dropMenu = $('#dropMenu');
$('#dropMenu').empty();
} else {
var dropMenu = $('<div>').attr({'id': 'dropMenu', 'data-legend': _('drop:')});
dropMenu = $('<div>').attr({'id': 'dropMenu', 'data-legend': _('drop:')});
needsAppend = true;
}
for(var k in Path.outfit) {
@@ -676,9 +678,10 @@ var Events = {
}
}
lootButtons.appendTo(desc);
var takeET = null;
if(lootButtons.children().length > 0) {
var takeETrow = $('<div>').addClass('takeETrow');
var takeET = new Button.Button({
takeET = new Button.Button({
id: 'loot_takeEverything',
text: '',
cooldown: Events._LEAVE_COOLDOWN,
@@ -773,10 +776,10 @@ var Events = {
World.updateSupplies();
},
getLoot: function(btn, skipButtonSet) {
getLoot: function(btn, stateSkipButtonSet) {
var name = btn.attr('id').substring(5).replace('-', ' ');
if(btn.data('numLeft') > 0) {
var skipButtonSet = skipButtonSet || false;
var skipButtonSet = stateSkipButtonSet || false;
var weight = Path.getWeight(name);
var freeSpace = Path.getFreeSpace();
if(weight <= freeSpace) {
@@ -857,8 +860,9 @@ var Events = {
}
// Draw any loot
var takeETbtn;
if(scene.loot) {
var takeETbtn = Events.drawLoot(scene.loot);
takeETbtn = Events.drawLoot(scene.loot);
}
// Draw the buttons
@@ -1113,7 +1117,7 @@ var Events = {
if(typeof target[i] == 'function'){
target[i]();
} else {
$SM.remove(stateName)
$SM.remove(stateName);
}
}
}
@@ -1127,7 +1131,7 @@ var Events = {
if(delay){
$SM.set(state, delay);
} else {
var delay = $SM.get(state, true)
delay = $SM.get(state, true);
}
var time = Engine.setInterval(function(){
// update state every half second
+3 -2
View File
@@ -148,7 +148,7 @@ Events.Outside = [
}
}
},
{ /* Plague */
title: _('Plague'),
isAvailable: function() {
@@ -275,7 +275,7 @@ Events.Outside = [
bullets: 10,
'cured meat': 50
},
blink: true,
buttons: {
'end': {
@@ -287,4 +287,5 @@ Events.Outside = [
}
}
}
];
+71 -15
View File
@@ -40,7 +40,7 @@ Events.Room = [
cost: { fur: 300, scales: 15, teeth: 5 },
reward: { 'compass': 1 },
notification: _('the old compass is dented and dusty, but it looks to work.')
},
},
'goodbye': {
text: _('say goodbye'),
nextScene: 'end'
@@ -48,7 +48,7 @@ Events.Room = [
}
}
}
},
},
{ /* Noises Outside -- gain wood/fur */
title: _('Noises'),
isAvailable: function() {
@@ -257,7 +257,63 @@ Events.Room = [
}
}
},
{/* The Shady Builder */
title: _('The Shady Builder'),
isAvailable: function() {
return Engine.activeModule == Room && $SM.get('game.buildings["hut"]', true) >= 5 && $SM.get('game.buildings["hut"]', true) < 20;
},
scenes: {
'start':{
text: [
_('a shady builder passes through'),
_('says he can build you a hut for less wood')
],
notification: _('a shady builder passes through'),
buttons: {
'build': {
text: _('300 wood'),
cost: { 'wood' : 300 },
nextScene: {0.6: 'steal', 1: 'build'}
},
'deny': {
text: _('say goodbye'),
nextScene: 'end'
}
}
},
'steal': {
text:[
_("the shady builder has made off with your wood")
],
notification: _('the shady builder has made off with your wood'),
buttons: {
'end': {
text: _('go home'),
nextScene: 'end'
}
}
},
'build': {
text:[
_("the shady builder builds a hut")
],
notification: _('the shady builder builds a hut'),
onLoad: function() {
var n = $SM.get('game.buildings["hut"]', true);
if(n < 20){
$SM.set('game.buildings["hut"]',n+1);
}
},
buttons: {
'end': {
text: _('go home'),
nextScene: 'end'
}
}
}
}
},
{ /* Mysterious Wanderer -- wood gambling */
title: _('The Mysterious Wanderer'),
isAvailable: function() {
@@ -292,8 +348,8 @@ Events.Room = [
text: [
_('the wanderer leaves, cart loaded with wood')
],
action: function(delay) {
var delay = delay || false;
action: function(inputDelay) {
var delay = inputDelay || false;
Events.saveDelay(function() {
$SM.add('stores.wood', 300);
Notifications.notify(Room, _('the mysterious wanderer returns, cart piled high with wood.'));
@@ -315,8 +371,8 @@ Events.Room = [
text: [
_('the wanderer leaves, cart loaded with wood')
],
action: function(delay) {
var delay = delay || false;
action: function(inputDelay) {
var delay = inputDelay || false;
Events.saveDelay(function() {
$SM.add('stores.wood', 1500);
Notifications.notify(Room, _('the mysterious wanderer returns, cart piled high with wood.'));
@@ -336,7 +392,7 @@ Events.Room = [
}
}
},
{ /* Mysterious Wanderer -- fur gambling */
title: _('The Mysterious Wanderer'),
isAvailable: function() {
@@ -371,8 +427,8 @@ Events.Room = [
text: [
_('the wanderer leaves, cart loaded with furs')
],
action: function(delay) {
var delay = delay || false;
action: function(inputDelay) {
var delay = inputDelay || false;
Events.saveDelay(function() {
$SM.add('stores.fur', 300);
Notifications.notify(Room, _('the mysterious wanderer returns, cart piled high with furs.'));
@@ -394,8 +450,8 @@ Events.Room = [
text: [
_('the wanderer leaves, cart loaded with furs')
],
action: function(delay) {
var delay = delay || false;
action: function(inputDelay) {
var delay = inputDelay || false;
Events.saveDelay(function() {
$SM.add('stores.fur', 1500);
Notifications.notify(Room, _('the mysterious wanderer returns, cart piled high with furs.'));
@@ -415,7 +471,7 @@ Events.Room = [
}
}
},
{ /* The Scout -- Map Merchant */
title: _('The Scout'),
isAvailable: function() {
@@ -457,7 +513,7 @@ Events.Room = [
}
}
},
{ /* The Wandering Master */
title: _('The Master'),
isAvailable: function() {
@@ -530,7 +586,7 @@ Events.Room = [
}
}
},
{ /* The Sick Man */
title: _('The Sick Man'),
isAvailable: function() {
+1 -1
View File
@@ -65,5 +65,5 @@
_('the compass points southwest')
];
delete keywords;
keywords = null;
})();
+5 -5
View File
@@ -619,14 +619,14 @@ var Outside = {
}
/// TRANSLATORS : Mind the whitespace at the end.
var s = _('the traps contain ');
for(var i = 0, len = msg.length; i < len; i++) {
if(len > 1 && i > 0 && i < len - 1) {
for(var l = 0, len = msg.length; l < len; l++) {
if(len > 1 && l > 0 && l < len - 1) {
s += ", ";
} else if(len > 1 && i == len - 1) {
} else if(len > 1 && l == len - 1) {
/// TRANSLATORS : Mind the whitespaces at the beginning and end.
s += _(" and ");
}
s += msg[i];
s += msg[l];
}
var baitUsed = numBait < numTraps ? numBait : numTraps;
@@ -643,7 +643,7 @@ var Outside = {
Outside.updateVillage();
Outside.updateWorkersView();
Outside.updateVillageIncome();
};
}
},
scrollSidebar: function(direction, reset) {
+1 -1
View File
@@ -341,7 +341,7 @@ var Path = {
var momentum = 10;
if( direction == 'up' )
momentum = momentum * -1
momentum = momentum * -1;
if( direction == 'down' && inView( direction, $('#perks') ) ){
+18 -18
View File
@@ -1093,9 +1093,9 @@ var Room = {
var costTooltip = $('.tooltip', craftable.button);
costTooltip.empty();
var cost = craftable.cost();
for(var k in cost) {
$("<div>").addClass('row_key').text(_(k)).appendTo(costTooltip);
$("<div>").addClass('row_val').text(cost[k]).appendTo(costTooltip);
for(var c in cost) {
$("<div>").addClass('row_key').text(_(c)).appendTo(costTooltip);
$("<div>").addClass('row_val').text(cost[c]).appendTo(costTooltip);
}
if(max && !craftable.button.hasClass('disabled')) {
Notifications.notify(Room, craftable.maxMsg);
@@ -1108,34 +1108,34 @@ var Room = {
}
}
for(var k in Room.TradeGoods) {
good = Room.TradeGoods[k];
var max = $SM.num(k, good) + 1 > good.maximum;
for(var g in Room.TradeGoods) {
good = Room.TradeGoods[g];
var goodsMax = $SM.num(g, good) + 1 > good.maximum;
if(good.button == null) {
if(Room.buyUnlocked(k)) {
if(Room.buyUnlocked(g)) {
good.button = new Button.Button({
id: 'build_' + k,
id: 'build_' + g,
cost: good.cost(),
text: _(k),
text: _(g),
click: Room.buy,
width: '80px',
ttPos: buySection.children().length > 10 ? 'top right' : 'bottom right'
}).css('opacity', 0).attr('buildThing', k).appendTo(buySection).animate({opacity:1}, 300, 'linear');
}).css('opacity', 0).attr('buildThing', g).appendTo(buySection).animate({opacity:1}, 300, 'linear');
}
} else {
// refresh the tooltip
var costTooltip = $('.tooltip', good.button);
costTooltip.empty();
var cost = good.cost();
for(var k in cost) {
$("<div>").addClass('row_key').text(_(k)).appendTo(costTooltip);
$("<div>").addClass('row_val').text(cost[k]).appendTo(costTooltip);
var goodsCostTooltip = $('.tooltip', good.button);
goodsCostTooltip.empty();
var goodCost = good.cost();
for(var gc in goodCost) {
$("<div>").addClass('row_key').text(_(gc)).appendTo(goodsCostTooltip);
$("<div>").addClass('row_val').text(goodCost[gc]).appendTo(goodsCostTooltip);
}
if(max && !good.button.hasClass('disabled')) {
if(goodsMax && !good.button.hasClass('disabled')) {
Notifications.notify(Room, good.maxMsg);
}
}
if(max) {
if(goodsMax) {
Button.setDisabled(good.button, true);
} else {
Button.setDisabled(good.button, false);
+1 -1
View File
@@ -13,7 +13,7 @@ var Score = {
var fullScore = 0;
var factor = [1, 1.5, 1, 2, 2, 3, 3, 2, 2, 2, 2, 1.5, 1,
1, 10, 30, 50, 100, 150, 150, 3, 3, 5, 4]
1, 10, 30, 50, 100, 150, 150, 3, 3, 5, 4];
for(var i = 0; i< factor.length; i++){
fullScore += scoreUnadded[i] * factor[i];
}
+4 -4
View File
@@ -166,7 +166,7 @@ var Space = {
}
if(!Space.done) {
Engine.setTimeout(Space.createAsteroid, 1000 - (Space.altitude * 10));
Engine.setTimeout(Space.createAsteroid, 1000 - (Space.altitude * 10), true);
}
}
},
@@ -266,7 +266,7 @@ var Space = {
$('#spacePanel, .menu, select.menuBtn').animate({color: '#272823'}, 500, 'linear');
else
$('#spacePanel, .menu, select.menuBtn').animate({color: 'white'}, 500, 'linear');
}, Space.FTB_SPEED / 2);
}, Space.FTB_SPEED / 2, true);
Space.createAsteroid();
},
@@ -372,8 +372,8 @@ var Space = {
clearTimeout(Events._eventTimeout);
clearTimeout(Room._fireTimer);
clearTimeout(Room._tempTimer);
for(var k in Room.Craftables) {
Room.Craftables[k].button = null;
for(var j in Room.Craftables) {
Room.Craftables[j].button = null;
}
for(var k in Room.TradeGoods) {
Room.TradeGoods[k].button = null;
+5 -5
View File
@@ -54,10 +54,10 @@ var StateManager = {
createState: function(stateName, value) {
var words = stateName.split(/[.\[\]'"]+/);
//for some reason there are sometimes empty strings
for (var i = 0; i < words.length; i++) {
if (words[i] === '') {
words.splice(i, 1);
i--;
for (var j = 0; j < words.length; j++) {
if (words[j] === '') {
words.splice(j, 1);
j--;
}
}
var obj = State;
@@ -218,7 +218,7 @@ var StateManager = {
fireUpdate: function(stateName, save){
var category = $SM.getCategory(stateName);
if(stateName == undefined) stateName = category = 'all'; //best if this doesn't happen as it will trigger more stuff
if(stateName === undefined) stateName = category = 'all'; //best if this doesn't happen as it will trigger more stuff
$.Dispatch('stateUpdate').publish({'category': category, 'stateName':stateName});
if(save) Engine.saveGame();
},
+9 -8
View File
@@ -685,7 +685,7 @@ var World = {
// Place landmarks
for(var k in World.LANDMARKS) {
var landmark = World.LANDMARKS[k];
for(var i = 0; i < landmark.num; i++) {
for(var l = 0; l < landmark.num; l++) {
var pos = World.placeLandmark(landmark.minRadius, landmark.maxRadius, k, map);
}
}
@@ -713,7 +713,7 @@ var World = {
targets[index] = {
x : i - World.RADIUS,
y : j - World.RADIUS,
}
};
index++;
if(index === max){
// optimisation: stop the research if maximum number of items has been reached
@@ -774,12 +774,13 @@ var World = {
var chances = {};
var nonSticky = 1;
var cur;
for(var i in adjacent) {
if(adjacent[i] == World.TILE.VILLAGE) {
// Village must be in a forest to maintain thematic consistency, yo.
return World.TILE.FOREST;
} else if(typeof adjacent[i] == 'string') {
var cur = chances[adjacent[i]];
cur = chances[adjacent[i]];
cur = typeof cur == 'number' ? cur : 0;
chances[adjacent[i]] = cur + World.STICKINESS;
nonSticky -= World.STICKINESS;
@@ -788,7 +789,7 @@ var World = {
for(var t in World.TILE) {
var tile = World.TILE[t];
if(World.isTerrain(tile)) {
var cur = chances[tile];
cur = chances[tile];
cur = typeof cur == 'number' ? cur : 0;
cur += World.TILE_PROBS[tile] * nonSticky;
chances[tile] = cur;
@@ -796,8 +797,8 @@ var World = {
}
var list = [];
for(var t in chances) {
list.push(chances[t] + '' + t);
for(var j in chances) {
list.push(chances[j] + '' + j);
}
list.sort(function(a, b) {
var n1 = parseFloat(a.substring(0, a.length - 1));
@@ -807,8 +808,8 @@ var World = {
var c = 0;
var r = Math.random();
for(var i in list) {
var prob = list[i];
for(var l in list) {
var prob = list[l];
c += parseFloat(prob.substring(0,prob.length - 1));
if(r < c) {
return prob.charAt(prob.length - 1);