mirror of
https://github.com/oshima-studios/OshimaGameModule.git
synced 2025-04-23 04:19:36 +08:00
添加了生成魔法卡和卡包的 API
This commit is contained in:
parent
37ed981be2
commit
c142dd85df
@ -453,6 +453,24 @@ namespace Oshima.Core.Controllers
|
||||
return NetworkUtility.JsonSerialize("");
|
||||
}
|
||||
|
||||
[HttpGet("mfk")]
|
||||
public string GenerateMagicCard()
|
||||
{
|
||||
Item i = FunGameSimulation.GenerateMagicCard();
|
||||
return NetworkUtility.JsonSerialize(i.ToString(false, true));
|
||||
}
|
||||
|
||||
[HttpGet("mfkb")]
|
||||
public string GenerateMagicCardPack()
|
||||
{
|
||||
Item? i = FunGameSimulation.GenerateMagicCardPack(3);
|
||||
if (i != null)
|
||||
{
|
||||
return NetworkUtility.JsonSerialize(i.ToString(false, true));
|
||||
}
|
||||
return NetworkUtility.JsonSerialize("");
|
||||
}
|
||||
|
||||
[HttpGet("reload")]
|
||||
public string Relaod([FromQuery] long? master = null)
|
||||
{
|
||||
|
@ -856,7 +856,6 @@ namespace Oshima.Core.Utils
|
||||
item.Id = Convert.ToInt64("16" + Verification.CreateVerifyCode(VerifyCodeType.NumberVerifyCode, 8));
|
||||
item.Name = GenerateRandomChineseName();
|
||||
item.ItemType = ItemType.MagicCard;
|
||||
item.BackgroundStory = "这是一张随机生成的魔法卡。";
|
||||
|
||||
int total;
|
||||
if (qualityType != null)
|
||||
@ -1034,7 +1033,6 @@ namespace Oshima.Core.Utils
|
||||
item.Id = Convert.ToInt64("10" + Verification.CreateVerifyCode(VerifyCodeType.NumberVerifyCode, 8));
|
||||
item.Name = GenerateRandomChineseName();
|
||||
item.ItemType = ItemType.MagicCardPack;
|
||||
item.BackgroundStory = "这是一个由三张魔法卡合成而来的魔法卡包。";
|
||||
double str = 0, agi = 0, intelligence = 0;
|
||||
foreach (Skill skill in passives)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user