/// <summary> /// 武器の詳細設定 /// </summary> /// <param name="weapon">武器</param> private void WeaponInfo(WeaponItem weapon) { info = new string[8]; WeaponItem currentWeapon = playerItem.LeftHand(); int[] diff = new int[2]; //現在装備している武器(左手)との差を取得 if (currentWeapon != null) { diff[0] = weapon.GetPower() - currentWeapon.GetPower(); diff[1] = weapon.GetDefense() - currentWeapon.GetDefense(); } else { diff[0] = weapon.GetPower(); diff[1] = weapon.GetDefense(); } colors[0] = GetColor(diff[0]); //色付け colors[1] = GetColor(diff[1]); //色付け info[0] = weapon.GetItemName() + " + " + weapon.GetReinforcement(); info[1] = "レア度 " + weapon.GetItemRare(); info[2] = "買値 " + weapon.GetItemPrice(); info[3] = "重量 " + weapon.GetItemWeight(); info[4] = "タイプ " + weapon.GetWeaponType(); info[5] = weapon.GetItemExplanation(); info[6] = "攻撃力 " + weapon.GetPower() + "(" + diff[0] + ")"; info[7] = "守備力 " + weapon.GetDefense() + "(" + diff[1] + ")"; }