Home
last modified time | relevance | path

Searched refs:inflict_pct (Results 1 – 1 of 1) sorted by relevance

/dports/games/easyrpg-player/Player-0.7.0/src/
H A Dgame_battlealgorithm.cpp676 int inflict_pct = 0; in vExecute() local
682 inflict_pct = std::max(inflict_pct, static_cast<int>(w->state_chance)); in vExecute()
696 } else if (inflict_pct > 0) { in vExecute()
697 inflict_pct = inflict_pct * target.GetStateProbability(state_id) / 100; in vExecute()
698 if (Rand::PercentChance(inflict_pct)) { in vExecute()
704 inflict_pct = 0; in vExecute()