Debian Codegraph @

CorsixTH/Lua/languages/original_strings.lua

raw
1 --[[ Copyright (c) 2010 Manuel "Roujin" Wolf
2
3 Permission is hereby granted, free of charge, to any person obtaining a copy of
4 this software and associated documentation files (the "Software"), to deal in
5 the Software without restriction, including without limitation the rights to
6 use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
7 of the Software, and to permit persons to whom the Software is furnished to do
8 so, subject to the following conditions:
9
10 The above copyright notice and this permission notice shall be included in all
11 copies or substantial portions of the Software.
12
13 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16 AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18 OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
19 SOFTWARE. --]]
20
21 -- Note: This is a pseudo language that defines the mapping between new string
22 -- identifiers and original strings. This language cannot be selected directly.
23 Language("original_strings")
24 SetSpeechFile("Sound-".. ... ..".dat")
25 local S = LoadStrings("Lang-".. ... ..".dat")
26 Encoding(utf8)
27
28 -- Fix inconsistencies/bugs in german lang file.
29 local function fixGermanStrings(lang_num)
30 if lang_num ~= 2 then
31 return
32 end
33
34 -- Strings [44][168] (which contains a %s) and [44][169] (contains %d) were
35 -- replaced with a single string [44][168] with %s and %d in german full version.
36 -- Due to this, the remaining strings in section 44 were also off by one.
37 -- Solve it by splitting the string into two.
38 -- NB: ONLY in full version, in demo this is NOT broken (thus do length check)
39 if #S[44][168] == 108 then
40 for str = 218, 169, -1 do
41 S[44][str+1] = S[44][str]
42 end
43 S[44][169] = S[44][168]:sub(46)
44 S[44][168] = S[44][168]:sub(1, 45)
45 end
46
47 -- Strings [28][32] and [28][33] are equal in the German translation of the full
48 -- version, this causes a mismatch with the English strings
49 -- eng-strings [28][33] to [28][63] are equal to ger-strings [28][34] to [28][64]
50 -- NB: ONLY in full version, demo version is not affected (thus do checks)
51 if S[28][32] == S[28][33] and #S[28] == 64 then
52 for str = 33, 63 do
53 S[28][str] = S[28][str+1]
54 end
55 end
56
57 -- German spelling reform: eszett changed to double s in a number of words.
58 -- Mass-apply this change here, so we don't have to override all those strings.
59 local repl = {
60 ["daß"] = "dass",
61 ["muß"] = "muss", -- includes occurrences of mußte, mußten
62 ["läßt"] = "lässt", -- includes occurrences of verläßt
63 ["Engpaß"] = "Engpass",
64 ["bißchen"] = "bisschen",
65 ["Streß"] = "Stress",
66 ["Biß"] = "Biss",
67 ["Freßpaket"] = "Fresspaket",
68 ["Paßt"] = "Passt",
69 ["Läßt"] = "Lässt",
70 ["verantwortungsbewußt"] = "verantwortungsbewusst",
71 ["verläßlich"] = "verlässlich",
72 ["Schlußlicht"] = "Schlusslicht",
73 ["unerläßlich"] = "unerlässlich",
74 }
75
76 for c, cat in ipairs(S) do
77 for s, str in ipairs(cat) do
78 for from, to in pairs(repl) do
79 while str:find(from) do
80 str = str:gsub(from, to)
81 end
82 end
83 S[c][s] = str
84 end
85 end
86
87 -- good and bad (but not misc) staff description strings are missing space at the end
88 for s, _ in ipairs(S[47]) do
89 S[47][s] = S[47][s] .. " "
90 end
91 for s, _ in ipairs(S[48]) do
92 S[48][s] = S[48][s] .. " "
93 end
94 end
95
96 fixGermanStrings(...)
97
98 deprecated = S -- For compatibility
99
100 -- each of these corresponds to a sprite
101 staff_class = {
102 nurse = S[1][1],
103 doctor = S[1][2],
104 handyman = S[1][3],
105 receptionist = S[1][4],
106 surgeon = S[1][5],
107 -- S[1][6] unused
108 }
109
110 -- these are titles used e.g. in the dynamic info bar
111 staff_title = {
112 receptionist = S[34][1],
113 general = S[34][2], -- unused?
114 nurse = S[34][3],
115 junior = S[34][4],
116 doctor = S[34][5],
117 surgeon = S[34][6],
118 psychiatrist = S[34][7],
119 consultant = S[34][8],
120 researcher = S[34][9],
121 }
122
123 object = {
124 -- S[2][ 1] unused
125 desk = S[2][ 2],
126 cabinet = S[2][ 3],
127 door = S[2][ 4],
128 bench = S[2][ 5],
129 table1 = S[2][ 6], -- unused object
130 chair = S[2][ 7],
131 drinks_machine = S[2][ 8],
132 bed = S[2][ 9],
133 inflator = S[2][10],
134 pool_table = S[2][11],
135 reception_desk = S[2][12],
136 table2 = S[2][13], -- unused object & duplicate
137 cardio = S[2][14],
138 scanner = S[2][15],
139 console = S[2][16],
140 screen = S[2][17],
141 litter_bomb = S[2][18],
142 couch = S[2][19],
143 sofa = S[2][20],
144 crash_trolley = S[2][21],
145 tv = S[2][22],
146 ultrascanner = S[2][23],
147 dna_fixer = S[2][24],
148 cast_remover = S[2][25],
149 hair_restorer = S[2][26],
150 slicer = S[2][27],
151 x_ray = S[2][28],
152 radiation_shield = S[2][29],
153 x_ray_viewer = S[2][30],
154 operating_table = S[2][31],
155 lamp = S[2][32], -- unused object
156 toilet_sink = S[2][33],
157 op_sink1 = S[2][34],
158 op_sink2 = S[2][35],
159 surgeon_screen = S[2][36],
160 lecture_chair = S[2][37],
161 projector = S[2][38],
162 bed2 = S[2][39], -- unused duplicate
163 pharmacy_cabinet = S[2][40],
164 computer = S[2][41],
165 atom_analyser = S[2][42],
166 blood_machine = S[2][43],
167 fire_extinguisher = S[2][44],
168 radiator = S[2][45],
169 plant = S[2][46],
170 electrolyser = S[2][47],
171 jelly_moulder = S[2][48],
172 gates_of_hell = S[2][49],
173 bed3 = S[2][50], -- unused duplicate
174 bin = S[2][51],
175 toilet = S[2][52],
176 swing_door1 = S[2][53],
177 swing_door2 = S[2][54],
178 shower = S[2][55],
179 auto_autopsy = S[2][56],
180 bookcase = S[2][57],
181 video_game = S[2][58],
182 entrance_left = S[2][59],
183 entrance_right = S[2][60],
184 skeleton = S[2][61],
185 comfortable_chair = S[2][62],
186 }
187
188 -- S[3][1]: unused
189 -- S[3][2]: what's this for? Apparently some command line option of original TH
190 -- let you start a specific level directly - on difficult and named HORZA.
191
192 pay_rise = {
193 definite_quit = S[3][3],
194 regular = {
195 S[3][ 4], -- %d (rise)
196 S[3][ 5], -- %d (rise) %d (new total)
197 S[3][ 6], -- %d (rise)
198 S[3][ 7], -- %d (rise) %d (new total)
199 S[3][ 8], -- %d (rise)
200 S[3][ 9], -- %d (rise)
201 },
202 poached = S[3][10], -- %d (new total) %s (competitor)
203 }
204
205 place_objects_window = {
206 drag_blueprint = S[3][11],
207 place_door = S[3][12],
208 place_windows = S[3][13],
209 place_objects = S[3][14],
210 confirm_or_buy_objects = S[3][15],
211 pick_up_object = S[3][16],
212 place_objects_in_corridor = S[3][17],
213 }
214
215 -- Category of strings that fit nowhere else or we are not sure where they belong.
216 -- If you think a string of these fits somewhere else, please move it there.
217 -- Don't forget to change all references in the code and other language files.
218 misc = {
219 grade_adverb = {
220 mildly = S[3][18],
221 moderately = S[3][19],
222 extremely = S[3][20],
223 },
224 done = S[3][21],
225 pause = S[3][22],
226
227 send_message = S[3][23], -- %d (player number)
228 send_message_all = S[3][24],
229
230 save_success = S[3][25],
231 save_failed = S[3][26],
232
233 hospital_open = S[3][27],
234 out_of_sync = S[3][28],
235
236 load_failed = S[3][29],
237 low_res = S[3][30],
238 balance = S[3][31],
239
240 mouse = S[11][5],
241 force = S[11][6],
242 }
243
244 -- 4: diseases. This also already handles disease descriptions in 44.
245 -- helper function for diseases
246 local function D(name_str, cause_str)
247 local list = {}
248 list.name = S[4][name_str]
249 if cause_str then
250 list.cause = S[44][cause_str]
251 list.symptoms = S[44][cause_str + 1]
252 list.cure = S[44][cause_str + 2]
253 end
254 return list
255 end
256
257 diseases = {
258 -- none = D( 1), -- not used/needed?
259 general_practice = D( 2),
260 bloaty_head = D( 3, 62),
261 hairyitis = D( 4, 65),
262 king_complex = D( 5, 68),
263 invisibility = D( 6, 71),
264 serious_radiation = D( 7, 74),
265 slack_tongue = D( 8, 77),
266 alien_dna = D( 9, 80),
267 fractured_bones = D(10, 83),
268 baldness = D(11, 86),
269 discrete_itching = D(12, 89),
270 jellyitis = D(13, 92),
271 sleeping_illness = D(14, 95),
272 pregnancy = D(15, 98), -- unused
273 transparency = D(16, 101),
274 uncommon_cold = D(17, 104),
275 broken_wind = D(18, 107),
276 spare_ribs = D(19, 110),
277 kidney_beans = D(20, 113),
278 broken_heart = D(21, 116),
279 ruptured_nodules = D(22, 119),
280 tv_personalities = D(23, 122),
281 infectious_laughter = D(24, 125),
282 corrugated_ankles = D(25, 128),
283 chronic_nosehair = D(26, 131),
284 third_degree_sideburns = D(27, 134),
285 fake_blood = D(28, 137),
286 gastric_ejections = D(29, 140),
287 the_squits = D(30, 143),
288 iron_lungs = D(31, 146),
289 sweaty_palms = D(32, 149),
290 heaped_piles = D(33, 152),
291 gut_rot = D(34, 155),
292 golf_stones = D(35, 158),
293 unexpected_swelling = D(36, 161),
294 diag_scanner = D(37),
295 diag_blood_machine = D(38),
296 diag_cardiogram = D(39),
297 diag_x_ray = D(40),
298 diag_ultrascan = D(41),
299 diag_general_diag = D(42),
300 diag_ward = D(43),
301 diag_psych = D(44),
302 autopsy = D(45),
303 -- mixer = D(46), -- not used/needed?
304 }
305
306 competitor_names = {
307 S[5][ 1],
308 S[5][ 3],
309 S[5][ 2],
310 S[5][ 4],
311 S[5][ 5],
312 S[5][ 6],
313 S[5][ 7],
314 S[5][ 8],
315 S[5][17],
316 S[5][ 9],
317 S[5][15],
318 S[5][12],
319 "CORSIX", -- Main developers just for fun.
320 "ROUJIN",
321 "EDVIN",
322 S[5][10],
323 S[5][11],
324 S[5][13],
325 S[5][14],
326 S[5][16],
327 S[5][18],
328 S[5][19],
329 S[5][20],
330 S[5][21],
331 }
332
333 months = {
334 S[6][ 1],
335 S[6][ 2],
336 S[6][ 3],
337 S[6][ 4],
338 S[6][ 5],
339 S[6][ 6],
340 S[6][ 7],
341 S[6][ 8],
342 S[6][ 9],
343 S[6][10],
344 S[6][11],
345 S[6][12],
346 }
347
348 -- S[7][ 1], -- not needed?
349 -- S[7][ 2], -- unused(?)
350 -- S[7][ 3], -- unused(?)
351
352 graphs = {
353 money_in = S[7][ 4],
354 money_out = S[7][ 5],
355 wages = S[7][ 6],
356 balance = S[7][ 7],
357 visitors = S[7][ 8],
358 cures = S[7][ 9],
359 deaths = S[7][10],
360 reputation = S[7][11],
361
362 time_spans = {
363 S[7][12],
364 S[7][13],
365 S[7][14],
366 }
367 }
368
369 transactions = {
370 --null = S[8][ 1], -- not needed
371 wages = S[8][ 2],
372 hire_staff = S[8][ 3],
373 buy_object = S[8][ 4],
374 build_room = S[8][ 5],
375 cure = S[8][ 6],
376 buy_land = S[8][ 7],
377 treat_colon = S[8][ 8],
378 final_treat_colon = S[8][ 9],
379 cure_colon = S[8][10],
380 deposit = S[8][11],
381 advance_colon = S[8][12],
382 research = S[8][13],
383 drinks = S[8][14],
384 jukebox = S[8][15], -- unused
385 cheat = S[8][16],
386 heating = S[8][17],
387 insurance_colon = S[8][18],
388 bank_loan = S[8][19],
389 loan_repayment = S[8][20],
390 loan_interest = S[8][21],
391 research_bonus = S[8][22],
392 drug_cost = S[8][23],
393 overdraft = S[8][24],
394 severance = S[8][25],
395 general_bonus = S[8][26],
396 sell_object = S[8][27],
397 personal_bonus = S[8][28],
398 emergency_bonus = S[8][29],
399 vaccination = S[8][30],
400 epidemy_coverup_fine = S[8][31],
401 compensation = S[8][32],
402 vip_award = S[8][33],
403 epidemy_fine = S[8][34],
404 eoy_bonus_penalty = S[8][35],
405 eoy_trophy_bonus = S[8][36],
406 machine_replacement = S[8][37],
407 }
408
409 humanoid_name_starts = S[9] -- 33 entries
410 humanoid_name_ends = S[10] -- 26 entries
411
412 adviser = {
413 tutorial = {
414 -- 1) build reception
415 build_reception = S[11][30], -- start of the tutorial
416 order_one_reception = S[11][41],
417 accept_purchase = S[11][43],
418 rotate_and_place_reception = S[11][42],
419 reception_invalid_position = S[11][47],
420
421 -- 2) hire receptionist
422 hire_receptionist = S[11][31],
423 select_receptionists = S[11][34],
424 next_receptionist = S[11][38],
425 prev_receptionist = S[11][39],
426 choose_receptionist = S[11][35],
427 place_receptionist = S[11][37],
428 receptionist_invalid_position = S[11][61],
429
430 -- 3) build GP's office
431 -- 3.1) room window
432 build_gps_office = S[11][33],
433 select_diagnosis_rooms = S[11][44],
434 click_gps_office = S[11][45],
435
436 -- 3.2) blueprint
437 -- [11][58] was maybe planned to be used in this place, but is not needed.
438 click_and_drag_to_build = S[11][48],
439 room_in_invalid_position = S[11][52],
440 room_too_small = S[11][53],
441 room_too_small_and_invalid = S[11][62],
442 room_big_enough = S[11][57],
443
444 -- 3.3) door and windows
445 place_door = S[11][49],
446 door_in_invalid_position = S[11][54],
447 place_windows = S[11][50],
448 window_in_invalid_position = S[11][55],
449
450 -- 3.4) objects
451 place_objects = S[11][51],
452 object_in_invalid_position = S[11][56],
453 confirm_room = S[11][59],
454 information_window = S[11][64],
455
456 -- 4) hire doctor
457 hire_doctor = S[11][32],
458 select_doctors = S[11][36],
459 choose_doctor = S[11][46],
460 place_doctor = S[11][40],
461 doctor_in_invalid_position = S[11][60],
462
463 -- (currently) unused
464 start_tutorial = S[11][63],
465 build_pharmacy = S[11][65],
466 },
467
468 staff_advice = {
469 need_doctors = S[11][ 8],
470 too_many_doctors = S[11][ 9],
471 -- too_many_doctors_2 = S[21][ 4] -- duplicate
472 need_handyman_litter = S[11][ 70],
473 need_handyman_plants = S[11][ 93],
474 need_handyman_machines = S[11][ 94],
475 need_nurses = S[11][101],
476 too_many_nurses = S[11][102],
477 },
478
479 -- used when you place staff in a wrong place
480 staff_place_advice = {
481 only_researchers = S[11][124], -- in research center
482 only_surgeons = S[11][125], -- in operating theatre
483 only_psychiatrists = S[11][126], -- in psychiatry
484 only_nurses_in_room = S[11][127], -- %s (room name)
485 doctors_cannot_work_in_room = S[11][128], -- %s (room name)
486 nurses_cannot_work_in_room = S[11][129], -- %s (room name)
487 only_doctors_in_room = S[11][130], -- %s (room name)
488 receptionists_only_at_desk = S[11][131],
489 },
490
491 build_advice = {
492 blueprint_invalid = S[21][5],
493 blueprint_would_block = S[21][6],
494 door_not_reachable = S[21][7],
495 placing_object_blocks_door = S[21][8],
496 },
497
498 -- these are used when completing a room with certain requirements (if they are not met yet)
499 room_requirements = {
500 psychiatry_need_psychiatrist = S[11][ 79],
501 pharmacy_need_nurse = S[11][ 80],
502 training_room_need_consultant = S[11][ 81],
503 research_room_need_researcher = S[11][ 84],
504 op_need_two_surgeons = S[11][ 85],
505 op_need_another_surgeon = S[11][ 86],
506 op_need_ward = S[11][ 87],
507 ward_need_nurse = S[11][ 88],
508 gps_office_need_doctor = S[11][105],
509 reception_need_receptionist = S[11][106],
510 },
511
512 surgery_requirements = {
513 need_surgeons_ward_op = S[11][103],
514 need_surgeon_ward = S[11][104],
515 },
516
517 warnings = {
518 money_low = S[11][ 2],
519 money_very_low_take_loan = S[11][ 73],
520 cash_low_consider_loan = S[28][ 16],
521 bankruptcy_imminent = S[11][ 3],
522 financial_trouble = S[28][ 29], -- %d amount left before level is lost
523 finanical_trouble2 = S[28][ 30], -- %d same as above
524 financial_trouble3 = S[28][ 31], -- %d same again
525
526 pay_back_loan = S[28][ 57],
527
528 machines_falling_apart = S[11][ 4],
529 no_patients_last_month = S[11][ 10],
530 nobody_cured_last_month = S[11][ 11],
531 queues_too_long = S[11][ 12],
532 patient_stuck = S[11][ 13],
533
534 patients_unhappy = S[11][ 15],
535 patient_leaving = S[28][ 50],
536 patients_leaving = S[28][ 51],
537 patients_really_thirsty = S[28][ 52],
538 patients_annoyed = S[28][ 8],
539
540 patients_thirsty = S[11][ 16],
541 patients_thirsty2 = S[28][ 5],
542 patients_very_thirsty = S[28][ 6],
543
544 patients_too_hot = S[11][ 18],
545 patients_getting_hot = S[28][ 53],
546 patients_very_cold = S[28][ 54],
547 people_freezing = S[28][ 14],
548
549 staff_overworked = S[11][ 17],
550 staff_tired = S[28][ 9],
551
552 staff_too_hot = S[11][ 19],
553 staff_very_cold = S[28][ 55],
554 staff_unhappy = S[11][ 89],
555 staff_unhappy2 = S[28][ 15],
556 doctor_crazy_overwork = S[11][ 95],
557
558 reduce_staff_rest_threshold = S[28][ 45],
559 nurses_tired = S[11][ 96],
560 doctors_tired = S[11][ 97],
561 handymen_tired = S[11][ 98],
562 receptionists_tired = S[11][ 99],
563
564 nurses_tired2 = S[28][ 46],
565 doctors_tired2 = S[28][ 47],
566 handymen_tired2 = S[28][ 48],
567 receptionists_tired2 = S[28][ 49], -- What?
568
569 need_toilets = S[11][ 20],
570 build_toilets = S[28][ 11],
571 build_toilet_now = S[28][ 39],
572 more_toilets = S[28][ 12],
573 people_did_it_on_the_floor = S[28][ 13],
574
575 need_staffroom = S[11][ 74],
576 build_staffroom = S[28][ 10],
577
578 many_killed = S[11][ 77], -- %d (number of killed patients)
579
580 plants_thirsty = S[11][ 91],
581 too_many_plants = S[11][ 92],
582
583 charges_too_high = S[11][119],
584 charges_too_low = S[11][120],
585
586 machine_severely_damaged = S[11][121], -- %s (name of machine)
587 machinery_slightly_damaged = S[28][ 32],
588 machinery_damaged = S[28][ 33],
589 machinery_damaged2 = S[28][ 34],
590 machinery_very_damaged = S[28][ 35],
591 machinery_deteriorating = S[28][ 36],
592
593 queue_too_long_send_doctor = S[11][132], -- %s (name of room)
594 queue_too_long_at_reception = S[11][133],
595 reception_bottleneck = S[11][134], -- TODO find out why there's 133 and 134.
596
597 epidemic_getting_serious = S[28][ 2],
598 deal_with_epidemic_now = S[28][ 3],
599 many_epidemics = S[28][ 4],
600
601 hospital_is_rubbish = S[28][ 7],
602
603 more_benches = S[28][ 25],
604 people_have_to_stand = S[28][ 28],
605
606 too_much_litter = S[28][ 17],
607 litter_everywhere = S[28][ 18],
608 litter_catastrophy = S[28][ 19],
609 some_litter = S[28][ 20],
610
611 place_plants_to_keep_people = S[28][ 21],
612 place_plants2 = S[28][ 22],
613 place_plants3 = S[28][ 23],
614 place_plants4 = S[28][ 24],
615
616 desperate_need_for_watering = S[28][ 40],
617 change_priorities_to_plants = S[28][ 41],
618 plants_dying = S[28][ 42],
619
620 },
621
622 praise = {
623 many_plants = S[11][75],
624 plants_are_well = S[28][43],
625 plants_thriving = S[28][44],
626
627 many_benches = S[11][76],
628 plenty_of_benches = S[28][26],
629 few_have_to_stand = S[28][27],
630
631 patients_cured = S[11][82], -- %d (number of cured patients)
632 },
633
634 information = {
635 epidemic = S[11][ 14],
636 emergency = S[11][ 22],
637 promotion_to_doctor = S[11][ 23],
638 promotion_to_specialist = S[11][ 69], -- %s (type: psychiatrist, scientist, surgeon)
639 promotion_to_consultant = S[11][138],
640
641 first_death = S[11][ 72],
642 first_cure = S[11][ 83],
643
644 place_windows = S[11][108],
645 larger_rooms = S[11][109],
646 extra_items = S[11][110],
647
648 patient_abducted = S[11][111], -- what the heck is this? I never got that far in the original...
649 patient_leaving_too_expensive = S[11][118],
650
651 pay_rise = S[11][ 29], -- Once only
652 handyman_adjust = S[11][ 71], -- Once only
653 fax_received = S[11][136], -- Once only
654
655 vip_arrived = S[21][ 9], -- %s (name of VIP)
656 epidemic_health_inspector = S[21][ 10],
657
658 initial_general_advice = {
659 research_now_available = S[62][02],
660 research_symbol = S[62][03],
661 surgeon_symbol = S[62][04],
662 psychiatric_symbol = S[62][05],
663 rats_have_arrived = S[62][06],
664 autopsy_available = S[62][07],
665 first_epidemic = S[62][08],
666 first_VIP = S[62][09],
667 taking_your_staff = S[62][10],
668 machine_needs_repair = S[62][11],
669 epidemic_spreading = S[62][12],
670 increase_heating = S[62][13],
671 place_radiators = S[62][14],
672 decrease_heating = S[62][15],
673 first_patients_thirsty = S[62][16],
674 first_emergency = S[62][17],
675 },
676 },
677
678 earthquake = {
679 alert = S[11][107],
680 damage = S[11][100], -- %d (damaged machines) %d (injured people)
681 ended = S[11][ 78], -- %d (severance of earthquake)
682 },
683
684 boiler_issue = {
685 maximum_heat = S[21][ 11],
686 minimum_heat = S[21][ 12],
687 resolved = S[21][ 13],
688 },
689
690 vomit_wave = {
691 started = S[21][ 14],
692 ended = S[21][ 15],
693 },
694
695 goals = {
696 win = {
697 money = S[11][ 21], -- %d (remaining amount)
698 reputation = S[11][ 67], -- %d (required amount)
699 value = S[11][ 68], -- %d (required amount)
700 cure = S[11][137], -- %d (remaining amount)
701 },
702 lose = {
703 kill = S[11][ 66], -- %d (remaining amount)
704 },
705 },
706
707 level_progress = {
708 nearly_won = S[11][112],
709 three_quarters_won = S[11][113],
710 halfway_won = S[11][114],
711 nearly_lost = S[11][115],
712 three_quarters_lost = S[11][116],
713 halfway_lost = S[11][117],
714
715 another_patient_cured = S[28][37],
716 another_patient_killed = S[28][38],
717
718 financial_criteria_met = S[28][56], -- %d money threshold for the level
719 cured_enough_patients = S[28][58],
720 dont_kill_more_patients = S[28][59],
721 reputation_good_enough = S[28][60], -- %d rep threshold for the level
722 improve_reputation = S[28][61], -- %d amount to improve by
723 hospital_value_enough = S[28][62], -- %d keep it above this value
724 close_to_win_increase_value = S[28][63],
725
726 },
727
728 research = {
729 new_machine_researched = S[11][ 24], -- %s (machine(?) name)
730 new_drug_researched = S[11][ 25], -- %s (disease name)
731 drug_improved = S[11][ 26], -- %s (disease name)
732 machine_improved = S[11][ 27], -- %s (machine name)
733 new_available = S[11][ 28], -- %s TODO What is this? Where to use this and where [11][24]?
734 -- ANSWER: It is used if research is not conducted in an area for very long. Some diagnosis equipment
735 -- becomes available anyway after some years. Then this message is displayed instead of [11][24]
736 drug_fully_researched = S[11][122], -- %s (drug(?) name)
737 autopsy_discovered_rep_loss = S[11][123],
738 },
739
740 competitors = {
741 hospital_opened = S[11][135], -- %s (competitor name)
742 land_purchased = S[11][ 7], -- %s (competitor name)
743 staff_poached = S[11][ 90],
744 },
745
746 multiplayer = {
747 -- S[21][1] unused
748 everyone_failed = S[21][ 2],
749 players_failed = S[21][ 3],
750
751 poaching = {
752 already_poached_by_someone = S[21][16],
753 not_interested = S[21][17],
754 in_progress = S[21][18],
755 },
756
757 objective_completed = S[21][19], -- missing in some TH versions
758 objective_failed = S[21][20], -- missing in some TH versions
759 },
760
761 placement_info = {
762 -- S[22][1] unused
763 room_cannot_place = S[22][ 2],
764 room_cannot_place_2 = S[22][ 3], -- hmm. why? maybe the previous one should've been "can"
765 reception_can_place = S[22][ 4],
766 reception_cannot_place = S[22][ 5],
767 door_can_place = S[22][ 6],
768 door_cannot_place = S[22][ 7],
769 window_can_place = S[22][ 8],
770 window_cannot_place = S[22][ 9],
771 staff_can_place = S[22][10],
772 staff_cannot_place = S[22][11],
773 object_can_place = S[22][12],
774 object_cannot_place = S[22][13],
775 },
776
777 epidemic = {
778 -- S[28][1] unused
779 serious_warning = S[28][ 2],
780 hurry_up = S[28][ 3],
781 multiple_epidemies = S[28][ 4],
782 },
783 }
784
785 level_names = {
786 -- S[12][ 1] -- unused
787 S[12][ 2],
788 S[12][ 3],
789 S[12][ 4],
790 S[12][ 5],
791 S[12][ 6],
792 S[12][ 7],
793 S[12][ 8],
794 S[12][ 9],
795 S[12][10],
796 S[12][11],
797 S[12][12],
798 S[12][13],
799 S[12][14],
800 S[12][15],
801 S[12][16],
802 }
803
804 town_map = {
805 -- S[13][ 1] -- unused
806 chat = S[13][ 2],
807 for_sale = S[13][ 3],
808 not_for_sale = S[13][ 4],
809 number = S[13][ 5],
810 owner = S[13][ 6],
811 area = S[13][ 7],
812 price = S[13][ 8],
813 }
814
815 -- NB: includes some special "rooms"
816 -- reception, destroyed room and "corridor objects"
817 rooms_short = {
818 -- S[14][1] -- unused
819 -- S[14][3] -- unused
820 reception = S[14][ 2],
821 destroyed = S[14][ 4],
822 corridor_objects = S[14][29],
823
824 gps_office = S[14][ 5],
825 psychiatric = S[14][ 6],
826 ward = S[14][ 7],
827 operating_theatre = S[14][ 8],
828 pharmacy = S[14][ 9],
829 cardiogram = S[14][10],
830 scanner = S[14][11],
831 ultrascan = S[14][12],
832 blood_machine = S[14][13],
833 x_ray = S[14][14],
834 inflation = S[14][15],
835 dna_fixer = S[14][16],
836 hair_restoration = S[14][17],
837 tongue_clinic = S[14][18],
838 fracture_clinic = S[14][19],
839 training_room = S[14][20],
840 electrolysis = S[14][21],
841 jelly_vat = S[14][22],
842 staffroom = S[14][23],
843 -- rehabilitation = S[14][24], -- unused
844 general_diag = S[14][25],
845 research_room = S[14][26],
846 toilets = S[14][27],
847 decontamination = S[14][28],
848 }
849
850 rooms_long = {
851 -- S[53][1] -- unused
852 general = S[53][2], -- unused?
853 emergency = S[53][3],
854 corridors = S[53][29],
855
856 gps_office = S[53][ 5],
857 psychiatric = S[53][ 6],
858 ward = S[53][ 7],
859 operating_theatre = S[53][ 8],
860 pharmacy = S[53][ 9],
861 cardiogram = S[53][10],
862 scanner = S[53][11],
863 ultrascan = S[53][12],
864 blood_machine = S[53][13],
865 x_ray = S[53][14],
866 inflation = S[53][15],
867 dna_fixer = S[53][16],
868 hair_restoration = S[53][17],
869 tongue_clinic = S[53][18],
870 fracture_clinic = S[53][19],
871 training_room = S[53][20],
872 electrolysis = S[53][21],
873 jelly_vat = S[53][22],
874 staffroom = S[53][23],
875 -- rehabilitation = S[53][24], -- unused
876 general_diag = S[53][25],
877 research_room = S[53][26],
878 toilets = S[53][27],
879 decontamination = S[53][28],
880 }
881
882 drug_companies = {
883 -- S[15][1], -- unused
884 S[15][2],
885 S[15][3],
886 S[15][4],
887 S[15][5],
888 S[15][6],
889 }
890
891 build_room_window = {
892 -- S[16][1], -- unused
893 pick_department = S[16][2],
894 pick_room_type = S[16][3],
895 cost = S[16][5],
896 }
897
898 buy_objects_window = {
899 choose_items = S[16][4],
900 price = S[16][6],
901 total = S[16][7],
902 }
903
904 research = {
905 categories = {
906 cure = S[17][1],
907 diagnosis = S[17][2],
908 drugs = S[17][3],
909 improvements = S[17][4],
910 specialisation = S[17][5],
911 },
912
913 funds_allocation = S[17][6],
914 allocated_amount = S[17][7],
915 }
916
917 policy = {
918 header = S[18][1],
919 diag_procedure = S[18][2],
920 diag_termination = S[18][3],
921 staff_rest = S[18][4],
922 staff_leave_rooms = S[18][5],
923
924 sliders = {
925 guess = S[18][6], -- belongs to diag_procedure
926 send_home = S[18][7], -- also belongs to diag_procedure
927 stop = S[18][8], -- belongs to diag_termination
928 staff_room = S[18][9], -- belongs to staff_rest
929 }
930 }
931
932 room_classes = {
933 -- S[19][1] -- unused
934 -- S[19][2] -- "corridors" - unused for now
935 -- S[19][3] -- unused
936 diagnosis = S[19][4],
937 treatment = S[19][5],
938 clinics = S[19][6],
939 facilities = S[19][7],
940 }
941
942 -- These are better of in a list with numbers
943 insurance_companies = {
944 out_of_business = S[20][ 1],
945 S[20][ 2],
946 S[20][ 3],
947 S[20][ 4],
948 S[20][ 5],
949 S[20][ 6],
950 S[20][ 7],
951 S[20][ 8],
952 S[20][ 9],
953 S[20][10],
954 S[20][11],
955 S[20][12],
956 }
957
958 -- 21 and 22: some more adviser strings, see above.
959
960 -- 23: menu strings
961 -- Menu strings are a little complicated: Different versions of the original
962 -- game have slightly different menu strings. The strings are also organised
963 -- by more levels than traditional strings. For the most part, this extra
964 -- organisation can be use to offset the differences in menu string indices.
965 local M = {{}}
966 do
967 local i = 2
968 local section = 1
969 while true do
970 local s = S[23][i]
971 if s == "." then
972 section = section + 1
973 M[section] = {}
974 elseif s == ".." then
975 break
976 else
977 M[section][#M[section] + 1] = s
978 end
979 i = i + 1
980 end
981 end
982
983 menu = {
984 file = M[1][1],
985 options = M[1][2],
986 display = M[1][3],
987 charts = M[1][4],
988 debug = M[1][5],
989 }
990
991 menu_file = {
992 load = M[2][1],
993 save = M[2][2],
994 restart = #M[2] == 4 and M[2][3] or "(no string) restart",
995 quit = M[2][#M[2]],
996 }
997
998 menu_file_load = M[7]
999 menu_file_save = menu_file_load --[[{
1000 [1] = S[23][73],
1001 [2] = S[23][74],
1002 [3] = S[23][75],
1003 [4] = S[23][76],
1004 [5] = S[23][77],
1005 [6] = S[23][78],
1006 [7] = S[23][79],
1007 [8] = S[23][80],
1008 }]]
1009
1010 menu_options = {
1011 sound = M[3][1],
1012 announcements = M[3][2],
1013 music = M[3][3],
1014 sound_vol = M[3][4],
1015 announcements_vol = M[3][5],
1016 music_vol = M[3][6],
1017 autosave = M[3][7],
1018 game_speed = M[3][8],
1019 jukebox = M[3][9],
1020 }
1021
1022 menu_options_volume = { -- redundant in original strings: M[10] and M[11]
1023 [100] = M[9][ 1],
1024 [ 90] = M[9][ 2],
1025 [ 80] = M[9][ 3],
1026 [ 70] = M[9][ 4],
1027 [ 60] = M[9][ 5],
1028 [ 50] = M[9][ 6],
1029 [ 40] = M[9][ 7],
1030 [ 30] = M[9][ 8],
1031 [ 20] = M[9][ 9],
1032 [ 10] = M[9][10],
1033 }
1034
1035 menu_options_game_speed = {
1036 slowest = M[12][1],
1037 slower = M[12][2],
1038 normal = M[12][3],
1039 max_speed = M[12][4],
1040 and_then_some_more = M[12][5],
1041 }
1042
1043 menu_display = {
1044 high_res = M[4][1],
1045 mcga_lo_res = M[4][2],
1046 shadows = M[4][3],
1047 }
1048
1049 menu_charts = {
1050 statement = M[5][1],
1051 casebook = M[5][2],
1052 policy = M[5][3],
1053 research = M[5][4],
1054 graphs = M[5][5],
1055 staff_listing = M[5][6],
1056 bank_manager = M[5][7],
1057 status = M[5][8],
1058 briefing = M[5][#M[5]],
1059 }
1060
1061 menu_debug = {
1062 object_cells = M[6][ 1],
1063 entry_cells = M[6][ 2],
1064 keep_clear_cells = M[6][ 3],
1065 nav_bits = M[6][ 4],
1066 remove_walls = M[6][ 5],
1067 remove_objects = M[6][ 6],
1068 display_pager = M[6][ 7],
1069 mapwho_checking = M[6][ 8],
1070 plant_pagers = M[6][ 9],
1071 porter_pagers = M[6][10],
1072 pixbuf_cells = M[6][11],
1073 enter_nav_debug = M[6][12],
1074 show_nav_cells = M[6][13],
1075 machine_pagers = M[6][14],
1076 display_room_status = M[6][15],
1077 display_big_cells = M[6][16],
1078 show_help_hotspot = M[6][17],
1079 win_game_anim = M[6][18],
1080 win_level_anim = M[6][19],
1081 lose_game_anim = {
1082 M[6][20],
1083 M[6][21],
1084 M[6][22],
1085 M[6][23],
1086 M[6][24],
1087 M[6][25],
1088 M[6][26],
1089 },
1090 }
1091
1092 staff_list = {
1093 -- S[24][1] unused
1094 -- S[24][2] -- I have no idea what this is.
1095 morale = S[24][3],
1096 tiredness = S[24][4],
1097 skill = S[24][5],
1098 total_wages = S[24][6],
1099 }
1100
1101 high_score = {
1102 -- S[25][1] unused
1103 pos = S[25][2],
1104 player = S[25][3],
1105 score = S[25][4],
1106 best_scores = S[25][5],
1107 worst_scores = S[25][6],
1108 killed = S[25][7], -- is this used?
1109
1110 categories = {
1111 money = S[26][ 1],
1112 salary = S[26][ 2],
1113 clean = S[26][ 3],
1114 cures = S[26][ 4],
1115 deaths = S[26][ 5],
1116 cure_death_ratio = S[26][ 6],
1117 patient_happiness = S[26][ 7],
1118 staff_happiness = S[26][ 8],
1119 staff_number = S[26][ 9],
1120 visitors = S[26][10],
1121 total_value = S[26][11],
1122 },
1123 }
1124
1125 trophy_room = {
1126 -- S[27][1] unused
1127 many_cured = {
1128 awards = {
1129 S[55][ 5],
1130 S[55][ 6],
1131 },
1132 penalty = {
1133 S[56][ 5],
1134 S[56][ 6],
1135 },
1136 trophies = {
1137 S[27][ 2], -- for around 100% cure rate
1138 S[27][ 3], -- for around 100% cure rate
1139 S[27][ 4], -- for around 100% cure rate
1140 },
1141 regional = {
1142 S[55][ 7],
1143 },
1144 },
1145 all_cured = {
1146 awards = {
1147 S[27][29], -- for 100% treat rate (none sent home or killed)
1148 },
1149 trophies = {
1150 S[27][30], -- for 100% cure rate
1151 S[27][31], -- for 100% cure rate
1152 },
1153 },
1154 hosp_value = {
1155 awards = {
1156 S[55][20],
1157 },
1158 penalty = {
1159 S[56][20],
1160 },
1161 regional = {
1162 S[55][22],
1163 },
1164 },
1165 best_value_hosp = { -- not implemented
1166 trophies = {
1167 S[27][ 6],
1168 },
1169 regional = {
1170 S[55][21],
1171 },
1172 penalty = {
1173 S[56][21],
1174 },
1175 },
1176 consistant_rep = {
1177 trophies = {
1178 S[27][ 5],
1179 S[27][ 6],
1180 },
1181 },
1182 high_rep = {
1183 awards = {
1184 S[55][ 2],
1185 S[55][ 3],
1186 },
1187 penalty = {
1188 S[56][ 2], -- is this the penalty for consistant poor rep?
1189 S[56][ 3],
1190 },
1191 regional = { -- not implemented
1192 S[27][ 7],
1193 S[55][ 4],
1194 },
1195 },
1196 happy_staff = { -- not implemented
1197 awards = {
1198 S[55][23],
1199 S[55][25],
1200 },
1201 penalty = {
1202 S[56][23],
1203 },
1204 regional_good = {
1205 S[55][24],
1206 },
1207 regional_bad = {
1208 S[56][24],
1209 },
1210 trophies = {
1211 S[27][ 8],
1212 S[27][ 9],
1213 S[27][10],
1214 },
1215 },
1216 happy_vips = {
1217 trophies = {
1218 S[27][11],
1219 S[27][12],
1220 S[27][13],
1221 },
1222 },
1223 no_deaths = {
1224 awards = {
1225 S[55][ 8],
1226 S[55][10],
1227 },
1228 penalty = {
1229 S[56][ 8], -- this may need an over-ride as it looks wrong "unacceptably" not "acceptably" IMO
1230 S[56][ 9],
1231 },
1232 trophies = {
1233 S[27][14],
1234 S[27][15],
1235 S[27][16],
1236 },
1237 regional = { -- not implemented
1238 S[55][ 9],
1239 },
1240 },
1241 rats_killed = { -- not implemented
1242
1243 trophies = {
1244 S[27][17], -- %d (number of rats)
1245 S[27][18], -- %d (number of rats)
1246 S[27][19], -- %d (number of rats)
1247 },
1248 },
1249 rats_accuracy = { -- not implemented
1250 trophies = {
1251 S[27][20], -- %d (accuracy percentage)
1252 S[27][21], -- %d (accuracy percentage)
1253 S[27][22], -- %d (accuracy percentage)
1254 },
1255 },
1256 healthy_plants = { -- not implemented
1257 awards = {
1258 S[27][23],
1259 },
1260 trophies = {
1261 S[27][24],
1262 S[27][25],
1263 },
1264 },
1265 sold_drinks = {
1266 trophies = {
1267 S[27][26],
1268 S[27][27],
1269 S[27][28],
1270 },
1271 },
1272 pop_percentage = { -- not implemented
1273 awards = {
1274 S[55][11],
1275 S[55][12],
1276 S[55][13],
1277 },
1278 penalty = {
1279 S[56][11],
1280 S[56][12],
1281 },
1282 },
1283 gen_repairs = { -- not implemented
1284 awards = {
1285 S[55][38],
1286 S[55][39],
1287 S[55][40],
1288 },
1289 penalty = {
1290 S[56][38],
1291 S[56][39],
1292 },
1293 },
1294 curesvdeaths = {
1295 awards = {
1296 S[55][14],
1297 },
1298 penalty = {
1299 S[56][14],
1300 },
1301 },
1302 research = { -- not implemented
1303 awards = {
1304 S[55][35],
1305 S[55][37],
1306 },
1307 penalty = {
1308 S[56][35],
1309 },
1310 regional_good = {
1311 S[55][35],
1312 },
1313 regional_bad = {
1314 S[56][36],
1315 },
1316 },
1317 cleanliness = { -- not implemented
1318 award = {
1319 S[55][26],
1320 },
1321 regional_good = {
1322 S[56][26],
1323 },
1324 regional_bad = {
1325 S[56][27],
1326 },
1327 },
1328 emergencies = { -- not implemented
1329 award = {
1330 S[55][32],
1331 S[55][34],
1332 },
1333 penalty = {
1334 S[56][32],
1335 },
1336 regional_good = {
1337 S[55][33],
1338 },
1339 regional_bad = {
1340 S[56][33],
1341 },
1342 },
1343 wait_times = { -- not implemented
1344 award = {
1345 S[55][29],
1346 },
1347 penalty = {
1348 S[56][29],
1349 },
1350 },
1351 happy_patients = { -- not implemented
1352 awards = {
1353 S[55][17],
1354 S[55][18],
1355 },
1356 penalty = {
1357 S[56][17],
1358 S[56][18],
1359 },
1360 },
1361 -- Strings used in the plaques to show what has been won
1362 reputation = S[63][1],
1363 cash = S[63][2],
1364 }
1365
1366 -- Section 28: more adviser strings (see above)
1367
1368 casebook = {
1369 reputation = S[29][ 1],
1370 treatment_charge = S[29][ 2],
1371 earned_money = S[29][ 3],
1372 cured = S[29][ 4],
1373 deaths = S[29][ 5],
1374 sent_home = S[29][ 6],
1375 research = S[29][ 7],
1376 cure = S[29][ 8],
1377 cure_desc = {
1378 build_room = S[29][ 9], -- %s (room name)
1379 build_ward = S[29][10],
1380 hire_doctors = S[29][11],
1381 hire_surgeons = S[29][12],
1382 hire_psychiatrists = S[29][13],
1383 hire_nurses = S[29][14],
1384 no_cure_known = S[29][15],
1385 cure_known = S[29][16],
1386 improve_cure = S[29][17],
1387 },
1388 }
1389
1390 -- 30, 31: multiplayer. not needed for now.
1391
1392 tooltip = {
1393 -- S[32][1] unused
1394 build_room_window = {
1395 room_classes = {
1396 diagnosis = S[32][ 2],
1397 treatment = S[32][ 3],
1398 clinic = S[32][ 4],
1399 facilities = S[32][ 5],
1400 },
1401 cost = S[32][ 6],
1402 close = S[32][ 7],
1403 },
1404
1405 toolbar = {
1406 bank_button = S[32][ 8],
1407 balance = S[32][ 9],
1408 reputation = S[32][ 10], -- NB: no %d! Append " ([reputation])".
1409 date = S[32][ 11],
1410 rooms = S[32][ 12],
1411 objects = S[32][ 13],
1412 edit = S[32][ 14],
1413 hire = S[32][ 15],
1414 staff_list = S[32][ 16],
1415 town_map = S[32][ 17],
1416 casebook = S[32][ 18],
1417 research = S[32][ 19],
1418 status = S[32][ 20],
1419 charts = S[32][ 21],
1420 policy = S[32][ 22],
1421 },
1422
1423 hire_staff_window = {
1424 doctors = S[32][ 23],
1425 nurses = S[32][ 24],
1426 handymen = S[32][ 25],
1427 receptionists = S[32][ 26],
1428 prev_person = S[32][ 27],
1429 next_person = S[32][ 28],
1430 hire = S[32][ 29],
1431 cancel = S[32][ 30],
1432 doctor_seniority = S[32][ 31],
1433 staff_ability = S[32][ 32],
1434 salary = S[32][ 33],
1435 qualifications = S[32][ 34],
1436 surgeon = S[32][ 35],
1437 psychiatrist = S[32][ 36],
1438 researcher = S[32][ 37],
1439 },
1440
1441 buy_objects_window = {
1442 price = S[32][ 38],
1443 total_value = S[32][ 39],
1444 confirm = S[32][ 40],
1445 cancel = S[32][ 41],
1446 decrease = S[32][ 42],
1447 increase = S[32][ 43],
1448 },
1449
1450 staff_list = {
1451 doctors = S[32][ 44],
1452 nurses = S[32][ 45],
1453 handymen = S[32][ 46],
1454 receptionists = S[32][ 47],
1455
1456 happiness = S[32][ 48],
1457 tiredness = S[32][ 49],
1458 ability = S[32][ 50],
1459 salary = S[32][ 51],
1460
1461 happiness_2 = S[32][ 52],
1462 tiredness_2 = S[32][ 53],
1463 ability_2 = S[32][ 54],
1464
1465 prev_person = S[32][ 55],
1466 next_person = S[32][ 56],
1467
1468 bonus = S[32][ 57],
1469 sack = S[32][ 58],
1470 pay_rise = S[32][ 59],
1471
1472 close = S[32][ 60],
1473
1474 doctor_seniority = S[32][ 61],
1475 detail = S[32][ 62],
1476
1477 view_staff = S[32][ 63],
1478
1479 surgeon = S[32][ 64],
1480 psychiatrist = S[32][ 65],
1481 researcher = S[32][ 66],
1482 surgeon_train = S[32][ 67], -- %d (percentage trained)
1483 psychiatrist_train = S[32][ 68], -- %d (percentage trained)
1484 researcher_train = S[32][ 69], -- %d (percentage trained)
1485
1486 skills = S[32][ 70],
1487 },
1488
1489 queue_window = {
1490 num_in_queue = S[32][ 71],
1491 num_expected = S[32][ 72],
1492 num_entered = S[32][ 73],
1493 max_queue_size = S[32][ 74],
1494 dec_queue_size = S[32][ 75],
1495 inc_queue_size = S[32][ 76],
1496 front_of_queue = S[32][ 77],
1497 end_of_queue = S[32][ 78],
1498 close = S[32][ 79],
1499 patient = S[32][ 80],
1500 patient_dropdown = {
1501 reception = S[32][186],
1502 send_home = S[32][187],
1503 hospital_1 = S[32][188],
1504 hospital_2 = S[32][189],
1505 hospital_3 = S[32][190],
1506 },
1507 },
1508
1509 main_menu = {
1510 new_game = S[32][ 81],
1511 load_game = S[32][ 82],
1512 continue = S[32][ 83],
1513 network = S[32][ 84],
1514 quit = S[32][ 85],
1515 load_menu = {
1516 load_slot = S[41][ 1], -- NB: no %d! Append " [slotnumber]".
1517 empty_slot = S[41][ 2],
1518 },
1519 },
1520
1521 window_general = {
1522 cancel = S[32][ 86],
1523 confirm = S[32][ 87],
1524 },
1525
1526 patient_window = {
1527 close = S[32][ 88],
1528 graph = S[32][ 89],
1529 happiness = S[32][ 90],
1530 thirst = S[32][ 91],
1531 warmth = S[32][ 92],
1532 casebook = S[32][ 93],
1533 send_home = S[32][ 94],
1534 center_view = S[32][ 95],
1535 abort_diagnosis = S[32][ 96],
1536 queue = S[32][ 97],
1537 },
1538
1539 staff_window = {
1540 name = S[32][ 98],
1541 close = S[32][ 99],
1542 face = S[32][100],
1543 happiness = S[32][101],
1544 tiredness = S[32][102],
1545 ability = S[32][103],
1546 doctor_seniority = S[32][104],
1547 skills = S[32][105],
1548 surgeon = S[32][106],
1549 psychiatrist = S[32][107],
1550 researcher = S[32][108],
1551 salary = S[32][109],
1552 center_view = S[32][110],
1553 sack = S[32][111],
1554 pick_up = S[32][112],
1555 },
1556
1557 machine_window = {
1558 name = S[32][113],
1559 close = S[32][114],
1560 times_used = S[32][115],
1561 status = S[32][116],
1562 repair = S[32][117],
1563 replace = S[32][118],
1564 },
1565
1566 -- Apparently handymen have their own set of strings (partly) containing "handyman".
1567 -- We could just get rid of this category and include the three prios into staff_window.
1568 handyman_window = {
1569 name = S[32][119], -- contains "handyman"
1570 close = S[32][120],
1571 face = S[32][121], -- contains "handyman"
1572 happiness = S[32][122],
1573 tiredness = S[32][123],
1574 ability = S[32][124],
1575 prio_litter = S[32][125], -- contains "handyman"
1576 prio_plants = S[32][126], -- contains "handyman"
1577 prio_machines = S[32][127], -- contains "handyman"
1578 salary = S[32][128],
1579 center_view = S[32][129], -- contains "handyman"
1580 sack = S[32][130],
1581 pick_up = S[32][131],
1582 },
1583
1584 place_objects_window = {
1585 cancel = S[32][132],
1586 buy_sell = S[32][133],
1587 pick_up = S[32][134],
1588 confirm = S[32][135],
1589 },
1590
1591 casebook = {
1592 up = S[32][136],
1593 down = S[32][137],
1594 close = S[32][138],
1595 reputation = S[32][139],
1596 treatment_charge = S[32][140],
1597 earned_money = S[32][141],
1598 cured = S[32][142],
1599 deaths = S[32][143],
1600 sent_home = S[32][144],
1601 decrease = S[32][145],
1602 increase = S[32][146],
1603 research = S[32][147],
1604 cure_type = {
1605 drug = S[32][148],
1606 drug_percentage = S[32][149], -- %d (effectiveness percentage)
1607 psychiatrist = S[32][150],
1608 surgery = S[32][151],
1609 machine = S[32][152],
1610 },
1611 cure_requirement = {
1612 possible = S[32][153],
1613 research_machine = S[32][154],
1614 build_room = S[32][155],
1615 hire_surgeons = S[32][156], -- unused
1616 hire_surgeon = S[32][157], -- unused
1617 hire_staff_old = S[32][158], -- %s (staff type), unused. Use hire_staff instead.
1618 build_ward = S[32][159], -- unused
1619 ward_hire_nurse = S[32][160], -- unused
1620 not_possible = S[32][161], -- unused
1621 },
1622 },
1623
1624 statement = {
1625 close = S[32][162],
1626 },
1627
1628 research = {
1629 close = S[32][163],
1630 cure_dec = S[32][164],
1631 diagnosis_dec = S[32][165],
1632 drugs_dec = S[32][166],
1633 improvements_dec = S[32][167],
1634 specialisation_dec = S[32][168],
1635 cure_inc = S[32][169],
1636 diagnosis_inc = S[32][170],
1637 drugs_inc = S[32][171],
1638 improvements_inc = S[32][172],
1639 specialisation_inc = S[32][173],
1640
1641 -- S[32][174] unused
1642 allocated_amount = S[32][175],
1643 },
1644
1645 graphs = {
1646 close = S[32][176],
1647 scale = S[32][177],
1648 money_in = S[32][178],
1649 money_out = S[32][179],
1650 wages = S[32][180],
1651 balance = S[32][181],
1652 visitors = S[32][182],
1653 cures = S[32][183],
1654 deaths = S[32][184],
1655 reputation = S[32][185],
1656 },
1657
1658 -- S[32][186] through S[32][190] inserted further above
1659
1660 town_map = {
1661 people = S[32][191],
1662 plants = S[32][192],
1663 fire_extinguishers = S[32][193],
1664 objects = S[32][194],
1665 radiators = S[32][195],
1666 heat_level = S[32][196],
1667 heat_inc = S[32][197],
1668 heat_dec = S[32][198],
1669 heating_bill = S[32][199],
1670 balance = S[32][200],
1671 close = S[32][201],
1672 },
1673
1674 -- S[32][202] unused.
1675 jukebox = {
1676 current_title = S[32][203],
1677 close = S[32][204],
1678 play = S[32][205],
1679 rewind = S[32][206],
1680 fast_forward = S[32][207],
1681 stop = S[32][208],
1682 loop = S[32][209],
1683 },
1684
1685 bank_manager = {
1686 hospital_value = S[32][210],
1687 balance = S[32][211],
1688 current_loan = S[32][212],
1689 repay_5000 = S[32][213],
1690 borrow_5000 = S[32][214],
1691 interest_payment = S[32][215],
1692 inflation_rate = S[32][216],
1693 interest_rate = S[32][217],
1694 close = S[32][218],
1695 insurance_owed = S[32][219], -- %s (name of debitor)
1696 show_graph = S[32][220], -- %s (name of debitor)
1697 graph = S[32][221], -- %s (name of debitor)
1698 graph_return = S[32][222],
1699 },
1700
1701 status = {
1702 win_progress_own = S[32][223],
1703 win_progress_other = S[32][224], -- %s (name of competitor)
1704 population_chart = S[32][225],
1705 happiness = S[32][226],
1706 thirst = S[32][227],
1707 warmth = S[32][228],
1708 close = S[32][229],
1709
1710 -- Criteria to win
1711 reputation = S[64][ 1],
1712 balance = S[64][ 2],
1713 population = S[64][ 3],
1714 num_cured = S[64][ 4],
1715 percentage_killed = S[64][ 5],
1716 value = S[64][ 6],
1717 percentage_cured = S[64][ 7],
1718 },
1719
1720 policy = {
1721 close = S[32][230],
1722 staff_leave = S[32][231],
1723 staff_stay = S[32][232],
1724 diag_procedure = S[32][233],
1725 diag_termination = S[32][234],
1726 staff_rest = S[32][235],
1727 },
1728
1729 pay_rise_window = {
1730 accept = S[32][236],
1731 decline = S[32][237],
1732 },
1733
1734 watch = {
1735 hospital_opening = S[32][238],
1736 emergency = S[32][239],
1737 epidemic = S[32][240],
1738 },
1739
1740 rooms = {
1741 -- S[33][1] through S[33][7] unused.
1742 gps_office = S[33][ 8],
1743 psychiatry = S[33][ 9],
1744 ward = S[33][10],
1745 operating_theatre = S[33][11],
1746 pharmacy = S[33][12],
1747 cardiogram = S[33][13],
1748 scanner = S[33][14],
1749 ultrascan = S[33][15],
1750 blood_machine = S[33][16],
1751 x_ray = S[33][17],
1752 inflation = S[33][18],
1753 dna_fixer = S[33][19],
1754 hair_restoration = S[33][20],
1755 tongue_clinic = S[33][21],
1756 fracture_clinic = S[33][22],
1757 training_room = S[33][23],
1758 electrolysis = S[33][24],
1759 jelly_vat = S[33][25],
1760 staffroom = S[33][26],
1761 -- rehabilitation = S[33][27], -- unused
1762 general_diag = S[33][28],
1763 research_room = S[33][29],
1764 toilets = S[33][30],
1765 decontamination = S[33][31],
1766 },
1767
1768 objects = {
1769 -- S[40][1] unused.
1770 -- NB: most objects do not have a tooltip because they're not (extra-)buyable
1771 desk = S[40][ 2],
1772 cabinet = S[40][ 3],
1773 door = S[40][ 4],
1774 bench = S[40][ 5],
1775 table1 = S[40][ 6], -- unused
1776 chair = S[40][ 7],
1777 drinks_machine = S[40][ 8],
1778 bed = S[40][ 9],
1779 inflator = S[40][10],
1780 pool_table = S[40][11],
1781 reception_desk = S[40][12],
1782 table2 = S[40][13], -- unused & duplicate
1783 cardio = S[40][14], -- no description
1784 scanner = S[40][15], -- no description
1785 console = S[40][16], -- no description
1786 screen = S[40][17], -- no description
1787 litter_bomb = S[40][18],
1788 couch = S[40][19], -- no description
1789 sofa = S[40][20],
1790 crash_trolley = S[40][21], -- no description
1791 tv = S[40][22],
1792 ultrascanner = S[40][23], -- no description
1793 dna_fixer = S[40][24], -- no description
1794 cast_remover = S[40][25], -- no description
1795 hair_restorer = S[40][26], -- no description
1796 slicer = S[40][27], -- no description
1797 x_ray = S[40][28], -- no description
1798 radiation_shield = S[40][29], -- no description
1799 x_ray_viewer = S[40][30], -- no description
1800 operating_table = S[40][31], -- no description
1801 lamp = S[40][32], -- unused
1802 toilet_sink = S[40][33],
1803 op_sink1 = S[40][34], -- no description
1804 op_sink2 = S[40][35], -- no description
1805 surgeon_screen = S[40][36], -- no description
1806 lecture_chair = S[40][37],
1807 projector = S[40][38], -- no description
1808 bed2 = S[40][39], -- unused duplicate
1809 pharmacy_cabinet = S[40][40],
1810 computer = S[40][41],
1811 atom_analyser = S[40][42],
1812 blood_machine = S[40][43], -- no description
1813 fire_extinguisher = S[40][44],
1814 radiator = S[40][45],
1815 plant = S[40][46],
1816 electrolyser = S[40][47], -- no description
1817 jelly_moulder = S[40][48], -- no description
1818 gates_of_hell = S[40][49], -- no description
1819 bed3 = S[40][50], -- unused duplicate
1820 bin = S[40][51],
1821 toilet = S[40][52],
1822 swing_door1 = S[40][53], -- no description
1823 swing_door2 = S[40][54], -- no description
1824 shower = S[40][55], -- no description
1825 auto_autopsy = S[40][56],
1826 bookcase = S[40][57],
1827 video_game = S[40][58],
1828 entrance_left = S[40][59], -- no description
1829 entrance_right = S[40][60], -- no description
1830 skeleton = S[40][61],
1831 comfortable_chair = S[40][62], -- no description
1832 },
1833 }
1834
1835 -- 34: staff titles, inserted further above
1836
1837 confirmation = {
1838 quit = S[35][1],
1839 return_to_blueprint = S[35][2],
1840 replace_machine = S[35][3], -- %s (machine name) %d (price)
1841 overwrite_save = S[35][4],
1842 delete_room = S[35][5],
1843 sack_staff = S[35][6],
1844 restart_level = S[35][7], -- missing in some TH versions
1845 }
1846
1847 bank_manager = {
1848 hospital_value = S[36][1],
1849 balance = S[36][2],
1850 current_loan = S[36][3],
1851 interest_payment = S[36][4],
1852 insurance_owed = S[36][5],
1853 inflation_rate = S[36][6],
1854 interest_rate = S[36][7],
1855 statistics_page = {
1856 date = S[37][1],
1857 details = S[37][2],
1858 money_out = S[37][3],
1859 money_in = S[37][4],
1860 balance = S[37][5],
1861 current_balance = S[37][6],
1862 },
1863 }
1864
1865 -- Lose movie headlines
1866 newspaper = {
1867 -- LOSE1.SMK (Frankenstein)
1868 { S[38][ 1], S[38][ 2], S[38][ 3], S[38][ 4], S[38][ 5] },
1869
1870 -- LOSE2.SMK (Drunk/party mess)
1871 { S[38][ 7], S[38][ 8], S[38][ 9], S[38][10], S[38][11], S[38][12] },
1872
1873 -- LOSE3.SMK (closet with nurse)
1874 { S[38][14], S[38][15], S[38][16], S[38][17] },
1875
1876 -- LOSE4.SMK (sports car)
1877 { S[38][19], S[38][20], S[38][21], S[38][22] },
1878
1879 -- LOSE5.SMK (grave digging)
1880 { S[38][24], S[38][25], S[38][26], S[38][27], S[38][28], S[38][29] },
1881
1882 -- Unused headlines
1883 -- { S[38][31], S[38][32], S[38][33], S[38][34] },
1884
1885 -- LOSE6.SMK (toilet with magazine)
1886 { S[38][36], S[38][37], S[38][38], S[38][39], S[38][40] },
1887 }
1888
1889 -- 39: letters
1890 -- Letters are organized in another level, just like menu strings.
1891 local L = {{""}}
1892 do
1893 local i = 1
1894 local section = 1
1895 while true do
1896 local s = S[39][i]
1897 if s == "." then
1898 section = section + 1
1899 L[section] = {}
1900 L[section][1] = ""
1901 elseif s == ".." then
1902 L[section] = nil
1903 break
1904 else
1905 L[section][#L[section]] = L[section][#L[section]] .. s
1906 if s:find("//") then
1907 L[section][#L[section] + 1] = ""
1908 end
1909 end
1910 i = i + 1
1911 end
1912 end
1913
1914 letter = L
1915 -- table of 12 tables (one for each level)
1916 -- each sub-table contains a varying number of strings that form the letter together
1917
1918 -- 40: object tooltips, inserted further above
1919 -- 41: load menu, inserted further above
1920
1921 vip_names = {
1922 health_minister = S[42][1],
1923 S[42][ 2], -- the rest is better organized in an array.
1924 S[42][ 3],
1925 S[42][ 4],
1926 S[42][ 5],
1927 S[42][ 6],
1928 S[42][ 7],
1929 S[42][ 8],
1930 S[42][ 9],
1931 S[42][10],
1932 S[42][11],
1933 }
1934
1935 -- 43: credits
1936 -- Maybe we could include them somewhere as a tribute. Maybe not.
1937 -- Translators, please do not bother translating these...
1938 original_credits = S[43]
1939
1940 -- 44: faxes and disease descriptions (cause/symptoms/cure)
1941 -- diseases were already covered above
1942 fax = {
1943 debug_fax = {
1944 -- never seen this, must be a debug option of original TH
1945 -- TODO: make this nicer if we ever want to make use of it
1946 close_text = S[44][ 1],
1947 text1 = S[44][ 3], -- %d
1948 text2 = S[44][ 4], -- %d %d
1949 text3 = S[44][ 5], -- %d %d %d %d %d
1950 text4 = S[44][ 6], -- %d %d %d %d %d
1951 text5 = S[44][ 7], -- %d %d %d %d %d
1952 text6 = S[44][ 8],
1953 text7 = S[44][ 9], -- %d %d %d
1954 text8 = S[44][10], -- %d %d %d
1955 text9 = S[44][11], -- %d %d %d %d
1956 text10 = S[44][12], -- %d %d %d %d
1957 text11 = S[44][13], -- %d
1958 },
1959
1960 emergency = {
1961 choices = {
1962 accept = S[44][15],
1963 refuse = S[44][16],
1964 },
1965
1966 location = S[44][18],
1967 num_disease = S[44][19],
1968 cure_possible_drug_name_efficiency = S[44][20],
1969 cure_possible = S[44][21],
1970 cure_not_possible_build_and_employ = S[44][22],
1971 cure_not_possible_build = S[44][23],
1972 cure_not_possible_employ = S[44][24],
1973 cure_not_possible = S[44][25],
1974 bonus = S[44][26],
1975
1976 locations = {
1977 S[44][27],
1978 S[44][28],
1979 S[44][29],
1980 S[44][30],
1981 S[44][31],
1982 S[44][32],
1983 S[44][33],
1984 S[44][34],
1985 S[44][35],
1986 },
1987 },
1988
1989 emergency_result = {
1990 close_text = S[44][38],
1991
1992 earned_money = S[44][40],
1993 saved_people = S[44][41],
1994 },
1995
1996 disease_discovered_patient_choice = {
1997 choices = {
1998 send_home = S[44][43],
1999 wait = S[44][44],
2000 research = S[44][45],
2001 },
2002
2003 need_to_build_and_employ = S[44][47],
2004 need_to_build = S[44][48],
2005 need_to_employ = S[44][49],
2006 can_not_cure = S[44][50],
2007
2008 disease_name = S[44][51],
2009 what_to_do_question = S[44][52],
2010 guessed_percentage_name = S[44][53],
2011 },
2012
2013 disease_discovered = {
2014 close_text = S[44][55],
2015
2016 can_cure = S[44][57],
2017 need_to_build_and_employ = S[44][58],
2018 need_to_build = S[44][59],
2019 need_to_employ = S[44][60],
2020
2021 discovered_name = S[44][61],
2022 -- After this come cause, symptoms and cure of disease
2023 },
2024
2025 epidemic = {
2026 choices = {
2027 declare = S[44][165],
2028 cover_up = S[44][166],
2029 },
2030
2031 disease_name = S[44][168],
2032 declare_explanation_fine = S[44][169],
2033 cover_up_explanation_1 = S[44][170],
2034 cover_up_explanation_2 = S[44][171],
2035 },
2036
2037 epidemic_result = {
2038 close_text = S[44][173],
2039
2040 failed = {
2041 part_1_name = S[44][175],
2042 part_2 = S[44][176],
2043 },
2044 succeeded = {
2045 part_1_name = S[44][177],
2046 part_2 = S[44][178],
2047 },
2048
2049 compensation_amount = S[44][179],
2050 fine_amount = S[44][180],
2051 rep_loss_fine_amount = S[44][181],
2052 hospital_evacuated = S[44][182],
2053 },
2054
2055 vip_visit_query = {
2056 choices = {
2057 invite = S[44][184],
2058 refuse = S[44][185],
2059 },
2060
2061 vip_name = S[44][187],
2062 },
2063
2064 vip_visit_result = {
2065 close_text = S[44][189],
2066
2067 telegram = S[44][191],
2068 vip_remarked_name = S[44][192],
2069
2070 cash_grant = S[44][193],
2071 rep_boost = S[44][194],
2072 rep_loss = S[44][195],
2073
2074 remarks = { -- Ordered from best to worst
2075 [1] = S[44][196],
2076 [2] = S[44][197],
2077 [3] = S[44][198],
2078 [4] = S[44][199],
2079 [5] = S[44][200],
2080 [6] = S[44][201],
2081 [7] = S[44][202],
2082 [8] = S[44][203],
2083 [9] = S[44][204],
2084 [10] = S[44][205],
2085 [11] = S[44][206],
2086 [12] = S[44][207],
2087 [13] = S[44][208],
2088 [14] = S[44][209],
2089 [15] = S[44][210],
2090 },
2091 },
2092
2093 diagnosis_failed = {
2094 choices = {
2095 send_home = S[44][212],
2096 take_chance = S[44][213],
2097 wait = S[44][214],
2098 },
2099
2100 situation = S[44][216],
2101 what_to_do_question = S[44][217],
2102 partial_diagnosis_percentage_name = S[44][218],
2103 },
2104 }
2105
2106 -- 45: strange texts, maybe linked to some cheat codes..
2107 -- Seems we won't need them.
2108
2109 staff_descriptions.misc = S[46]
2110 staff_descriptions.good = S[47]
2111 staff_descriptions.bad = S[48]
2112
2113 -- remove last string from each category (".")
2114 staff_descriptions.misc[38] = nil
2115 staff_descriptions.good[16] = nil
2116 staff_descriptions.bad[16] = nil
2117
2118 queue_window = {
2119 num_in_queue = S[49][1],
2120 num_expected = S[49][2],
2121 num_entered = S[49][3],
2122 max_queue_size = S[49][4],
2123 }
2124
2125 -- TODO: continue here with section 50
2126 -- ...
2127
2128 -- 54: Introduction texts to each level
2129 local T = {}
2130 local level_index = 0
2131 local text_index = 2
2132 while true do
2133 local text = S[54][text_index]
2134 if text == "." then
2135 level_index = level_index + 1
2136 T["level" .. level_index] = ""
2137 elseif text == ".." then
2138 break
2139 else
2140 T["level" .. level_index] = T["level" .. level_index] .. " " .. text
2141 end
2142 text_index = text_index + 1
2143 end
2144 introduction_texts = T
2145
2146 -- 55: Award texts inserted in the trophy room section (27)
2147
2148 -- 57: Information texts for the different rooms
2149 local R = {}
2150 -- Note that if an id of a room is changed this will need to be changed too.
2151 -- TODO: A better solution maybe?
2152 local ids = {
2153 "gp",
2154 "psych",
2155 "ward",
2156 "operating_theatre",
2157 "pharmacy",
2158 "cardiogram",
2159 "scanner",
2160 "ultrascan",
2161 "blood_machine",
2162 "x_ray",
2163 "inflation",
2164 "dna_fixer",
2165 "hair_restoration",
2166 "slack_tongue",
2167 "fracture_clinic",
2168 "training",
2169 "electrolysis",
2170 "jelly_vat",
2171 "staff_room",
2172 "tv_room",
2173 "general_diag",
2174 "research",
2175 "toilets",
2176 "decontamination",
2177 "no_room",
2178 }
2179 local id_index = 0
2180 text_index = 14
2181 while true do
2182 local text = S[57][text_index]
2183 if text == "." then
2184 id_index = id_index + 1
2185 R[ids[id_index]] = {""}
2186 elseif text == ".." then
2187 break
2188 else
2189 R[ids[id_index]][#R[ids[id_index]]] = R[ids[id_index]][#R[ids[id_index]]] .. text
2190 if R[ids[id_index]][#R[ids[id_index]]]:sub(-1) == "." then
2191 R[ids[id_index]][#R[ids[id_index]]] = R[ids[id_index]][#R[ids[id_index]]] .. " "
2192 end
2193 if text:find("//") then
2194 R[ids[id_index]][#R[ids[id_index]] + 1] = ""
2195 end
2196 end
2197 text_index = text_index + 1
2198 end
2199 room_descriptions = R
2200
2201 -- 59: The dynamic info bar
2202
2203 dynamic_info = {
2204 patient = {
2205 actions = {
2206 dying = S[59][ 5],
2207 awaiting_decision = S[59][ 6],
2208 queueing_for = S[59][ 7], -- %s
2209 on_my_way_to = S[59][ 8], -- %s
2210 cured = S[59][ 9],
2211 fed_up = S[59][10],
2212 sent_home = S[59][11],
2213 sent_to_other_hospital = S[59][12],
2214 no_diagnoses_available = S[59][16],
2215 no_treatment_available = S[59][17],
2216 waiting_for_diagnosis_rooms = S[59][18],
2217 waiting_for_treatment_rooms = S[59][19],
2218 prices_too_high = S[59][20],
2219 epidemic_sent_home = S[59][25],
2220 epidemic_contagious = S[59][26],
2221 },
2222 diagnosed = S[59][13], -- %s
2223 guessed_diagnosis = S[59][14], -- %s
2224 diagnosis_progress = S[59][15],
2225 emergency = S[59][23], -- %s (disease name)
2226 },
2227 vip = S[59][21],
2228 health_inspector = S[59][22],
2229
2230 staff = {
2231 psychiatrist_abbrev = S[59][27],
2232 actions = {
2233 waiting_for_patient = S[59][24],
2234 wandering = S[59][28],
2235 going_to_repair = S[59][35], -- %s (name of machine)
2236 },
2237 tiredness = S[59][29],
2238 ability = S[59][30], -- unused?
2239 },
2240
2241 object = {
2242 strength = S[59][31], -- %d (max. uses)
2243 times_used = S[59][32], -- %d (times used)
2244 queue_size = S[59][33], -- %d (num of patients)
2245 queue_expected = S[59][34], -- %d (num of patients)
2246 },
2247 }
2248
2249 -- 60: The progress report window
2250
2251 progress_report = {
2252 header = S[60][1],
2253 very_unhappy = S[60][2],
2254 quite_unhappy = S[60][3],
2255 more_drinks_machines = S[60][4],
2256 too_hot = S[60][5],
2257 too_cold = S[60][6],
2258 percentage_pop = S[60][7],
2259 win_criteria = S[60][8],
2260 }
2261
2262 -- 62: Some initial advice from the adviser. These are under the adviser variable above.
2263 -- 63: Two strings inserted in trophy_room, used for trophies.
2264 -- 64: Tooltip for the winning conditions
2265 -- These are inserted in the tooltip section under status.
2266
2267 -- ...