@@ -734,7 +734,7 @@ void CBaseObject::SetOwner( CChar *newOwner )
734
734
// o------------------------------------------------------------------------------------------------o
735
735
bool CBaseObject::DumpBody ( std::ostream &outStream ) const
736
736
{
737
- SI16 temp_st2, temp_dx2, temp_in2;
737
+ SI16 temp_st2, temp_dx2, temp_in2, temp_hitChance, temp_defChance, temp_swingSpeedInc, temp_damInc ;
738
738
const char newLine = ' \n ' ;
739
739
740
740
// Hexadecimal Values
@@ -784,6 +784,10 @@ bool CBaseObject::DumpBody( std::ostream &outStream ) const
784
784
temp_st2 = st2;
785
785
temp_dx2 = dx2;
786
786
temp_in2 = in2;
787
+ temp_hitChance = hitChance;
788
+ temp_defChance = defenseChance;
789
+ temp_swingSpeedInc = swingSpeedIncrease;
790
+ temp_damInc = damageIncrease;
787
791
if ( objType == OT_CHAR )
788
792
{
789
793
CChar *myChar = (CChar *)( this );
@@ -797,6 +801,10 @@ bool CBaseObject::DumpBody( std::ostream &outStream ) const
797
801
temp_st2 -= myItem->GetStrength2 ();
798
802
temp_dx2 -= myItem->GetDexterity2 ();
799
803
temp_in2 -= myItem->GetIntelligence2 ();
804
+ temp_hitChance -= myItem->GetHitChance ();
805
+ temp_defChance -= myItem->GetDefenseChance ();
806
+ temp_swingSpeedInc -= myItem->GetSwingSpeedIncrease ();
807
+ temp_damInc -= myItem->GetDamageIncrease ();
800
808
}
801
809
}
802
810
}
@@ -808,8 +816,7 @@ bool CBaseObject::DumpBody( std::ostream &outStream ) const
808
816
outStream << " Intelligence=" + std::to_string ( intelligence ) + " ," + std::to_string ( temp_in2 ) + newLine;
809
817
outStream << " Strength=" + std::to_string ( strength ) + " ," + std::to_string ( temp_st2 ) + newLine;
810
818
outStream << " HitPoints=" + std::to_string ( hitpoints ) + newLine;
811
- outStream << " ExtPropCommon=" + std::to_string ( GetHitChance () ) + " ," + std::to_string ( GetDefenseChance () ) + " ," + std::to_string ( GetSwingSpeedIncrease () ) + " ," + std::to_string ( GetDamageIncrease () ) + newLine;
812
- outStream << " Race=" + std::to_string ( race ) + newLine;
819
+ outStream << " ExtPropCommon=" + std::to_string ( temp_hitChance ) + " ," + std::to_string ( temp_defChance ) + " ," + std::to_string ( temp_swingSpeedInc ) + " ," + std::to_string ( temp_damInc ) + newLine; outStream << " Race=" + std::to_string ( race ) + newLine;
813
820
outStream << " Visible=" + std::to_string ( visible ) + newLine;
814
821
outStream << " Disabled=" << ( IsDisabled () ? " 1" : " 0" ) << newLine;
815
822
outStream << " Damage=" + std::to_string ( loDamage ) + " ," + std::to_string ( hiDamage ) + newLine;
0 commit comments