Puzzles behind the Puzzles door: merge v2-puzzles onto the ruleset

Puzzles run on the puzzle preset (clock off); the temporary title button is gone and the door opens the puzzle list.
This commit is contained in:
Frederic Jung 2026-10-28 16:39:05 +01:00
commit 8df1b82a2e
No known key found for this signature in database
29 changed files with 1284 additions and 24 deletions

View file

@ -1,6 +1,7 @@
function renderHint(){
const hn=$('hint');if(!S||UI.hintOff||(S.tut!==undefined&&S.tut!==null)||(innerWidth<760&&(UI.sel||UI.leftOpen)&&!(UI.drag&&UI.drag.mode==='link'))){hn.hidden=true;return;}
let t='';
if(pzOn()){t=UI.drag&&UI.drag.mode==='link'?(UI.snap?tr('hint.release_to_plan_a_link'):tr('hint.drag_onto_another_city')):!Object.keys(S.pops).length?tr('puzzles.tap_a_goal_city_to_open'):!S.links.length?tr('puzzles.drag_from_a_pink_pop_to'):'';hn.textContent=t;hn.hidden=!t;return;}
if(UI.drag&&UI.drag.mode==='link')t=UI.snap?tr('hint.release_to_plan_a_link'):tr('hint.drag_onto_another_city');
else if(!S.links.length&&S.done.tr)t=tr('hint.tip_drag_from_your_pink_router');
else if(!S.done.bb)t=tr('hint.tap_your_city_then_launch_broadband');