private void CreateBuffList(MasterParam master_param) { for (int index1 = 0; index1 < this.ranks.Length; ++index1) { if (this.ranks[index1] != null) { List <BuffEffect.BuffValues> list = new List <BuffEffect.BuffValues>(); if (this.ranks[index1].equips != null || index1 != this.ranks.Length) { for (int index2 = 0; index2 < this.ranks[index1].equips.Length; ++index2) { if (!string.IsNullOrEmpty(this.ranks[index1].equips[index2])) { ItemParam itemParam = master_param.GetItemParam(this.ranks[index1].equips[index2]); if (itemParam != null && !string.IsNullOrEmpty(itemParam.skill)) { SkillData skillData = new SkillData(); skillData.Setup(itemParam.skill, 1, 1, master_param); skillData.BuffSkill(ESkillTiming.Passive, EElement.None, (BaseStatus)null, (BaseStatus)null, (BaseStatus)null, (BaseStatus)null, (BaseStatus)null, (BaseStatus)null, (RandXorshift)null, SkillEffectTargets.Target, false, list); } } } if (list.Count > 0) { this.ranks[index1].buff_list = new BuffEffect.BuffValues[list.Count]; for (int index2 = 0; index2 < list.Count; ++index2) { this.ranks[index1].buff_list[index2] = list[index2]; } } } } } }
private string MakeResultString(Json_DropInfo[] drops) { MasterParam masterParam = MonoSingleton <GameManager> .Instance.MasterParam; UnitParam[] allUnits = masterParam.GetAllUnits(); string str = string.Empty; foreach (Json_DropInfo drop in drops) { ItemParam itemParam = masterParam.GetItemParam(drop.iname); if (itemParam != null) { str = str + itemParam.name + "\n"; } else { foreach (UnitParam unitParam in allUnits) { if (unitParam.iname == drop.iname) { str = str + unitParam.name + "\n"; break; } } } } return(str); }
public void UpdateJobRankTransfarStatus(MasterParam master) { BaseStatus baseStatus = new BaseStatus(); for (int index1 = 0; index1 < this.ranks.Length; ++index1) { if (this.ranks[index1] != null) { this.ranks[index1].TransfarStatus.Clear(); baseStatus.CopyTo(this.ranks[index1].TransfarStatus); if (this.ranks[index1].equips != null || index1 != this.ranks.Length) { for (int index2 = 0; index2 < this.ranks[index1].equips.Length; ++index2) { if (!string.IsNullOrEmpty(this.ranks[index1].equips[index2])) { ItemParam itemParam = master.GetItemParam(this.ranks[index1].equips[index2]); if (itemParam != null && !string.IsNullOrEmpty((string)itemParam.skill)) { SkillData skillData = new SkillData(); skillData.Setup((string)itemParam.skill, 1, 1, master); skillData.BuffSkill(ESkillTiming.Passive, baseStatus, (BaseStatus)null, baseStatus, (BaseStatus)null, (RandXorshift)null, SkillEffectTargets.Target); } } } } } } }
public UnitGetParam(GiftData[] paramList) { MasterParam masterParam = MonoSingleton <GameManager> .Instance.MasterParam; for (int index = 0; index < paramList.Length; ++index) { if (paramList[index].CheckGiftTypeIncluded(GiftTypes.Unit)) { ItemParam itemParam = masterParam.GetItemParam(paramList[index].iname); if (itemParam != null) { this.Add(itemParam); } } } }