|
@@ -58,26 +58,31 @@ global {
|
|
|
iraaphaanotrr_temple_found = false;
|
|
|
dypatreanotrr_temple_found = false;
|
|
|
venaedanotrr_temple_found = false;
|
|
|
zayslanotrr_temple_found = false;
|
|
|
deep_temple_found = false;
|
|
|
lseryanotrr_found = false;
|
|
|
|
|
|
rel_phaetlarr = 0;
|
|
|
rel_walter = 0;
|
|
|
rel_learr = 0;
|
|
|
rel_anna = 0;
|
|
|
rel_jack = 0;
|
|
|
|
|
|
dt_code = {};
|
|
|
dt_buttons = {};
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
pl = player {
|
|
|
nam = "player";
|
|
|
disp = "Дэвид Дрейк";
|
|
|
disp2 = "Дрейка";
|
|
|
disp3 = "Дрейку";
|
|
|
where = 'port';
|
|
|
hp = 10;
|
|
|
obj = {'item_umbrella', 'item_charts', 'item_note_1', 'item_money',
|
|
|
};
|
|
|
-- party array. Should be empty on start
|
|
|
party = {--[["learr", "radcliffe", "phaetlarr", "wright"]]};
|
|
|
companion = nil;
|
|
@@ -136,24 +141,37 @@ end;
|
|
|
game.use = function(s)
|
|
|
return game_use_phrases[rnd(#game_use_phrases)];
|
|
|
end;
|
|
|
game.inv = "INV: Если вы видите это сообщение - это баг. ";
|
|
|
|
|
|
require "dbg"
|
|
|
|
|
|
function init()
|
|
|
---modules init
|
|
|
leviathan_init();
|
|
|
warehouse18_init();
|
|
|
warehouse32_init();
|
|
|
|
|
|
local nums = {1,2,3,4,5,6};
|
|
|
for i = 1, 4 do
|
|
|
local index = rnd(#nums);
|
|
|
table.insert(dt_code, nums[index]);
|
|
|
table.remove(nums, index);
|
|
|
end;
|
|
|
nums = {1,2,3,4,5,6};
|
|
|
for i = 1, 3 do
|
|
|
local index = rnd(#nums);
|
|
|
table.insert(dt_buttons, nums[index]);
|
|
|
table.remove(nums, index);
|
|
|
end;
|
|
|
---game init
|
|
|
pl.where = intro;
|
|
|
---debug
|
|
|
--[[
|
|
|
---IYH
|
|
|
lifeon(char_learr);
|
|
|
lifeon(char_wright);
|
|
|
lifeon(char_radcliffe);
|
|
|
lifeon(char_anna);
|
|
|
lifeon(char_aikerjarr_lev);
|
|
|
pl.party = {'learr', 'wright', 'radcliffe', 'anna'};
|
|
|
atlantis_found = true;
|
|
@@ -212,25 +230,25 @@ function init()
|
|
|
put(item_ducttape, pl);
|
|
|
pl.where = "leviathan_airlock";
|
|
|
atlantis_found = true;
|
|
|
move(submarine_leviathan, "atl_aqua_leviathan_dock");
|
|
|
submarine_leviathan:enable();
|
|
|
|
|
|
--ven_temple_l1.position = "66";
|
|
|
put(item_ven_tablet, pl);
|
|
|
put(item_harpoon, pl);
|
|
|
put(item_colt, pl);
|
|
|
--ven_shark.position = "55";
|
|
|
--pl.where = "za_plaetlarr_fight";
|
|
|
pl.where = "za_temple_back_entrance";
|
|
|
pl.where = "dt_fight";
|
|
|
move(submarine_leviathan, "za_temple_back_entrance_foot");
|
|
|
char_anna.follow = true;
|
|
|
--pl.where = "ven_chest_look";
|
|
|
--move(ven_shark, "ven_temple_l1");
|
|
|
|
|
|
--put(item_suit, pl);
|
|
|
|
|
|
-- pl.where = warehouse_32;
|
|
|
-- pl.where = w32_mgr;
|
|
|
|
|
|
-- put(item_cogs, pl);
|
|
|
-- put(item_pump_details, pl);
|