public Projectile(Weapon Source) { HardCollisionWithTerrain = true; CollideWithWormsCheck = true; SourceWeapon = Source.Data; SourceWorm = Source.Carrier; RecentlyDamagedTargets.Add(Source.Carrier); RecentlyCollided.Add(Source.Carrier); }
public void CreateWeaponSwapTag(Weapon CurrentWeapon) { // Cleanup if(WeaponChangeTag != null) { WeaponChangeTag.Duration = -1; } WeaponChangeTag = new TextTag(ControlledWorm.Level, CurrentWeapon.Data.Name, ResourceManager.Arial, ControlledWorm.Position + new Vector2(0, -30), Color.Orange, 2); ControlledWorm.Level.TextTags.Add(WeaponChangeTag); }