// Ryzom - MMORPG Framework
// Copyright (C) 2010 Winch Gate Property Limited
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as
// published by the Free Software Foundation, either version 3 of the
// License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Affero General Public License for more details.
//
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see .
#include "stdpch.h"
#include "item_infos.h"
CItemInfos::CItemInfos()
{
slotId= 0;
versionInfo= 0;
Hp= 0;
HpMax= 0;
CreatorName= 0;
CurrentDamage= 0;
MaxDamage= 0;
HitRate= 0.0f;
SapLoadCurrent= 0;
SapLoadMax= 0;
Range= 0.0f;
ParryModifier= 0;
DodgeModifier= 0;
AdversaryParryModifier= 0;
AdversaryDodgeModifier= 0;
ProtectionFactor = 0.0f;
MaxSlashingProtection = 0;
MaxBluntProtection = 0;
MaxPiercingProtection = 0;
HpBuff = 0;
SapBuff = 0;
StaBuff = 0;
FocusBuff = 0;
WearEquipmentMalus = 0.0f;
RequiredSkill = SKILLS::unknown;
RequiredSkillLevel = 0;
RequiredSkill2 = SKILLS::unknown;
RequiredSkillLevel2 = 0;
RequiredCharac = CHARACTERISTICS::Unknown;
RequiredCharacLevel = 0;
// magic focus factor
for(uint i=0;i