mirror of
https://github.com/jie65535/GrasscutterCommandGenerator.git
synced 2025-06-08 23:19:14 +08:00
Update Give Commands
This commit is contained in:
parent
2bbe0e1a65
commit
23c0aff49f
@ -512,6 +512,9 @@ namespace GrasscutterTools.Forms
|
|||||||
subAttrs += $"{kv.Key} ";
|
subAttrs += $"{kv.Key} ";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (ChkNewCommand.Checked)
|
||||||
|
SetCommand("/give", $"{id} lv{NUDArtifactLevel.Value} {mainAttr} {subAttrs}");
|
||||||
|
else
|
||||||
SetCommand("/giveart", $"{id} {mainAttr} {subAttrs}{NUDArtifactLevel.Value}");
|
SetCommand("/giveart", $"{id} {mainAttr} {subAttrs}{NUDArtifactLevel.Value}");
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -562,6 +565,9 @@ namespace GrasscutterTools.Forms
|
|||||||
if (ListWeapons.SelectedIndex >= 0)
|
if (ListWeapons.SelectedIndex >= 0)
|
||||||
{
|
{
|
||||||
var id = GameData.Weapons.Ids[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
|
||||||
SetCommand("/give", $"{id} {NUDWeaponAmout.Value} {NUDWeaponLevel.Value} {NUDWeaponRefinement.Value}");
|
SetCommand("/give", $"{id} {NUDWeaponAmout.Value} {NUDWeaponLevel.Value} {NUDWeaponRefinement.Value}");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -607,6 +613,9 @@ namespace GrasscutterTools.Forms
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
NUDGameItemLevel.Enabled = true;
|
NUDGameItemLevel.Enabled = true;
|
||||||
|
if (ChkNewCommand.Checked)
|
||||||
|
SetCommand("/give", $"{id} x{NUDGameItemAmout.Value} lv{NUDGameItemLevel.Value}");
|
||||||
|
else
|
||||||
SetCommand("/give", $"{id} {NUDGameItemAmout.Value} {NUDGameItemLevel.Value}");
|
SetCommand("/give", $"{id} {NUDGameItemAmout.Value} {NUDGameItemLevel.Value}");
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
@ -705,6 +714,9 @@ namespace GrasscutterTools.Forms
|
|||||||
|
|
||||||
private void GenAvatar(int avatarId, int level)
|
private void GenAvatar(int avatarId, int level)
|
||||||
{
|
{
|
||||||
|
if (ChkNewCommand.Checked)
|
||||||
|
SetCommand("/give", $"{avatarId} lv{level}");
|
||||||
|
else
|
||||||
SetCommand("/givechar", $"{avatarId} {level}");
|
SetCommand("/givechar", $"{avatarId} {level}");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user