/* * 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; } }
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)); }
public SiegeWeaponTarget(BaseSiegeProjectile projectile) : base(2, true, TargetFlags.None) { m_projectile = projectile; }
public SiegeWeaponTarget(BaseSiegeProjectile projectile) : base(2, true, TargetFlags.None) { this.m_projectile = projectile; }
public override Item Dupe(int amount) { BaseSiegeProjectile s = new BaseSiegeProjectile(amount); return this.Dupe(s, amount); }
public override Item Dupe(int amount) { BaseSiegeProjectile s = new BaseSiegeProjectile(amount); return(this.Dupe(s, amount)); }