private void PlacePart(ShipItem pressedItem, RectangularHull hull, Part newPart) { Particles.GenerateDeathParticles(newPart.Sprite, pressedItem.Position, 2, 0, false); hull.AddPart(newPart, pressedItem.LinkPosition); player.Parts.Add(newPart); newPart.Carrier = hull; //REDUNDANCY }
protected override void HandleCollision(ICollidable c2) { if (c2 is Enemy && Team != EntityConstants.GetStatsFromID(EntityConstants.TEAM, IDs.DEFAULT_ENEMY) || c2 is Player && Team == EntityConstants.GetStatsFromID(EntityConstants.TEAM, IDs.DEFAULT_ENEMY) || c2 is Wall) { Particles.GenerateDeathParticles(Sprite, Position, 2, Angle, false); } base.HandleCollision(c2); }