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

◆ EEOnCECreate()

override void Apple::EEOnCECreate ( )
inlineprivate

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

34 {
35 int rand = Math.RandomInt(0,10);
37
38 if ( baseTemp <= GameConstants.COLD_AREA_TEMPERATURE_THRESHOLD )
39 {
40 int randQ = Math.RandomFloat(10,80);
41 SetQuantity( randQ );
42
43 if ( rand >= 9 )
44 {
46 SetHealth( "", "", GetMaxHealth()*0.1 );
47
48 }
49 else
50 {
52 SetHealth( "", "", GetMaxHealth()*0.4 );
53 }
54 }
55 else
56 {
57 if ( rand > 6 )
58 {
60 SetHealth( "", "", GetMaxHealth()*0.1 );
61 }
62 else if ( rand > 2 )
63 {
65 SetHealth( "", "", GetMaxHealth()*0.4 );
66 }
67 }
68 }
FoodStageType
Определения FoodStage.c:2
proto native Mission GetMission()
void ChangeFoodStage(FoodStageType new_food_stage_type)
Определения Edible_Base.c:598
override bool SetQuantity(float value, bool destroy_config=true, bool destroy_forced=false, bool allow_client=false, bool clamp_to_stack_max=true)
Определения PileOfWoodenPlanks.c:88
WorldData GetWorldData()
Определения gameplay.c:743
float GetBaseEnvTemperature()
Определения WorldData.c:206
proto native CGame GetGame()

Перекрестные ссылки Edible_Base::ChangeFoodStage(), GameConstants::COLD_AREA_TEMPERATURE_THRESHOLD, WorldData::GetBaseEnvTemperature(), GetGame(), CGame::GetMission(), Mission::GetWorldData(), Math::RandomFloat(), Math::RandomInt() и ItemBase::SetQuantity().