Home
last modified time | relevance | path

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

/dports/games/easyrpg-player/Player-0.7.0/src/
H A Dwindow_actorsp.cpp37 if (battler.GetMaxSp() != 0 && battler.GetSp() <= battler.GetMaxSp() / 4) { in SetBattler()
52 …contents->TextDraw(cx + digits * 6, 2, Font::ColorDefault, std::to_string(battler.GetMaxSp()), Tex… in SetBattler()
H A Dgame_enemy.cpp44 sp = GetMaxSp(); in Game_Enemy()
109 sp = Utils::Clamp(_sp, 0, GetMaxSp()); in SetSp()
H A Dautobattle.cpp86 ? Algo::CalcSkillCost(skill, source.GetMaxSp(), false) in CalcSkillCostAutoBattle()
94 const double src_max_sp = source.GetMaxSp(); in CalcSkillHealAutoBattleTargetRank()
136 const double src_max_sp = source.GetMaxSp(); in CalcSkillDmgAutoBattleTargetRank()
242 const double src_max_sp = source.GetMaxSp(); in CalcNormalAttackAutoBattleTargetRank()
H A Dgame_battler.cpp158 int sp_change = item->recover_sp_rate * GetMaxSp() / 100 + item->recover_sp; in UseItem()
317 return Algo::CalcSkillCost(*skill, GetMaxSp(), false); in CalculateSkillCost()
422 int sp = state.sp_change_val + (GetMaxSp() * state.sp_change_max / 100); in ApplyConditions()
496 int Game_Battler::GetMaxSp() const { in GetMaxSp() function in Game_Battler
501 return GetMaxSp() == GetSp(); in HasFullSp()
H A Dwindow_base.cpp199 int color = GetValueFontColor(actor.GetSp(), actor.GetMaxSp(), false); in DrawActorSp()
212 …contents->TextDraw(cx + dx, cy, Font::ColorDefault, std::to_string(actor.GetMaxSp()), Text::AlignR… in DrawActorSp()
338 …contents->TextDraw(cx, cy, GetValueFontColor(actor.GetSp(), actor.GetMaxSp(), false), std::to_stri… in DrawActorSpValue()
H A Dwindow_actorstatus.cpp62 max = actor->GetMaxSp(); in DrawStatus()
H A Dgame_actor.cpp111 SetSp(GetMaxSp()); in Game_Actor()
255 return Algo::CalcSkillCost(*skill, GetMaxSp(), HasHalfSpCost()); in CalculateSkillCost()
395 SetSp(GetMaxSp()); in FullHeal()
1164 data.current_sp = Utils::Clamp(sp, 0, GetMaxSp()); in SetSp()
H A Dwindow_battlestatus.cpp161 DrawGaugeSystem2(fill_x, y + 16, actor->GetSp(), actor->GetMaxSp(), 1); in RefreshGauge()
H A Dgame_battler.h304 virtual int GetMaxSp() const;
H A Dgame_party.cpp129 actor->SetSp(actor->GetMaxSp()); in SetupBattleTest()
671 total_sp += a->GetMaxSp(); in GetFatigue()
H A Denemyai.cpp252 int sp_percent = source.GetSp() * 100 / source.GetMaxSp(); in IsActionValid()
H A Dgame_battlealgorithm.cpp950 const auto max_sp = target->GetMaxSp(); in vExecute()
1252 SetAffectedSp(item.recover_sp_rate * GetTarget()->GetMaxSp() / 100 + item.recover_sp); in vExecute()
H A Dgame_interpreter.cpp1118 value = actor->GetMaxSp(); in CommandControlVariables()
1298 value = (*Main_Data::game_enemyparty)[com.parameters[5]].GetMaxSp(); in CommandControlVariables()
/dports/games/easyrpg-player/Player-0.7.0/tests/
H A Dautobattle.cpp21 actor.SetSp(actor.GetMaxSp()); in MakeActor()
H A Dgame_actor.cpp36 REQUIRE_EQ(actor.GetMaxSp(), 10);
91 REQUIRE_EQ(actor.GetMaxSp(), sp); in testBaseLimits()
241 REQUIRE_EQ(actor.GetMaxSp(), 502);
H A Denemyai.cpp513 REQUIRE_EQ(100, enemy.GetMaxSp());