Esempio n. 1
0
int monster::get_dodge()
{
 if (has_effect("downed"))
  return 0;
 int ret = type->sk_dodge;
 if (has_effect("beartrap"))
  ret /= 2;
 if (moves <= 0 - 100 - type->speed)
  ret = rng(0, ret);
 return ret + get_dodge_bonus();
}
Esempio n. 2
0
int monster::get_dodge() const
{
    if (has_effect("downed")) {
        return 0;
    }
    int ret = type->sk_dodge;
    if (has_effect("beartrap") || has_effect("tied")) {
        ret /= 2;
    }
    if (moves <= 0 - 100 - get_speed()) {
        ret = rng(0, ret);
    }
    return ret + get_dodge_bonus();
}
float Creature::get_dodge() const
{
    return get_dodge_base() + get_dodge_bonus();
}
Esempio n. 4
0
int Creature::get_dodge()
{
    return get_dodge_base() + get_dodge_bonus();
}