feat: start enemy↔player arcs from the top of a mini (t1131)
The flight leaves the top of the miniature and curves up and over the field, instead of departing from the inner side edge.
@@ -1477,10 +1477,8 @@ function miniViewportCenter (botId)
1477
1477
var plan = app.miniLayout;
1478
1478
if (plan && plan.mode === 'sides')
1479
1479
{
1480
var mid = plan.fieldX + plan.fieldW / 2;
1481
if (rect.left + rect.width / 2 < mid)
1482
{ return { x: rect.right, y: rect.top + rect.height / 2 }; }
1483
return { x: rect.left, y: rect.top + rect.height / 2 };
1480
// Leave from the top of the mini, then the arc goes up and over (t1131).
1481
return { x: rect.left + rect.width / 2, y: rect.top + 4 };
1484
1482
}
1485
1483
return { x: rect.left + rect.width / 2, y: rect.bottom };
1486
1484
}
@@ -1477,10 +1477,8 @@ function miniViewportCenter (botId)1477
var plan = app.miniLayout;1477
var plan = app.miniLayout;1478
if (plan && plan.mode === 'sides')1478
if (plan && plan.mode === 'sides')1479
{1479
{1480
var mid = plan.fieldX + plan.fieldW / 2;1480
// Leave from the top of the mini, then the arc goes up and over (t1131).1481
if (rect.left + rect.width / 2 < mid)1481
return { x: rect.left + rect.width / 2, y: rect.top + 4 };1482
{ return { x: rect.right, y: rect.top + rect.height / 2 }; }1483
return { x: rect.left, y: rect.top + rect.height / 2 };1484
}1482
}1485
return { x: rect.left + rect.width / 2, y: rect.bottom };1483
return { x: rect.left + rect.width / 2, y: rect.bottom };1486
}1484
}