733 {
734 if (GetEconomyProfile())
735 {
736 float q_max = GetEconomyProfile().GetQuantityMax();
737 if (q_max > 0)
738 {
739 float q_min = GetEconomyProfile().GetQuantityMin();
741
743 {
746 {
748 }
749 }
751 {
753
754 }
755
756 }
757 }
758 }
override void SetQuantityNormalized(float value, bool destroy_config=true, bool destroy_forced=false)
Sets quantity in normalized 0..1 form between the item's Min a Max values as defined by item's config...
override bool HasQuantity()
void SetEnergy0To1(float energy01)
Energy manager: Sets stored energy for this device between 0 and MAX based on relative input value be...
float GetEnergyMaxPristine()
Energy manager: Returns the maximum amount of energy this device can store. It's damage is NOT taken ...
const int COMP_TYPE_ENERGY_MANAGER
static float RandomFloatInclusive(float min, float max)
Returns a random float number between and min [inclusive] and max [inclusive].