--
This commit is contained in:
parent
5ed977788c
commit
f500279abd
93 changed files with 1893 additions and 1198 deletions
|
|
@ -491,6 +491,43 @@
|
|||
|
||||
|
||||
ctx.restore();
|
||||
|
||||
if (this.isTarinaiChampion) {
|
||||
ctx.save();
|
||||
ctx.globalAlpha = nestHideAlpha;
|
||||
const crownW = Math.max(24, this.radius * 1.34);
|
||||
const crownH = Math.max(14, this.radius * 0.58);
|
||||
const cx = this.x;
|
||||
const cy = this.y - drawH * 0.64 - crownH * 0.55;
|
||||
if (showDecor) {
|
||||
ctx.shadowColor = "rgba(244, 184, 42, 0.78)";
|
||||
ctx.shadowBlur = 12;
|
||||
}
|
||||
ctx.fillStyle = "rgba(248, 201, 55, 0.96)";
|
||||
ctx.strokeStyle = "rgba(116, 78, 18, 0.92)";
|
||||
ctx.lineWidth = Math.max(1.4, crownH * 0.10);
|
||||
ctx.beginPath();
|
||||
ctx.moveTo(cx - crownW * 0.48, cy + crownH * 0.26);
|
||||
ctx.lineTo(cx - crownW * 0.38, cy - crownH * 0.22);
|
||||
ctx.lineTo(cx - crownW * 0.17, cy + crownH * 0.05);
|
||||
ctx.lineTo(cx, cy - crownH * 0.42);
|
||||
ctx.lineTo(cx + crownW * 0.17, cy + crownH * 0.05);
|
||||
ctx.lineTo(cx + crownW * 0.38, cy - crownH * 0.22);
|
||||
ctx.lineTo(cx + crownW * 0.48, cy + crownH * 0.26);
|
||||
ctx.closePath();
|
||||
ctx.fill();
|
||||
ctx.stroke();
|
||||
ctx.shadowBlur = 0;
|
||||
ctx.fillStyle = "rgba(255, 243, 154, 0.92)";
|
||||
ctx.fillRect(cx - crownW * 0.38, cy + crownH * 0.16, crownW * 0.76, crownH * 0.16);
|
||||
ctx.fillStyle = "rgba(151, 88, 38, 0.82)";
|
||||
for (const px of [-0.28, 0, 0.28]) {
|
||||
ctx.beginPath();
|
||||
ctx.arc(cx + crownW * px, cy + crownH * 0.02, Math.max(1.4, crownH * 0.075), 0, Math.PI * 2);
|
||||
ctx.fill();
|
||||
}
|
||||
ctx.restore();
|
||||
}
|
||||
|
||||
if (this.favorite) {
|
||||
ctx.save();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue