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

◆ GetCycleTimeForYieldItem()

float FishYieldItemBase::GetCycleTimeForYieldItem ( CatchingContextFishingRodAction ctx)
inlineprotected

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

15 {
16 int hour = Math.Floor(GetGame().GetDayTime());
17 float res = Math.Lerp(UAFishingConstants.CYCLE_LENGTH_MIN,UAFishingConstants.CYCLE_LENGTH_MAX,m_HourlyCycleLengthCoefs[hour]);
18 return res;
19 }
float m_HourlyCycleLengthCoefs[24]
Определения YieldsFish.c:4
proto native CGame GetGame()

Перекрестные ссылки UAFishingConstants::CYCLE_LENGTH_MAX, UAFishingConstants::CYCLE_LENGTH_MIN, Math::Floor(), GetGame(), Math::Lerp() и m_HourlyCycleLengthCoefs.

Используется в CarchingResultFishingAction::GetCurrentCycleTime().