function RoomManager._updateStatusValues()local y=0 local J=0 for K,l in pairs(rooms:getAll())do if l:isBreached()then y=y+1 else J=J+1 end end roomsBreached.Value=y roomsSecure.Value=J end
--[[
	Updates the status values depending on the amount of breached or non breached rooms.
]]
function RoomManager._updateStatusValues()
	local breachedRooms = 0
	local secureRooms = 0

	for _, room in pairs(rooms:getAll()) do
		if room:isBreached() then
			breachedRooms = breachedRooms + 1
		else
			secureRooms = secureRooms + 1
		end
	end

	roomsBreached.Value = breachedRooms
	roomsSecure.Value = secureRooms
end
