public static void AddSkill(Skill.Data data, bool lockSkillExp) { if (configEntryUtill["AddSkill"]) { MyLog.LogMessage("YotogiSkillContainerViewer.AddSkill" , data.name , lockSkillExp ); } }
private void Start() { if (foreGround.type != Image.Type.Filled) { Debug.LogError("Foreground is not Filled: " + name); return; } skillData = FlappyManager.instance.bird.skillManager.GetSkillData(skillIndex); }
public static void OnYotogiSkillAdd(YotogiSkillSystem skillSystem, Skill.Data data) { if (skillSystem.status == null || skillSystem.status.maid == null) { return; } SkillInfoChanged?.Invoke(null, new YotogiSkillEventArgs { Maid = skillSystem.status.maid, Event = "add", SkillId = data.id }); }
public static bool PrefixCreateDatas(out Dictionary <int, YotogiSkillListManager.Data> result, Status status, bool specialConditionCheck, Skill.Data.SpecialConditionType type) { result = new Dictionary <int, YotogiSkillListManager.Data>(); if (!EnableYotogiSkills) { return(false); } YotogiSkillSystem skillSystem = CreateDummySkillSystem(status); foreach (var skillDatas in Skill.skill_data_list) { foreach (var idSkillPair in skillDatas) { Skill.Data skill = idSkillPair.Value; if (!skill.IsExecPersonal(status.personal) || specialConditionCheck && skill.specialConditionType != type) { continue; } YotogiSkillData skillData = skillSystem.Get(skill.id); if (skillData == null) { skillData = new YotogiSkillData { data = skill, oldData = skill.oldData }; skillData.expSystem.SetExreienceList(new List <int>(skill.skill_exp_table)); } var data = new YotogiSkillListManager.Data { skillData = skill, conditionDatas = new KeyValuePair <string[], bool> [0], maidStatusSkillData = skillData }; result.Add(skill.id, data); } } return(true); }
protected Skill(Skill.Data data) { this.data = data; }
static void Skill_Data_IsExecStage(YotogiStage.Data stageData, ref bool __result, Skill.Data __instance) { for (int i = 0; i < stageData.prefabName.Length; i++) { string key = stageData.prefabName[i].ToString().Trim().ToLower(); //Initialize if (YotogiAnywhere.defaultAvailableSkills == null) { YotogiAnywhere.defaultAvailableSkills = new Dictionary <string, List <int> >(); } //Add Stage to dictionary if (!YotogiAnywhere.defaultAvailableSkills.ContainsKey(key)) { YotogiAnywhere.defaultAvailableSkills[key] = new List <int>(); } //Add skill id to stage's list if (__result && !YotogiAnywhere.defaultAvailableSkills[key].Contains(__instance.id)) { YotogiAnywhere.defaultAvailableSkills[key].Add(__instance.id); } UnityEngine.Debug.Log("YotogiAnywhere: Skill_Data_IsExecStage Postfix: " + key); } __result = __result || YotogiAnywhere.newStageIds.Contains(stageData.id) || YotogiAnywhere.enableAllSkillsAllLocations; }