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

◆ GetWeightSpecialized()

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

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

3482 {
3483 if (IsSplitable()) //quantity determines size of the stack
3484 {
3485 #ifdef DEVELOPER
3486 if (WeightDebug.m_VerbosityFlags & WeightDebugType.RECALC_FORCED)
3487 {
3488 WeightDebugData data1 = WeightDebug.GetWeightDebug(this);
3489 data1.SetCalcDetails("TIB1: " + GetConfigWeightModifiedDebugText() +" * " + GetQuantity()+"(quantity)");
3490 }
3491 #endif
3492
3493 return GetQuantity() * GetConfigWeightModified();
3494 }
3495 else if (HasEnergyManager())// items with energy manager
3496 {
3497 #ifdef DEVELOPER
3498 if (WeightDebug.m_VerbosityFlags & WeightDebugType.RECALC_FORCED)
3499 {
3500 WeightDebugData data2 = WeightDebug.GetWeightDebug(this);
3501 data2.SetCalcDetails("TIB2: "+super.GetWeightSpecialized(forceRecalc)+"(contents weight) + " + GetConfigWeightModifiedDebugText() +" + " + GetCompEM().GetEnergy()+"(energy) * " + ConfigGetFloat("weightPerQuantityUnit") +"(weightPerQuantityUnit)");
3502 }
3503 #endif
3504 return super.GetWeightSpecialized(forceRecalc) + (GetCompEM().GetEnergy() * ConfigGetFloat("weightPerQuantityUnit")) + GetConfigWeightModified();
3505 }
3506 else//everything else
3507 {
3508 #ifdef DEVELOPER
3509 if (WeightDebug.m_VerbosityFlags & WeightDebugType.RECALC_FORCED)
3510 {
3511 WeightDebugData data3 = WeightDebug.GetWeightDebug(this);
3512 data3.SetCalcDetails("TIB3: "+super.GetWeightSpecialized(forceRecalc)+"(contents weight) + " + GetConfigWeightModifiedDebugText() +" + " + GetQuantity()+"(quantity) * " + ConfigGetFloat("weightPerQuantityUnit") +"(weightPerQuantityUnit))");
3513 }
3514 #endif
3515 return super.GetWeightSpecialized(forceRecalc) + (GetQuantity() * ConfigGetFloat("weightPerQuantityUnit")) + GetConfigWeightModified();
3516 }
3517 }
override float GetQuantity()
Определения ItemBase.c:3456
override bool IsSplitable()
Определения ItemBase.c:1575
float GetEnergy()
Определения ItemBase.c:3580
void SetCalcDetails(string details)
Определения 3_Game/tools/Debug.c:816

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