summaryrefslogtreecommitdiff
path: root/Penguloon/Projectiles/SnowballProjectile.cs
diff options
context:
space:
mode:
authoraldrikboy <aldrikboy@gmail.com>2018-01-17 14:26:43 +0100
committeraldrikboy <aldrikboy@gmail.com>2018-01-17 14:26:43 +0100
commitaf0ba50d00722e1b7330d1f9b1d23bd3b07a5567 (patch)
treefbd7f63dc9bdfc4f1019c03b8f6bf7accb2dce7d /Penguloon/Projectiles/SnowballProjectile.cs
parenta9daa029db68962603905eded0e29c2a2e2abd91 (diff)
upgrades
Diffstat (limited to 'Penguloon/Projectiles/SnowballProjectile.cs')
-rw-r--r--Penguloon/Projectiles/SnowballProjectile.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/Penguloon/Projectiles/SnowballProjectile.cs b/Penguloon/Projectiles/SnowballProjectile.cs
index 9f72794..c841fa9 100644
--- a/Penguloon/Projectiles/SnowballProjectile.cs
+++ b/Penguloon/Projectiles/SnowballProjectile.cs
@@ -5,13 +5,13 @@ namespace Penguloon.Projectiles
{
public class SnowballProjectile : ProjectileBase
{
- public SnowballProjectile(ObjectBase ParentObject, float RotationAngle) : base(ParentObject, RotationAngle)
+ public SnowballProjectile(ObjectBase ParentObject, float RotationAngle, int extraPops = 0) : base(ParentObject, RotationAngle)
{
this.Texture = ContentManager.GetTexture("Bullets/penguin-ammo");
this.Speed = 250f;
this.RotationSpeed = 5f;
this.Size = new Vector2(ParentObject.Map.TileWidth / 2, ParentObject.Map.TileHeight / 2);
- this.MaxBalloonPops = 1;
+ this.MaxBalloonPops = 1 + extraPops;
Rectangle parentRec = new Rectangle(ParentObject.Position.ToPoint(),
new Point(ParentObject.TileSpanX * ParentObject.Map.TileWidth, ParentObject.TileSpanY * ParentObject.Map.TileHeight));