MCPcopy Create free account
hub / github.com/EasyRPG/Player / IsRowAdjusted

Function IsRowAdjusted

src/algo.cpp:37–44  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

35namespace Algo {
36
37bool IsRowAdjusted(lcf::rpg::SaveActor::RowType row, lcf::rpg::System::BattleCondition cond, bool offense) {
38 return (cond == lcf::rpg::System::BattleCondition_surround
39 || (row != static_cast<int>(offense)
40 && (cond == lcf::rpg::System::BattleCondition_none || cond == lcf::rpg::System::BattleCondition_initiative))
41 || (row == static_cast<int>(offense)
42 && (cond == lcf::rpg::System::BattleCondition_back))
43 );
44}
45
46bool IsRowAdjusted(const Game_Battler& battler, lcf::rpg::System::BattleCondition cond, bool offense, bool allow_enemy) {
47 lcf::rpg::SaveActor::RowType row = lcf::rpg::SaveActor::RowType_front;

Callers 6

CalcNormalAttackToHitFunction · 0.85
CalcSkillToHitFunction · 0.85
CalcNormalAttackEffectFunction · 0.85
CalcSkillEffectFunction · 0.85
testRowAdjFunction · 0.85
testRowAdjBattlerFunction · 0.85

Calls 2

GetBattleRowMethod · 0.80
GetTypeMethod · 0.45

Tested by

no test coverage detected