// Start is called before the first frame update void Start() { conf = Memory.LoadConfig(); catCompo = CAT.GetComponent <ClassAffinityType>(); //ToolBox.FeedDatabases(new string[] { conf.VSPath + "MENU/SHIELD.SYD", conf.VSPath + "MENU/ARMOR.SYD", conf.VSPath + "MENU/BLADE.SYD", conf.VSPath + "MENU/ITEMNAME.BIN", conf.VSPath + "MENU/ITEMHELP.BIN" }); Grip.GripList(); Gem.GemList(); BladeDD.enabled = false; GripDD.enabled = false; Gem1DD.enabled = false; Gem2DD.enabled = false; Gem3DD.enabled = false; BladeDD.ClearOptions(); GripDD.ClearOptions(); Gem1DD.ClearOptions(); Gem2DD.ClearOptions(); Gem3DD.ClearOptions(); catCompo.RAZ(); MaterialDD.ClearOptions(); MaterialDD.AddOptions(new List <string>() { "Wood", "Leather", "Bronze", "Iron", "Hagane", "Silver", "Damascus" }); WeaponTypeDD.ClearOptions(); WeaponTypeDD.AddOptions(new List <string>() { "Weapon Type", "Dagger", "Sword", "Greatwsord", "Axe", "Mace", "Great Axe", "Staff", "Heavy Mace", "Polearm", "Crossbow", "Shield" }); }
private void actualiseCAT() { if (WEPID > 0) { catCompo.RAZ(); if (WeaponTypeDD.value == 11) { /* * Debug.Log("Shield ID = "+WEPID); * Debug.Log("Shield.list.Count : "+Shield.list.Count); * Debug.Log("Shield = " + Shield.GetShield(WEPID).ToString()); */ catCompo.STR = Shield.GetShieldByWEP((byte)WEPID).STR; catCompo.INT = Shield.GetShieldByWEP((byte)WEPID).INT; catCompo.AGI = Shield.GetShieldByWEP((byte)WEPID).AGI; } else { //Debug.Log(Blade.list[WEPID]); catCompo.Range = Blade.list[WEPID].Range; catCompo.Risk = Blade.list[WEPID].RISK; catCompo.STR = Blade.list[WEPID].STR; catCompo.INT = Blade.list[WEPID].INT; catCompo.AGI = Blade.list[WEPID].AGI; Grip grp = Grip.FindByName(GripDD.options[GripDD.value].text); catCompo.STR = grp.STR; catCompo.INT = grp.INT; catCompo.AGI = grp.AGI; catCompo.Blunt = grp.Blunt; catCompo.Edged = grp.Edged; catCompo.Piercing = grp.Piercing; } //catCompo += SmithMaterial.list[MaterialDD.value]; SmithMaterial[] mats = new SmithMaterial[] { SmithMaterial.Wood, SmithMaterial.Leather, SmithMaterial.Bronze, SmithMaterial.Iron, SmithMaterial.Hagane, SmithMaterial.Silver, SmithMaterial.Damascus }; catCompo += mats[MaterialDD.value]; if (Gem1DD.enabled) { catCompo += Gem.list[Gem1DD.value]; } if (Gem2DD.enabled) { catCompo += Gem.list[Gem2DD.value]; } if (Gem3DD.enabled) { catCompo += Gem.list[Gem3DD.value]; } } }