Ejemplo n.º 1
0
        public override bool HandleEvent(Event e)
        {
            if (e is BombPlacedEvent bpe)
            {
                bpe.Bomb.OnDeath += (b) => BlankMaker.Make(b.Center, b.Area);
            }

            return(base.HandleEvent(e));
        }
        public override bool HandleEvent(Event e)
        {
            if (e is ProjectileCreatedEvent pce)
            {
                pce.Projectile.OnDeath += (p, en, t) => {
                    if (Rnd.Chance(20 + Run.Luck * 10))
                    {
                        BlankMaker.Make(p.Center, p.Area, 18f);
                    }
                };
            }

            return(base.HandleEvent(e));
        }
Ejemplo n.º 3
0
 public override void Use(Entity entity, Item item)
 {
     base.Use(entity, item);
     BlankMaker.Make(entity.Center, entity.Area);
 }