Update FormMain.cs

This commit is contained in:
Asayu233 2022-07-02 11:18:33 +08:00 committed by GitHub
parent cfe3771a19
commit c2d0fcbde4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -579,7 +579,7 @@ namespace GrasscutterTools.Forms
if (ListWeapons.SelectedIndex >= 0)
{
// 错误未修复: 无法对应搜索的结果给予武器
var id = ListWeapons.SelectedIndex;
var id = GameData.Weapons.Ids[ListWeapons.SelectedIndex];
if (ChkNewCommand.Checked)
SetCommand("/give", $"{id} x{NUDWeaponAmout.Value} lv{NUDWeaponLevel.Value} r{NUDWeaponRefinement.Value}");
else