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

◆ Repair()

bool PluginBase::Repair ( PlayerBase player,
ItemBase repair_kit,
Object item,
float specialty_weight,
string damage_zone = "",
bool use_kit_qty = true )
inlineprivate

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

4 {
5 switch (item.GetHealthLevel(damage_zone))
6 {
7 case GameConstants.STATE_PRISTINE:
8 break;
9 case GameConstants.STATE_RUINED:
10 #ifdef DEVELOPER
11 Debug.Log("repairing from GameConstants.STATE_RUINED");
12 #endif
13 CalculateHealth(player, repair_kit, item, specialty_weight, damage_zone, use_kit_qty);
14 break;
15 case GameConstants.STATE_WORN:
17 {
18 CalculateHealth(player, repair_kit, item, specialty_weight,/* GameConstants.DAMAGE_PRISTINE_VALUE,*/ damage_zone, use_kit_qty);
19 }
20 break;
21 default:
22 CalculateHealth(player, repair_kit, item, specialty_weight, damage_zone, use_kit_qty);
23 break;
24 }
25
26 return true;
27 }
void Debug()
Определения UniversalTemperatureSource.c:349
bool CanRepairToPristine(PlayerBase player)
Player can repair items to 100%; currently unused.
Определения PluginRepairing.c:132
void CalculateHealth(PlayerBase player, ItemBase kit, Object item, float specialty_weight, string damage_zone="", bool use_kit_qty=true)
Определения PluginRepairing.c:29
bool CanBeRepairedToPristine(Object item)
Item can be repaired to 100%.
Определения PluginRepairing.c:138

Перекрестные ссылки CalculateHealth(), CanBeRepairedToPristine(), CanRepairToPristine(), Debug::Log(), GameConstants::STATE_PRISTINE, GameConstants::STATE_RUINED и GameConstants::STATE_WORN.