Files

45 lines
1.9 KiB
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# gojo_skills.js — cast_purple() (satır 463)
[← gojo_skills.js](index.md) · [← Master](../../wiki.md)
Parça 10/14 · [önceki](cast_purple-9.md) · [sonraki](cast_purple-11.md)
```javascript
var ryp = cy - Math.sin(t * 0.25 + offR) * (radius * 0.4);
var rzp = cz + Math.sin(angle + offR) * radius;
orbSprite(morphRed, rxp, ryp, rzp, 3, angle * 57.3);
spawnFx("reddust", rxp, cy, rzp, 6, 0.1, 0.1, 0.1, 0.0);
}
// === DEV GRAVITY WELL HALKASI ===
var gRad = 9.0 - progress * 4.5;
for (var g = 0; g < 12; g++) {
var ga = (g / 12.0) * Math.PI * 2 + t * 0.18;
world.displayMorph(morphRing, 2,
cx + (rightX * Math.cos(ga) + upX * Math.sin(ga)) * gRad,
cy + (upY * Math.sin(ga)) * gRad,
cz + (rightZ * Math.cos(ga) + upZ * Math.sin(ga)) * gRad,
ga * 57.3, 0, 80, null);
}
// === HEDEF GRAVITY WELL ===
if (hasTarget && target.isLivingBase()) {
var tPos = target.getPosition();
var tdx = cx - tPos.x, tdy = cy - (tPos.y + 0.9), tdz = cz - tPos.z;
var tDist = Math.sqrt(tdx*tdx + tdy*tdy + tdz*tdz);
if (tDist > 0.1) target.addMotion(tdx * 0.22, tdy * 0.22 + 0.08, tdz * 0.22);
target.setFallDistance(0);
spawnFx("witchMagic", tPos.x, tPos.y + 1, tPos.z, 10, 0.3, 0.3, 0.3, 0.03);
}
// === BÜYÜYEN ÇEKİRDEK KÜRE (son %40) ===
if (t > CHARGE_TICKS * 0.6) {
var coreR = 1.0 + (progress - 0.6) * 7.0;
drawSphere(cx, cy, cz, coreR, morphGlow, 2, t * 0.3, t * 30, t * 20);
orbSprite(morphPurple, cx, cy, cz, 2, t * 18);
spawnFx("dragonbreath", cx, cy, cz, 30, 0.4, 0.4, 0.4, 0.02);
}
// === ÇATIRTMA ===
```