Files
DanhengServer-OpenSource/GameServer/Game/Drop/DropService.cs
Somebody 87d228eb79 Feature:Asynchronous Operation & Formatting Code
- Now the async operation is enabled!
- Code formatted by Resharper plugin <3
2024-07-22 17:12:03 +08:00

30 lines
618 B
C#

using EggLink.DanhengServer.Database.Inventory;
namespace EggLink.DanhengServer.Game.Drop;
public class DropService
{
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)
}
];
return drops;
}
}