DayZ 1.29
DayZ Explorer by KGB
 
Загрузка...
Поиск...
Не найдено

◆ GetWeightSpecialized()

float InventoryItem::GetWeightSpecialized ( bool forceRecalc = false)
inlineprotected

См. определение в файле ItemBase.c строка 3533

3534 {
3535 if (IsSplitable()) //quantity determines size of the stack
3536 {
3537 #ifdef DEVELOPER
3538 if (WeightDebug.m_VerbosityFlags & WeightDebugType.RECALC_FORCED)
3539 {
3540 WeightDebugData data1 = WeightDebug.GetWeightDebug(this);
3541 data1.SetCalcDetails("TIB1: " + GetConfigWeightModifiedDebugText() +" * " + GetQuantity()+"(quantity)");
3542 }
3543 #endif
3544
3545 return GetQuantity() * GetConfigWeightModified();
3546 }
3547 else if (HasEnergyManager())// items with energy manager
3548 {
3549 #ifdef DEVELOPER
3550 if (WeightDebug.m_VerbosityFlags & WeightDebugType.RECALC_FORCED)
3551 {
3552 WeightDebugData data2 = WeightDebug.GetWeightDebug(this);
3553 data2.SetCalcDetails("TIB2: "+super.GetWeightSpecialized(forceRecalc)+"(contents weight) + " + GetConfigWeightModifiedDebugText() +" + " + GetCompEM().GetEnergy()+"(energy) * " + ConfigGetFloat("weightPerQuantityUnit") +"(weightPerQuantityUnit)");
3554 }
3555 #endif
3556 return super.GetWeightSpecialized(forceRecalc) + (GetCompEM().GetEnergy() * ConfigGetFloat("weightPerQuantityUnit")) + GetConfigWeightModified();
3557 }
3558 else//everything else
3559 {
3560 #ifdef DEVELOPER
3561 if (WeightDebug.m_VerbosityFlags & WeightDebugType.RECALC_FORCED)
3562 {
3563 WeightDebugData data3 = WeightDebug.GetWeightDebug(this);
3564 data3.SetCalcDetails("TIB3: "+super.GetWeightSpecialized(forceRecalc)+"(contents weight) + " + GetConfigWeightModifiedDebugText() +" + " + GetQuantity()+"(quantity) * " + ConfigGetFloat("weightPerQuantityUnit") +"(weightPerQuantityUnit))");
3565 }
3566 #endif
3567 return super.GetWeightSpecialized(forceRecalc) + (GetQuantity() * ConfigGetFloat("weightPerQuantityUnit")) + GetConfigWeightModified();
3568 }
3569 }
override float GetQuantity()
Определения ItemBase.c:3508
override bool IsSplitable()
Определения ItemBase.c:1600
float GetEnergy()
Определения ItemBase.c:3635
void SetCalcDetails(string details)
Определения 3_Game/DayZ/tools/Debug.c:916

Перекрестные ссылки GetEnergy(), GetQuantity(), IsSplitable() и WeightDebugData::SetCalcDetails().