mirror of
https://github.com/SapphireServer/Sapphire.git
synced 2025-05-25 19:17:45 +00:00
hardcoded camouflage parry bonus
This commit is contained in:
parent
31ee05734a
commit
d077f873dd
1 changed files with 7 additions and 0 deletions
|
@ -222,6 +222,13 @@ float CalcStats::parryProbability( const Sapphire::Entity::Chara& chara )
|
||||||
for( auto const& entry : chara.getStatusEffectMap() )
|
for( auto const& entry : chara.getStatusEffectMap() )
|
||||||
{
|
{
|
||||||
auto status = entry.second;
|
auto status = entry.second;
|
||||||
|
// hardcoded Camouflage
|
||||||
|
if( status->getId() == 1832 )
|
||||||
|
{
|
||||||
|
result += 50;
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
//
|
||||||
auto effectEntry = status->getEffectEntry();
|
auto effectEntry = status->getEffectEntry();
|
||||||
if( static_cast< Common::StatusEffectType >( effectEntry.effectType ) != Common::StatusEffectType::BlockParryRateBonus )
|
if( static_cast< Common::StatusEffectType >( effectEntry.effectType ) != Common::StatusEffectType::BlockParryRateBonus )
|
||||||
continue;
|
continue;
|
||||||
|
|
Loading…
Add table
Reference in a new issue