feedback3 WB: 圣聆初雪 S2 freezes the protection point (the blue gate) once it holds 5 snow layers, deploy attributes ignored, and no other tile; the frozen gate shows as an ice diamond instead of her own face (PRTS 备注, community report #32)

This commit is contained in:
sganggs committed 2026-10-04 17:38:07 +08:00
1 parent e53a181ae9
commit 3e9f81fcbf
6 files changed
+83 -17

No files matched your search

+13 -1
View File
@@ -1077,7 +1077,7 @@ const DIAMOND_MAX = 160; // ≈ 16 MB of 160×160 canvases at most (plus t
* @param {{ enemy?: boolean, golden?: boolean }} [o]
*/
export function diamondTexture(key, img, color, o = {}) {
const k = `${key}|${img ? 1 : 0}|${color}|${o.golden ? 1 : 0}`;
const k = `${key}|${img ? 1 : 0}|${color}|${o.golden ? 1 : 0}|${o.ice ? 1 : 0}`;
let tex = _diamonds.get(k);
if (tex) { _diamonds.delete(k); _diamonds.set(k, tex); return tex; }
const P = PIXI();
@@ -1095,6 +1095,18 @@ export function diamondTexture(key, img, color, o = {}) {
const sc = Math.max((S - 20) / img.width, (S - 20) / img.height) * 1.02;
const w = img.width * sc, hh = img.height * sc;
try { c.drawImage(img, h - w / 2, h - hh / 2, w, hh); } catch { /* tainted/broken image */ }
} else if (o.ice) {
// 圣聆初雪's frozen gate (保护目标(冻结状态), PRTS 无头像, no model in the manifest): a snowflake on a frosty field
const g = c.createRadialGradient(h, h, 4, h, h, h);
g.addColorStop(0, 'rgba(205,240,255,0.95)'); g.addColorStop(1, 'rgba(0,0,0,0)');
c.fillStyle = g; c.fillRect(0, 0, S, S);
c.strokeStyle = '#f2fbff'; c.lineWidth = 6; c.lineCap = 'round';
for (let i = 0; i < 6; i++) {
const a = (i * Math.PI) / 3, x1 = h + Math.cos(a) * 34, y1 = h + Math.sin(a) * 34;
c.beginPath(); c.moveTo(h, h); c.lineTo(x1, y1); c.stroke();
const bx = h + Math.cos(a) * 20, by = h + Math.sin(a) * 20;
for (const s of [-1, 1]) { c.beginPath(); c.moveTo(bx, by); c.lineTo(bx + Math.cos(a + s * 0.8) * 11, by + Math.sin(a + s * 0.8) * 11); c.stroke(); }
}
} else {
// procedural glyph (e.g. 心烛 enemy_5601_entlec has no art anywhere)
const g = c.createRadialGradient(h, h, 4, h, h, h);