I split the block into two parts and at the end added a check based on the variable that is in each block:
https://github.com/tx00100xt/SE1-TSE-Sequel/commit/e1c63cc84f384cd2e53f797f49604...
Almost all warnings about caching have been fixed:
https://github.com/tx00100xt/SE1-TSE-Sequel/commit/ffd96d48deea2329b72f722ff9a16...
https://github.com/tx00100xt/SE1-TSE-Sequel/commit/16bbe5e1ac40aa1eb5d63aeb2f787...
Some icons were put from the Awakening mod (from SeriousAlexej)
They fit well: Icons ftom Awakening mod