public override float GainEnergy(float value) { float multiplier = 1 + (perk != null ? perk.GetEnergyGainMul() : 0); return(base.GainEnergy(value * multiplier)); }