public void SetUniqueSkill(string monsterId, string defaultSkillGroupSubId) { MonsterClientMaster monsterMasterByMonsterId = MonsterMaster.GetMonsterMasterByMonsterId(monsterId); if (monsterMasterByMonsterId != null) { this.uniqueSkill = MonsterSkillData.GetSkillMasterBySkillGroupId(monsterMasterByMonsterId.Simple.skillGroupId, defaultSkillGroupSubId); } }
private void SetMonsterData() { this.monsterMaster = MonsterMaster.GetMonsterMasterByMonsterId(this.userMonster.monsterId); this.uniqueSkill = MonsterSkillData.GetSkillMasterBySkillGroupId(this.monsterMaster.Simple.skillGroupId, this.userMonster.defaultSkillGroupSubId); this.commonSkill = MonsterSkillData.GetSkillMasterBySkillId(this.userMonster.commonSkillId); if (!string.IsNullOrEmpty(this.userMonster.extraCommonSkillId)) { this.extraCommonSkill = MonsterSkillData.GetSkillMasterBySkillId(this.userMonster.extraCommonSkillId); } if ("0" != this.userMonster.leaderSkillId) { this.leaderSkill = MonsterSkillData.GetSkillMasterBySkillId(this.userMonster.leaderSkillId); } this.chipEquip.SetChipEquip(this.userMonster.userMonsterId); }