Fix map
This commit is contained in:
parent
c820b71e9f
commit
50c6dc5d84
2 changed files with 45 additions and 1 deletions
40
GameServer/Controllers/ExploreProgressController.cs
Normal file
40
GameServer/Controllers/ExploreProgressController.cs
Normal file
|
@ -0,0 +1,40 @@
|
|||
using GameServer.Controllers.Attributes;
|
||||
using GameServer.Network;
|
||||
using GameServer.Network.Messages;
|
||||
using Protocol;
|
||||
|
||||
namespace GameServer.Controllers;
|
||||
internal class ExploreProgressController : Controller
|
||||
{
|
||||
private static readonly int[] s_areaIds = [1, 2, 3, 4, 5, 6, 7, 8, 10, 12, 100, 101, 102, 103, 107, 110, 113, 124, 122, 199, 301, 302, 303, 401, 402, 403, 404, 405, 406, 407, 408, 708, 601, 602, 603, 606, 607, 608, 609, 202, 203, 204, 501, 502, 503, 504, 508, 802, 803, 805, 807, 702, 703, 704, 705, 706, 709, 1201, 1202, 1203, 1204, 1001, 1002, 1003, 1004, 1005, 1006, 1007, 1301, 119, 120, 10001, 10002, 10003, 10004, 10005, 11001, 12001, 12002, 12003, 1500001, 1500002, 14001, 14002, 14003, 14004, 14005, 14006, 14007, 14008, 14011, 14012, 14013, 14021, 14022, 123, 125, 51, 804];
|
||||
private static readonly (int, int)[] s_exploreIds = [(1, 2), (2, 2), (3, 2), (10, 3), (11, 4), (12, 4), (13, 4), (21, 6), (22, 6), (23, 6), (24, 6), (31, 8), (32, 8), (33, 8), (34, 8), (41, 10), (42, 10), (43, 10), (44, 10), (51, 12), (52, 12), (53, 12), (54, 12), (6, 3), (7, 3), (8, 3), (9, 3), (14, 4), (15, 4), (16, 5), (17, 5), (18, 5), (19, 5), (25, 6), (26, 7), (27, 7), (28, 7), (29, 7), (45, 10), (55, 12), (4, 2), (5, 2), (20, 5), (30, 7), (35, 8)];
|
||||
|
||||
public ExploreProgressController(PlayerSession session) : base(session)
|
||||
{
|
||||
// ExploreProgressController.
|
||||
}
|
||||
|
||||
[NetEvent(MessageId.ExploreProgressRequest)]
|
||||
public ResponseMessage OnExploreProgressRequest()
|
||||
{
|
||||
return Response(MessageId.ExploreProgressResponse, new ExploreProgressResponse
|
||||
{
|
||||
AreaProgress =
|
||||
{
|
||||
s_areaIds.Select(id => new AreaExploreInfo
|
||||
{
|
||||
AreaId = id,
|
||||
ExplorePercent = 100,
|
||||
ExploreProgress =
|
||||
{
|
||||
s_exploreIds.Where(pair => pair.Item2 == id).Select(pair => new OneExploreItem
|
||||
{
|
||||
ExplorePercent = 100,
|
||||
ExploreProgressId = pair.Item1
|
||||
})
|
||||
}
|
||||
})
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
|
@ -12,5 +12,9 @@ internal class WorldMapController : Controller
|
|||
}
|
||||
|
||||
[NetEvent(MessageId.MapTraceInfoRequest)]
|
||||
public ResponseMessage OnMapTraceInfoRequest() => Response(MessageId.MapTraceInfoResponse, new MapTraceInfoResponse());
|
||||
public ResponseMessage OnMapTraceInfoRequest() => Response(MessageId.MapTraceInfoResponse, new MapTraceInfoResponse()
|
||||
{
|
||||
// Don't.
|
||||
//MarkIdList = { 1, 2, 3, 1000, 1001, 1002, 1003, 1004, 1005, 1007, 1008, 1009, 3000, 3002, 3003, 3005, 3010, 3011, 3012, 4020, 4021, 4022, 4023, 5001, 5002, 5003, 5004, 5005, 5006, 5007, 5021, 5022, 5023, 5025, 5026, 5027, 5028, 5029, 5030, 5031, 380000, 380002, 380003, 380004, 380006, 380007, 380015, 301203, 380013, 380014, 301204, 300201, 300202, 300203, 300301, 300302, 300303, 300304, 300306, 300309, 300310, 300311, 300312, 300313, 300401, 300402, 300403, 300404, 300405, 300406, 300407, 300408, 300410, 300413, 300501, 300502, 300506, 300507, 300508, 300509, 300510, 300511, 300601, 300603, 300604, 300605, 300606, 300607, 300608, 300701, 300703, 300704, 300707, 300708, 300711, 300712, 300713, 300901, 300902, 300911, 300912, 300914, 300915, 300918, 301001, 301003, 301004, 301005, 301006, 301007, 301008, 301009, 301010, 301012, 301013, 301014, 301015, 10000, 10001, 10002, 10003, 10005, 10006, 300801, 301201, 300412, 3015, 3016, 3017, 300411 }
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue