/usr/share/games/instead/stead/wroom.lua is in instead-data 1.9.1-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 | stead.wroom_enter = function(self, ...)
	local w = self.where
	if type(w) ~= 'table' then
		w = stead.call(self, 'where')
	end
	local r, v = stead.walk(w);
	if v ~= false then
		self._toggle = true
	end
	return r, v
end
stead.wroom_save = function(self, name, h, need)
	if need then
		local a = stead.tostring(self.oldname);
		local b = stead.tostring(self.newname);
		local c = stead.tostring(self.where);
		if a == nil or b == nil or c == nil then
			error ("Can not save wroom "..name.."\nFunctions can not be saved, use code [[ ]]");
		end
		local t = stead.string.format("%s = wroom(%s, %s, %s);\n",
			name, a, b, c);
		h:write(t);
	end
	stead.savemembers(h, self, name, false);
end
function wroom(a, b, c)
	local v = room { vroom_type = true, nam = a, where = c, enter = stead.wroom_enter, save = stead.wroom_save };
	v.newname = b;
	v.oldname = a;
	v._toggle = false
	if c == nil then -- only two parameters
		v.newname = nil
		v.where = b
	end
	v.nam = function(s)
		if s._toggle and s.newname then
			return stead.call(s, 'newname')
		else
			return stead.call(s, 'oldname');
		end
	end
	return v
end
 |