Three runs (Euro Run, Coast to Coast, Pacific Rim) on the puzzle machinery: briefs add sites, raise demand, make sites gold, ask for rings or latency caps, or close a city; earlier builds stay paid for, and the backhoe review cuts every trench and cable in turn. By tkjaer, from seriesoftubes-architect.
8 lines
453 B
JavaScript
8 lines
453 B
JavaScript
// Architect runs (prototype). Named pz* like the puzzle actions, so a puzzle lets them through.
|
|
Object.assign(ACT,{
|
|
pzArStart:({id})=>{const r=arRunDef(id);if(r)arBegin(r);},
|
|
pzArGo:()=>{if(arOn())arShowStart();},
|
|
pzArSkip:()=>{if(arOn())arShowSkip();},
|
|
pzArNext:()=>{if(arOn())arNext();},
|
|
pzArAll:()=>{if(!arOn())return;UI.arAll=!UI.arAll;if(!UI.arAll&&UI.sel&&UI.sel.type==='city'&&!arKind(UI.sel.id))UI.sel=null;sfx('click');renderAll();},
|
|
});
|