mirror of
https://github.com/milimoe/FunGame-Testing.git
synced 2026-01-19 14:08:24 +00:00
添加更多实体;活动系统升级
This commit is contained in:
parent
74e06c4eeb
commit
92a0e7aae8
@ -1,6 +1,9 @@
|
||||
using Microsoft.Extensions.Logging;
|
||||
using Milimoe.FunGame.Core.Api.Utility;
|
||||
using Milimoe.FunGame.Core.Entity;
|
||||
using Milimoe.FunGame.Testing.Tests;
|
||||
using Oshima.FunGame.OshimaModules;
|
||||
using Oshima.FunGame.OshimaModules.Models;
|
||||
using Oshima.FunGame.OshimaServers.Service;
|
||||
using Oshima.FunGame.WebAPI.Controllers;
|
||||
|
||||
@ -29,10 +32,15 @@ FunGameController controller = new(new Logger<FunGameController>(new LoggerFacto
|
||||
|
||||
//await CharacterTest.CharacterTest2();
|
||||
|
||||
//ActivityTest.Test2();
|
||||
ActivityTest.Test3();
|
||||
|
||||
//await ActivityTest.Test();
|
||||
|
||||
foreach (Item i in FunGameConstant.Equipment)
|
||||
{
|
||||
Console.WriteLine(i.ToString(true, false));
|
||||
}
|
||||
|
||||
//foreach (Skill s in FunGameConstant.Skills)
|
||||
//{
|
||||
// s.Level = 1;
|
||||
|
||||
@ -239,16 +239,16 @@ namespace Milimoe.FunGame.Testing.Tests
|
||||
Console.WriteLine(FunGameService.AddEvent(activity5));
|
||||
Console.WriteLine(FunGameService.AddEvent(activity6));
|
||||
Console.WriteLine();
|
||||
Console.WriteLine(FunGameService.GetEventCenter());
|
||||
Console.WriteLine(FunGameService.GetEventCenter(null));
|
||||
Console.WriteLine();
|
||||
Console.WriteLine(FunGameService.GetEvents());
|
||||
Console.WriteLine(FunGameService.GetEvents(null));
|
||||
Console.WriteLine();
|
||||
Console.WriteLine(FunGameService.GetEvent(1));
|
||||
Console.WriteLine(FunGameService.GetEvent(2));
|
||||
Console.WriteLine(FunGameService.GetEvent(3));
|
||||
Console.WriteLine(FunGameService.GetEvent(4));
|
||||
Console.WriteLine(FunGameService.GetEvent(5));
|
||||
Console.WriteLine(FunGameService.GetEvent(6));
|
||||
Console.WriteLine(FunGameService.GetEvent(null, 1));
|
||||
Console.WriteLine(FunGameService.GetEvent(null, 2));
|
||||
Console.WriteLine(FunGameService.GetEvent(null, 3));
|
||||
Console.WriteLine(FunGameService.GetEvent(null, 4));
|
||||
Console.WriteLine(FunGameService.GetEvent(null, 5));
|
||||
Console.WriteLine(FunGameService.GetEvent(null, 6));
|
||||
Console.ReadKey();
|
||||
}
|
||||
|
||||
@ -265,5 +265,36 @@ namespace Milimoe.FunGame.Testing.Tests
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public static void Test3()
|
||||
{
|
||||
Activity activity = new(1, "糖糖一周年纪念活动", new DateTime(2025, 12, 25, 4, 0, 0), new DateTime(2026, 1, 4, 3, 59, 59))
|
||||
{
|
||||
Description = "在活动期间,累计消耗 360 个探索许可即可领取【一周年纪念礼包】,打开后获得金币、钻石奖励以及【一周年纪念套装】(包含武器粉糖雾蝶 * 1,防具糖之誓约 * 1,鞋子蜜步流心 * 1,饰品回忆糖纸 * 1,饰品蜂糖蜜酿 * 1)!自2024年12月进入上线前的测试阶段起,糖糖已经陪我们走过了第一个年头,放眼未来,糖糖将为我们带来更多快乐。"
|
||||
};
|
||||
Quest quest1 = new()
|
||||
{
|
||||
Id = 1,
|
||||
Name = "糖糖一周年纪念",
|
||||
Description = "消耗 360 个探索许可(即参与探索玩法、秘境挑战)。",
|
||||
NeedyExploreItemName = "探索许可",
|
||||
CreditsAward = 10000,
|
||||
Awards = [
|
||||
new 一周年纪念礼包()
|
||||
],
|
||||
AwardsCount = new() {
|
||||
{ "一周年纪念礼包", 1 }
|
||||
},
|
||||
QuestType = QuestType.Progressive,
|
||||
MaxProgress = 360
|
||||
};
|
||||
activity.Quests.Add(quest1);
|
||||
Console.WriteLine(FunGameService.AddEvent(activity));
|
||||
Console.WriteLine(FunGameService.GetEventCenter(null));
|
||||
Console.WriteLine();
|
||||
Console.WriteLine(FunGameService.GetEvents(null));
|
||||
Console.WriteLine();
|
||||
Console.WriteLine(FunGameService.GetEvent(null, 1));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user