824 {
825 if (GetEconomyProfile())
826 {
827 float q_max = GetEconomyProfile().GetQuantityMax();
828 if (q_max > 0)
829 {
830 float q_min = GetEconomyProfile().GetQuantityMin();
831 float quantity_randomized = Math.RandomFloatInclusive(q_min, q_max);
832
834 {
835 ComponentEnergyManager comp = GetCompEM();
837 {
839 }
840 }
842 {
844
845 }
846
847 }
848 }
849 }
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()
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...
const int COMP_TYPE_ENERGY_MANAGER