Files

64 lines
1.8 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.
# MercanRey4.js — predictMove() (satır 169)
[← MercanRey4.js](index.md) · [← Master](../../wiki.md)
Parça 1/2 · [sonraki](predictMove-2.md)
```javascript
function predictMove(caster, target, profile)
{
var hpRatio = target.getMaxHp() <= 0 ? 1 : target.getHp() / target.getMaxHp();
var speed = getMotionSpeed(target);
var distance = Math.sqrt(distanceSq(caster.getPosition(), target.getPosition()));
var direction = getDirectionName(target);
if (getGameMode(target) === 3 || hasTag(profile, "gm3"))
{
return {
next: "gm3/yok olma penceresi acacak",
answer: "cikis noktasini degil, geri donecegi aciyi tut",
certainty: 100
};
}
if (hasTag(profile, "spine"))
{
return {
next: "spine gun ile baglama deneyecek",
answer: "yan aciya kir, atis hattini bos bir hedefe yedir",
certainty: 100
};
}
if (hasTag(profile, "circle") || hasTag(profile, "red_circle"))
{
return {
next: "daire kurup cikisi kapatacak",
answer: "merkezden kay, patlama zamanini say",
certainty: 100
};
}
if (hasTag(profile, "dimension") || hasTag(profile, "black_dimension") || hasTag(profile, "lifeless_dimension"))
{
return {
next: "boyut/evren kapisi acacak",
answer: "kapinin eksenini boz, temas olmadan mesafeyi koru",
certainty: 100
};
}
if (hasTag(profile, "digital"))
{
return {
next: "data/glitch uzerinden sistemi bozacak",
answer: "playerdata temelli hamleyi bekle, item temasini azalt",
certainty: 100
};
}
if (hasTag(profile, "mind"))
{
return {
```