mirror of
https://github.com/oshima-studios/OshimaGameModule.git
synced 2025-04-22 03:49:35 +08:00
优化
This commit is contained in:
parent
b005023356
commit
18682bbd56
@ -550,7 +550,8 @@ namespace Oshima.Core.Controllers
|
|||||||
int itemCount = 0;
|
int itemCount = 0;
|
||||||
|
|
||||||
int characterSequence = characters.Take((showPage - 1) * 10).Count();
|
int characterSequence = characters.Take((showPage - 1) * 10).Count();
|
||||||
int itemSequence = items.Take((showPage - 1) * 10).Count();
|
int itemSequence = items.Take((showPage - 1) * 10).Count() - characterSequence;
|
||||||
|
if (showPage > 1) itemSequence++;
|
||||||
|
|
||||||
foreach (int index in seq)
|
foreach (int index in seq)
|
||||||
{
|
{
|
||||||
@ -564,8 +565,7 @@ namespace Oshima.Core.Controllers
|
|||||||
showCharacter = false;
|
showCharacter = false;
|
||||||
list.Add("======= ½ÇÉ« =======");
|
list.Add("======= ½ÇÉ« =======");
|
||||||
}
|
}
|
||||||
characterSequence++;
|
str = $"{characterSequence + characterCount}. {character.ToStringWithLevelWithOutUser()}";
|
||||||
str = $"{characterSequence}. {character.ToStringWithLevelWithOutUser()}";
|
|
||||||
}
|
}
|
||||||
if (obj is Item item)
|
if (obj is Item item)
|
||||||
{
|
{
|
||||||
@ -575,8 +575,7 @@ namespace Oshima.Core.Controllers
|
|||||||
showItem = false;
|
showItem = false;
|
||||||
list.Add("======= ÎïÆ· =======");
|
list.Add("======= ÎïÆ· =======");
|
||||||
}
|
}
|
||||||
itemSequence++;
|
str = $"{itemSequence + itemCount}. [{ItemSet.GetQualityTypeName(item.QualityType)}|{ItemSet.GetItemTypeName(item.ItemType)}] {item.Name}\r\n";
|
||||||
str = $"{itemSequence}. [{ItemSet.GetQualityTypeName(item.QualityType)}|{ItemSet.GetItemTypeName(item.ItemType)}] {item.Name}\r\n";
|
|
||||||
str += $"{item.ToStringInventory(false).Trim()}";
|
str += $"{item.ToStringInventory(false).Trim()}";
|
||||||
}
|
}
|
||||||
list.Add(str);
|
list.Add(str);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user