Exemplo n.º 1
0
        public bool GetAmmo(Ship ship, Map map, out LaserType a, out RocketType r, out HellstormType h)
        {
            a = ((this.DefaultLaser == LaserType.Default) ? LaserType.LCB_10 : this.DefaultLaser);
            r = this.DefaultRocket;
            h = this.DefaultHellstorm;
            if (!ship.IsNpc && !map.IsGG)
            {
                return(false);
            }
            SelectedNpcModel model = this.GetModel(ship, map, null, 0);

            if (model == null)
            {
                if (!map.IsGG)
                {
                    return(false);
                }
            }
            else
            {
                a = ((model.Laser == LaserType.Default) ? a : model.Laser);
                r = ((model.Rocket == RocketType.Default) ? r : model.Rocket);
                h = ((model.Hellstorm == HellstormType.Default) ? h : model.Hellstorm);
                bool flag;
                if (map.method_8(ship, out flag) && model.GgCornerLaser != LaserType.Default)
                {
                    a = model.GgCornerLaser;
                }
                else if (model.UseSab && ship.Shield >= 2000 && map.Hero.ShieldPercentage <= (float)this.MinSabShield && map.Hero.method_21("ammunition_laser_sab-50") > 100.0 && map.Hero.Formation != GEnum4.Moth)
                {
                    a = LaserType.SAB_50;
                }
            }
            return(true);
        }
Exemplo n.º 2
0
 public static string smethod_3(HellstormType hellstormType_0)
 {
     return(hellstormType_0.smethod_0());
 }