Feature:Asynchronous Operation & Formatting Code

- Now the async operation is enabled!
- Code formatted by Resharper plugin <3
This commit is contained in:
Somebody
2024-07-22 17:12:03 +08:00
parent e983375620
commit 87d228eb79
793 changed files with 34764 additions and 40190 deletions

View File

@@ -1,32 +1,30 @@
using EggLink.DanhengServer.Database.Inventory;
using EggLink.DanhengServer.Proto;
namespace EggLink.DanhengServer.Game.Drop
namespace EggLink.DanhengServer.Game.Drop;
public class DropService
{
public class DropService
public static List<ItemData> CalculateDropsFromProp()
{
public static List<ItemData> CalculateDropsFromProp()
{
List<ItemData> drops =
[
new ItemData()
{
ItemId = 1,
Count = 5
},
new ItemData()
{
ItemId = 22,
Count = 5
},
new ItemData()
{
ItemId = 2,
Count = new Random().Next(20, 100)
},
];
List<ItemData> drops =
[
new ItemData
{
ItemId = 1,
Count = 5
},
new ItemData
{
ItemId = 22,
Count = 5
},
new ItemData
{
ItemId = 2,
Count = new Random().Next(20, 100)
}
];
return drops;
}
return drops;
}
}
}