Jump to content

Telescope work speed


Sanchozz
  • Branch: Preview Branch Version: Linux Pending

Telescope work speed does not depend on its Reduced Visibility.

even when Reduced Visibility is 9%, the Telescope analyzes the planets at full 100% speed.

457140_20181212110448_1.thumb.png.bb3f2118f5f7ce5692c9b0b4226d92d9.png

public class Telescope : Workable, OxygenBreather.IGasProvider, IEffectDescriptor, ISim200ms
{
...
	protected override bool OnWorkTick(Worker worker, float dt)
	{
		if (SpacecraftManager.instance.HasAnalysisTarget())
		{
			float num = 1f + Db.Get().AttributeConverters.ResearchSpeed.Lookup(worker).Evaluate();
			int starmapAnalysisDestinationID = SpacecraftManager.instance.GetStarmapAnalysisDestinationID();
			SpaceDestination destination = SpacecraftManager.instance.GetDestination(starmapAnalysisDestinationID);
			float num2 = 1f / (float)destination.OneBasedDistance;
			float num3 = (float)ROCKETRY.DESTINATION_ANALYSIS.DISCOVERED;
			float dEFAULT_CYCLES_PER_DISCOVERY = ROCKETRY.DESTINATION_ANALYSIS.DEFAULT_CYCLES_PER_DISCOVERY;
			float num4 = num3 / dEFAULT_CYCLES_PER_DISCOVERY;
			float num5 = num4 / 600f;
			float points = dt * num * num2 * num5;
			SpacecraftManager.instance.EarnDestinationAnalysisPoints(starmapAnalysisDestinationID, points);
		}
		return base.OnWorkTick(worker, dt);
	}

 

Test5.sav

ILSpy.png


Steps to Reproduce
see description
  • Like 1



User Feedback




Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
  • Create New...