1
This commit is contained in:
parent
c604e4c6e1
commit
7ea1effb6d
@ -930,6 +930,11 @@ float BattleDataContext::GetMaxHP()
|
||||
return hp;
|
||||
}
|
||||
|
||||
float BattleDataContext::GetAttack()
|
||||
{
|
||||
return hero_ability_->GetAtk();
|
||||
}
|
||||
|
||||
float BattleDataContext::GetDef()
|
||||
{
|
||||
float def = hero_ability_->GetDef();
|
||||
@ -1226,3 +1231,33 @@ float BattleDataContext::GetBlock()
|
||||
{
|
||||
return hero_ability_->GetBlock();
|
||||
}
|
||||
|
||||
float BattleDataContext::GetCrit()
|
||||
{
|
||||
return hero_ability_->GetCrit();
|
||||
}
|
||||
|
||||
void BattleDataContext::RecalcMaxHP()
|
||||
{
|
||||
hero_ability_->RecalcHp();
|
||||
}
|
||||
|
||||
void BattleDataContext::RecalcAttack()
|
||||
{
|
||||
hero_ability_->RecalcAttack();
|
||||
}
|
||||
|
||||
void BattleDataContext::RecalcDef()
|
||||
{
|
||||
hero_ability_->RecalcDef();
|
||||
}
|
||||
|
||||
void BattleDataContext::RecalcBlock()
|
||||
{
|
||||
hero_ability_->RecalcBlock();
|
||||
}
|
||||
|
||||
void BattleDataContext::RecalcCrit()
|
||||
{
|
||||
hero_ability_->RecalcCrit();
|
||||
}
|
||||
|
@ -46,10 +46,17 @@ struct BattleDataContext
|
||||
bool IsCrit();
|
||||
float GetCritDmg();
|
||||
|
||||
float GetHP();
|
||||
float GetMaxHP();
|
||||
float GetAttack();
|
||||
float GetDef();
|
||||
float GetBlock();
|
||||
float GetCrit();
|
||||
|
||||
void RecalcMaxHP();
|
||||
void RecalcAttack();
|
||||
void RecalcDef();
|
||||
void RecalcBlock();
|
||||
void RecalcCrit();
|
||||
|
||||
int GetRank();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user