4571 {
4572 bool hasParent = false, hasRootAsPlayer = false;
4574
4575 bool wwtu =
g_Game.IsWorldWetTempUpdateEnabled();
4576 bool foodDecay =
g_Game.IsFoodDecayEnabled();
4577
4578 if (wwtu || foodDecay)
4579 {
4583
4584 if (processWetness || processTemperature || processDecay)
4585 {
4587
4588 if (processWetness)
4589 ProcessItemWetness(m_ElapsedSinceLastUpdate, hasParent, hasRootAsPlayer, refParentIB);
4590
4591 if (processTemperature)
4593
4594 if (processDecay)
4595 ProcessDecay(m_ElapsedSinceLastUpdate, hasRootAsPlayer);
4596 }
4597 }
4598 }
override bool CanHaveTemperature()
void ProcessItemTemperature(float delta, bool hasParent, bool hasRootAsPlayer, ItemBase refParentIB)
void HierarchyCheck(out bool hasParent, out bool hasRootAsPlayer, out ItemBase refParentIB)
void ProcessItemWetness(float delta, bool hasParent, bool hasRootAsPlayer, ItemBase refParentIB)
void ProcessDecay(float delta, bool hasRootAsPlayer)