private static float GetStatusValue(EffectStatusBase.ExtraEffectType type, MonsterData data, int skillType = 0)
    {
        switch (type)
        {
        case EffectStatusBase.ExtraEffectType.Atk:
            return(float.Parse(data.userMonster.attack));

        case EffectStatusBase.ExtraEffectType.Def:
            return(float.Parse(data.userMonster.defense));

        case EffectStatusBase.ExtraEffectType.Hp:
            return(float.Parse(data.userMonster.hp));

        case EffectStatusBase.ExtraEffectType.Speed:
            return(float.Parse(data.userMonster.speed));

        case EffectStatusBase.ExtraEffectType.Satk:
            return(float.Parse(data.userMonster.spAttack));

        case EffectStatusBase.ExtraEffectType.Sdef:
            return(float.Parse(data.userMonster.spDefense));

        default:
        {
            if (type != EffectStatusBase.ExtraEffectType.SkillPower && type != EffectStatusBase.ExtraEffectType.SkillHit)
            {
                return(0f);
            }
            float result = 0f;
            if (skillType == 1)
            {
                result = (float)data.GetUniqueSkillDetail().skillId.ToInt32();
            }
            else if (skillType == 2)
            {
                result = (float)data.GetCommonSkillDetail().skillId.ToInt32();
            }
            else if (skillType == 3 && data.GetExtraCommonSkillDetail() != null)
            {
                result = (float)data.GetExtraCommonSkillDetail().skillId.ToInt32();
            }
            return(result);
        }
        }
    }
 public void SetSkill(MonsterData monsterData)
 {
     if (this.isUniqueSkill)
     {
         if (monsterData.GetUniqueSkill() != null)
         {
             this.SetSkillUI(monsterData.GetUniqueSkill().name, monsterData.GetUniqueSkill().description, monsterData.GetUniqueSkill().needPoint, monsterData.GetUniqueSkillDetail().attribute);
         }
     }
     else
     {
         int num = this.successionSkillSlotId;
         if (num == 1 || num != 2)
         {
             if (monsterData.GetCommonSkill() != null)
             {
                 this.SetSkillUI(monsterData.GetCommonSkill().name, monsterData.GetCommonSkill().description, monsterData.GetCommonSkill().needPoint, monsterData.GetCommonSkillDetail().attribute);
             }
         }
         else if (monsterData.GetExtraCommonSkill() != null)
         {
             this.SetSkillUI(monsterData.GetExtraCommonSkill().name, monsterData.GetExtraCommonSkill().description, monsterData.GetExtraCommonSkill().needPoint, monsterData.GetExtraCommonSkillDetail().attribute);
         }
         else
         {
             this.ClearSkill();
         }
     }
 }
 public void SetCommonSkill2(MonsterData monsterData)
 {
     this.successionSkillSlotId = 2;
     this.title.text            = StringMaster.GetString("SkillInheritTitle2");
     if (monsterData != null && monsterData.GetExtraCommonSkill() != null)
     {
         this.SetSkillUI(monsterData.GetExtraCommonSkill().name, monsterData.GetExtraCommonSkill().description, monsterData.GetExtraCommonSkill().needPoint, monsterData.GetExtraCommonSkillDetail().attribute);
     }
     else
     {
         this.ClearSkill();
     }
 }