Files

65 lines
1.5 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.
# MercanRey6.js — classifyCurrentAction() (satır 186)
[← MercanRey6.js](index.md) · [← Master](../../wiki.md)
```javascript
function classifyCurrentAction(entity, profile)
{
if (entity == null)
{
return "son bilinen karar: " + String(profile.decision || "belirsiz");
}
var hpRatio = entity.getMaxHp() <= 0 ? 1 : entity.getHp() / entity.getMaxHp();
var motion = entity.getMotion();
var speed = Math.sqrt(motion.x * motion.x + motion.z * motion.z);
if (getGameMode(entity) === 3 || hasTag(profile, "gm3"))
{
return "gm3/yok olma penceresi acik veya acilmaya hazir";
}
if (hasTag(profile, "spine"))
{
return "spine/baglama acisi ariyor";
}
if (hasTag(profile, "dimension"))
{
return "boyut/evren kapisi ihtimali yuksek";
}
if (hasTag(profile, "digital"))
{
return "data/glitch temelli hamle hazirliyor";
}
if (hasTag(profile, "mind"))
{
return "zihin/irade baskisi kurmaya yakin";
}
if (hpRatio < 0.35)
{
return "su an kacis/korunma ihtimali yuksek";
}
if (entity.isSprinting() || speed > 0.18)
{
return "su an agresif yer degistirme yapiyor";
}
if (isFlying(entity))
{
return "dikey aci ve ucusla pozisyon aliyor";
}
if (entity.isSneaking())
{
return "su an gizlenme veya pusu ritmine girdi";
}
return "su an tepki okuyup karar bekliyor";
}
```