25 lines
823 B
Markdown
25 lines
823 B
Markdown
# MercanRey2.js — habitSentence() (satır 538)
|
||
|
||
[← MercanRey2.js](index.md) · [← Master](../../wiki.md)
|
||
|
||
```javascript
|
||
function habitSentence(state)
|
||
{
|
||
var habits = [];
|
||
|
||
if (state.gm3Samples > 0) habits.push("gm3/yok olma penceresi kullaniyor");
|
||
if (state.flyingSamples > 0) habits.push("ucusla aci degistiriyor");
|
||
if (state.sprintSamples > state.samples / 2) habits.push("hizli baski kuruyor");
|
||
if (state.sneakSamples > 0) habits.push("saklanarak pusu deniyor");
|
||
if (state.maxSpeed < 0.05) habits.push("yerinde bekleyip tepki okuyor");
|
||
if (state.lowHpSamples > 0) habits.push("can dusunce geri cekiliyor");
|
||
|
||
if (habits.length === 0)
|
||
{
|
||
habits.push("once ortam okuyor, sonra item/guc penceresi ariyor");
|
||
}
|
||
|
||
return habits.join(", ");
|
||
}
|
||
```
|