Beispiel #1
0
        public PlasmaTank(EditorOptions options, ItemOptions itemOptions, ShipPartDNA dna)
            : base(options, dna, itemOptions.PlasmaTank_Damage.HitpointMin, itemOptions.PlasmaTank_Damage.HitpointSlope, itemOptions.PlasmaTank_Damage.Damage)
        {
            _itemOptions = itemOptions;

            this.Design = new PlasmaTankDesign(options, true);
            this.Design.SetDNA(dna);

            double surfaceArea, radius;

            _container = FuelTank.GetContainer(out surfaceArea, out _scaleActual, out radius, itemOptions, dna);

            _mass       = _container.QuantityMax * itemOptions.PlasmaTank_Density; // max quantity is the volume
            this.Radius = radius;

            _neuron = new Neuron_SensorPosition(new Point3D(0, 0, 0), false);

            this.Destroyed += PlasmaTank_Destroyed;
        }