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(); }
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(); }
int Creature::get_dodge() { return get_dodge_base() + get_dodge_bonus(); }