Ejemplo n.º 1
0
        public void Execute(BaseGame game, Player player, ItemTemplateInfo item)
        {
            NoHoleEffect effect = (NoHoleEffect)player.EffectList.GetOfType(typeof(NoHoleEffect));

            if (effect != null)
            {
                effect.Count = item.Property3;
            }
            else
            {
                new NoHoleEffect(item.Property3).Start(player);
            }
        }
Ejemplo n.º 2
0
        public void Execute(GamePlayer player, ItemInfo item)
        {
            TankData data = player.CurrentGame.Data;

            if (player.CurrentGame.Data.Players[player].IsNoHole == 0)
            {
                NoHoleEffect noHole = new NoHoleEffect(item.Template.Property3);
                noHole.Start(player);
            }
            else
            {
                player.CurrentGame.Data.Players[player].SetNoHole(item.Template.Property3);
            }
        }
Ejemplo n.º 3
0
        public void Execute(GamePlayer player, ItemInfo item)
        {
            TankData data = player.CurrentGame.Data;

            if (player.CurrentGame.Data.Players[player].IsNoHole == 0)
            {
                NoHoleEffect noHole = new NoHoleEffect(item.Template.Property3);
                noHole.Start(player);
            }
            else
            {
                player.CurrentGame.Data.Players[player].SetNoHole(item.Template.Property3);
            }


        }