Beispiel #1
0
 public bool Match(SkillData skill)
 {
     if (this.lockSkill1 == skill.SkillId) { return true; }
     if (this.lockSkill2 == skill.SkillId) { return true; }
     if (this.lockSkill3 == skill.SkillId) { return true; }
     if (this.lockSkill4 == skill.SkillId) { return true; }
     if (this.lockSkill5 == skill.SkillId) { return true; }
     return false;
 }
Beispiel #2
0
        private void showSkill(SkillData skill)
        {
            Skill_SkillId.Text = "技能编号:" + skill.SkillId;
            Skill_Name.Text = "技能名称:" + skill.Name;
            Skill_property_1.Text = "技能类型:" + SkillData.SkillCategoryData[skill.SkillCategory];

            string LanchConditionValue = "";
            switch (skill.LanchCondition)
            {
                default:
                    {
                        break;
                    }
                case 1:
                    {
                        LanchConditionValue = "  条件参数:" + CardData.raceData[skill.LanchConditionValue];
                        break;
                    }
            }

            string Skill_Content = "";
            Skill_Content += "\n";
            Skill_Content += "技能描述:" + skill.Desc + "\n";
            Skill_Content += "\n";
            Skill_Content += "动画编号:" + skill.Type + "\n";
            Skill_Content += "\n";
            Skill_Content += "发动时间点:" + SkillData.LanchTypeData[skill.LanchType] + "\n";
            Skill_Content += "\n";
            Skill_Content += "发动条件:" + SkillData.LanchConditionData[skill.LanchCondition] + "" + LanchConditionValue + "\n";
            Skill_Content += "\n";
            Skill_Content += "效果类型:" + skill.AffectType + "  效果参数:" + (skill.AffectType == 101 ? skill.AffectValue[0] + "(" + GameData.Card.Find(m => m.CardId == skill.AffectValue[0]) + ")" : string.Join("_", skill.AffectValue)) + " , " + (skill.AffectType == 101 ? skill.AffectValue2 + "(" + GameData.Card.Find(m => m.CardId == skill.AffectValue2) + ")" : skill.AffectValue2.ToString()) + "\n";

            this.Skill_Content.Text = Skill_Content;

            this.Skill_Card.Items.Clear();
            this.Skill_Rune.Items.Clear();
            this.Skill_Skill.Items.Clear();

            foreach (var i in skill.Card)
            {
                this.Skill_Card.Items.Add(i.CardName);
            }
            foreach (var i in skill.Rune)
            {
                this.Skill_Rune.Items.Add(i.RuneName);
            }
            foreach (var i in skill.Alike)
            {
                this.Skill_Skill.Items.Add(i.Name);
            }
        }
Beispiel #3
0
 public bool Match(SkillData skill)
 {
     if (this.skill != null)
         foreach (int s in this.skill)
         {
             if (s == skill.SkillId) { return true; }
         }
     if (this.lockSkill1 != null)
         foreach (int s in this.lockSkill1)
         {
             if (s == skill.SkillId) { return true; }
         }
     if (this.lockSkill2 != null)
         foreach (int s in this.lockSkill2)
         {
             if (s == skill.SkillId) { return true; }
         }
     return false;
 }