コード例 #1
0
        /*
         * public override Item Dupe(int amount)
         * {
         * BaseSiegeProjectile s = new BaseSiegeProjectile(amount);
         *
         * return this.Dupe(s, amount);
         * }
         */
        public override void OnAfterDuped(Item newItem)
        {
            base.OnAfterDuped(newItem);

            BaseSiegeProjectile s = newItem as BaseSiegeProjectile;

            // dupe the siege projectile props
            if (s != null)
            {
                s.FiringSpeed    = this.FiringSpeed;
                s.AccuracyBonus  = this.AccuracyBonus;
                s.Area           = this.Area;
                s.Range          = this.Range;
                s.FireDamage     = this.FireDamage;
                s.PhysicalDamage = this.PhysicalDamage;
            }
        }
コード例 #2
0
        public override Item Dupe(Item item, int amount)
        {
            BaseSiegeProjectile s = item as BaseSiegeProjectile;

            // dupe the siege projectile props
            if (s != null)
            {
                s.FiringSpeed    = FiringSpeed;
                s.AccuracyBonus  = AccuracyBonus;
                s.Area           = Area;
                s.Range          = Range;
                s.FireDamage     = FireDamage;
                s.PhysicalDamage = PhysicalDamage;
            }
            // dupe the regular item props
            return(base.Dupe(item, amount));
        }
コード例 #3
0
			public SiegeWeaponTarget(BaseSiegeProjectile projectile)
				: base(2, true, TargetFlags.None)
			{
				m_projectile = projectile;
			}
コード例 #4
0
 public SiegeWeaponTarget(BaseSiegeProjectile projectile)
     : base(2, true, TargetFlags.None)
 {
     this.m_projectile = projectile;
 }
コード例 #5
0
        public override Item Dupe(int amount)
        {
            BaseSiegeProjectile s = new BaseSiegeProjectile(amount);

            return this.Dupe(s, amount);
        }
コード例 #6
0
        public override Item Dupe(int amount)
        {
            BaseSiegeProjectile s = new BaseSiegeProjectile(amount);

            return(this.Dupe(s, amount));
        }