mirror of
https://github.com/EggLinks/DanhengServer-OpenSource.git
synced 2026-01-03 04:36:03 +08:00
Feature:Asynchronous Operation & Formatting Code
- Now the async operation is enabled! - Code formatted by Resharper plugin <3
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user