public static FuInfo GetFuInfo(FuItem.Type type, int lv) { int magic_id = GetFuId(type); foreach (var e in GetFuInfos()) { if (e.magic_id == magic_id && e.lv == lv) { return(e); } } return(null); }
public static int GetFuMaxLv(FuItem.Type type) { int magic_id = GetFuId(type); int lv = 0; foreach (var e in GetFuInfos()) { if (e.magic_id == magic_id && e.lv > lv) { lv = e.lv; } } return(lv); }
static int GetFuId(FuItem.Type type) { int magic_id = 0; if (type == FuItem.Type.Speed) { magic_id = 1; } else if (type == FuItem.Type.Restore) { magic_id = 2; } else if (type == FuItem.Type.Call) { magic_id = 4; } else if (type == FuItem.Type.Fury) { magic_id = 3; } return(magic_id); }
public static void SetCurrentFuLv(FuItem.Type type, int lv) { PlayerPrefs.SetInt("key_" + type.ToString(), lv); PlayerPrefs.Save(); }
public static int GetCurrentFuLv(FuItem.Type type) { return(PlayerPrefs.GetInt("key_" + type.ToString(), 1)); }