Add Drop.json Path Setting

Update Drop.json Editor UI
This commit is contained in:
2022-10-26 13:03:54 +08:00
parent c860180564
commit 60e54b1c91
7 changed files with 189 additions and 53 deletions

View File

@@ -50,7 +50,10 @@ namespace GrasscutterTools.Game.Drop
public override string ToString()
{
return $"{ItemId} x{MinCount}~x{MaxCount} [{MinWeight}~{MaxWeight}]";
if (MinCount != MaxCount)
return $"{ItemId}:{GameData.Items[ItemId]} | x[{MinCount}~{MaxCount}] w[{MinWeight}~{MaxWeight}]";
else
return $"{ItemId}:{GameData.Items[ItemId]} | x{MinCount} w[{MinWeight}~{MaxWeight}]";
}
}
}