814 {
815 if (GetEconomyProfile())
816 {
817 float q_max = GetEconomyProfile().GetQuantityMax();
818 if (q_max > 0)
819 {
820 float q_min = GetEconomyProfile().GetQuantityMin();
821 float quantity_randomized = Math.RandomFloatInclusive(q_min, q_max);
822
824 {
825 ComponentEnergyManager comp = GetCompEM();
827 {
829 }
830 }
832 {
834
835 }
836
837 }
838 }
839 }
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 ...
override bool HasQuantity()
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...
const int COMP_TYPE_ENERGY_MANAGER