@@ -115,7 +115,8 @@ declare {
},
menu_sprites = {
in_game = false
in_game = false,
last_location = false
}
include "tutorial"
@@ -153,11 +154,13 @@ game.ondecor = function(s, name, press,
end;
game.afterwalk = function()
dprint(from().nam, '->', here().nam);
if from().themeDispose then
from():themeDispose();
if last_location then
dprint(last_location.nam, '->', here().nam);
if last_location.themeDispose then
last_location:themeDispose();
local theme = std.call(here(), 'theme');
@@ -173,6 +176,8 @@ game.afterwalk = function()
if here().themeInit then
here():themeInit();
last_location = here();
function cat_list(list, sep)
@@ -461,7 +466,7 @@ room {
disp = '';
theme = 'menu';
themeInit = function(s)
init_menu(true, {'back'});
themeDispose = function(s)
D {'start'};
@@ -1648,7 +1653,7 @@ function start(load)
'kbc-s'
};
local bpi = rnd(#computer_parts);
--[[local bpi = rnd(#computer_parts);
_(computer_parts[bpi]).status = false;
computer_parts[bpi] = computer_parts[#computer_parts];
computer_parts[#computer_parts] = nil;
@@ -1658,6 +1663,8 @@ function start(load)
--]]
-- Debug
power_on = true;
walk('tower_level_4_room_2');
Status change: