1
This commit is contained in:
parent
656e6ac288
commit
5876b4f823
@ -350,3 +350,14 @@ float BattleDataContext::GetDodgeRate()
|
||||
{
|
||||
return dodge_damage_rate;
|
||||
}
|
||||
|
||||
std::shared_ptr<WeaponAbility> BattleDataContext::GetWeaponByUniId(long long weapon_uuid)
|
||||
{
|
||||
if (weapon1_ability_ && weapon1_ability_->weapon_uniid == weapon_uuid) {
|
||||
return weapon1_ability_;
|
||||
}
|
||||
if (weapon2_ability_ && weapon2_ability_->weapon_uniid == weapon_uuid) {
|
||||
return weapon2_ability_;
|
||||
}
|
||||
return nullptr;
|
||||
}
|
||||
|
@ -67,6 +67,7 @@ private:
|
||||
float GetCritRate();
|
||||
bool IsDodge();
|
||||
float GetDodgeRate();
|
||||
std::shared_ptr<WeaponAbility> GetWeaponByUniId(long long weapon_uniid);
|
||||
|
||||
private:
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user