예제 #1
0
 public void AddSpike(int id)
 {
     Spike spike = new Spike();
     spike.Id = id;
     var configData = ConfigData.GetSpikeConfig(id);
     spike.RemoveOnUseMonster = configData.RemoveOnUseMonster;
     spike.RemoveOnUseSpell = configData.RemoveOnUseSpell;
     spike.RemoveOnUseWeapon = configData.RemoveOnUseWeapon;
     spike.RoundLeft = configData.Round;
     spike.CanTimeOut = configData.Round > 0;
     spikeList.Add(spike);
     ReCheckSpike();
 }
예제 #2
0
        public void AddSpike(int id)
        {
            Spike spike = new Spike();

            spike.Id = id;
            var configData = ConfigData.GetSpikeConfig(id);

            spike.RemoveOnUseMonster = configData.RemoveOnUseMonster;
            spike.RemoveOnUseSpell   = configData.RemoveOnUseSpell;
            spike.RemoveOnUseWeapon  = configData.RemoveOnUseWeapon;
            spike.RoundLeft          = configData.Round;
            spike.CanTimeOut         = configData.Round > 0;
            spikeList.Add(spike);
            ReCheckSpike();
        }