fix(clans): fix squadron timestamps, 20k RP cap, and configurable initial RP
Fix two 1970 squadron timestamps by sending nextRewardDayId as a 64-bit Unix timestamp in seconds and emitting dynamic bi-monthly season fields (clanDuelNextReward, clanSeasonStart, clanSeasonOrdinal, clanSeasonInYear) in clientProfile. Backfill preset normal squadrons to 58-60 deterministic NPC members so the client activity reward cap reaches 20,000, default startingPeriods and startingActivity to 0 in tuning/clans.jsonc, remove the hardcoded 20,000 empty-history fallback, and wire battle RP into squadron activity accumulation and period settlement.
This commit is contained in:
1 parent
b3211b89cd
commit
429c5eec12
11 files changed
+528
-60
No files matched your search
@@ -2,19 +2,25 @@
|
||||
{
|
||||
// Set activity and squadron RP. The service reports maxActivityPerPeriod, maxClanActivity, rewardPeriodDays, and historyDepth in squadron replies.
|
||||
"activity": {
|
||||
"maxPerPeriod": 360, // Activity cap per reward period.
|
||||
"maxPerPeriod": 360, // Activity cap per reward period.
|
||||
"squadronRpPerFullPeriod": 20000, // Squadron RP awarded for a full activity period.
|
||||
"rewardPeriodDays": 3, // Reward period in days.
|
||||
"historyDepthDays": 14, // Activity history displayed by the client, in days.
|
||||
// Seed full periods on creation or joining so squadron research can start immediately.
|
||||
"startingPeriods": 3
|
||||
// Base vehicle RP from battles required for 1 squadron activity point (stock rule: 200 RP = 1 point).
|
||||
"rpPerActivityPoint": 200,
|
||||
// Starting current-period activity for a player creating or joining a squadron (0..maxPerPeriod).
|
||||
// Set to 360 together with startingPeriods > 0 in <data>/tuning/clans.jsonc to start at full activity immediately.
|
||||
"startingActivity": 0,
|
||||
// Full past activity periods granted on creation or joining (default 0: earn activity through battles).
|
||||
// Increase (e.g. 1 or 3) in <data>/tuning/clans.jsonc to grant immediate squadron RP on joining.
|
||||
"startingPeriods": 0
|
||||
},
|
||||
|
||||
// Set the full squadron cap and initial battalion cap. Expansion cost and step size are read from warpoints.blk.
|
||||
"memberLimits": { "normal": 128, "battalionInitial": 10 },
|
||||
|
||||
// Displayed leaderboard activity is min(maxActivity, summed member activity * activityMultiplier), so small NPC rosters can represent full squadrons.
|
||||
"leaderboard": { "activityMultiplier": 10, "maxActivity": 100000 },
|
||||
// Displayed leaderboard activity is min(maxActivity, summed member activity * activityMultiplier).
|
||||
"leaderboard": { "activityMultiplier": 1, "maxActivity": 100000 },
|
||||
|
||||
// Starting ID for player-created squadrons.
|
||||
"firstNewClanId": 600001,
|
||||
@@ -29,6 +35,37 @@
|
||||
"presetClans": {
|
||||
"createdDaysAgo": 180, // Age of the first seeded squadron before applying each squadron's createdAfterDays offset.
|
||||
"memberJoinSpacingMinutes": 60,
|
||||
"npcHistoryPeriods": 3, // Past activity periods seeded for preset NPC members.
|
||||
// Deterministic filler NPC pool used when a preset clan's targetMemberCount exceeds its named roster.
|
||||
"fillerMembers": {
|
||||
"activityMin": 340,
|
||||
"activityMax": 360,
|
||||
"uidBase": 900000000,
|
||||
"uidStride": 1000,
|
||||
"callsigns": [
|
||||
"Vanguard", "Falcon", "Striker", "Sentinel", "Raptor", "Valkyrie",
|
||||
"Tempest", "Bastion", "Corsair", "Drago", "Harrier", "Kestrel",
|
||||
"Lancer", "Mirage", "Nomad", "Osprey", "Paladin", "Reaper",
|
||||
"Sabre", "Talon", "Vector", "Warden", "Zephyr", "Aegis",
|
||||
"Cobra", "Hornet", "Jaguar", "Lynx", "Mantis", "Puma"
|
||||
],
|
||||
"titles": [
|
||||
"title_pilot", "title_tankman", "title_ace", "title_sniper",
|
||||
"title_scout", "title_eagle", "title_tank_destroyer", "title_jet_powered"
|
||||
],
|
||||
"icons": [
|
||||
"cardicon_03", "cardicon_05", "cardicon_07", "cardicon_08",
|
||||
"cardicon_09", "cardicon_11", "cardicon_12", "cardicon_14",
|
||||
"cardicon_15", "cardicon_16", "cardicon_18", "cardicon_19",
|
||||
"cardicon_20", "cardicon_22", "cardicon_25", "cardicon_28"
|
||||
],
|
||||
"units": [
|
||||
"cn_ztz_99a", "su_27sm", "germ_leopard_2a7v", "f_14b",
|
||||
"jp_destroyer_shimakaze", "sw_strv_122b_plus", "j_11a", "jh_7a",
|
||||
"cn_vt_4a1", "f_15j_kai", "ussr_t_90m", "us_m1a2_sep2_abrams",
|
||||
"uk_challenger_2_black_night", "us_hstvl", "it_centauro_rgo_120"
|
||||
]
|
||||
},
|
||||
// Lifetime stats displayed for each seeded squadron.
|
||||
"stats": {
|
||||
"akills_arc": 4280, "akills_hist": 6150, "akills_sim": 1420,
|
||||
@@ -45,7 +82,7 @@
|
||||
"slogan": "离线天空与钢铁防线 · 自由研发全部联队载具",
|
||||
"desc": "War Thunder Offline 官方预置主力联队。开启自动审批,加入即可获得完整联队活跃度与联队研发点支持。",
|
||||
"announcement": "欢迎加入 [WTOF]!可在联队页面右上角点击「联队载具」或「活跃度」查看研发进度。",
|
||||
"region": "CN / Global", "autoAccept": true, "createdAfterDays": 0,
|
||||
"region": "CN / Global", "autoAccept": true, "createdAfterDays": 0, "targetMemberCount": 60,
|
||||
"rating": { "arc": 1840, "hist": 2150, "sim": 1620 },
|
||||
"members": [
|
||||
{ "uid": "900001001", "nick": "Lin_Wei", "role": "LEADER", "title": "title_marshall", "icon": "cardicon_28", "unit": "cn_ztz_99a", "activity": 360 },
|
||||
@@ -61,7 +98,7 @@
|
||||
"slogan": "鹰击长空 · 现代喷气空战与陆空协同联队",
|
||||
"desc": "专注于高阶喷气机与现代主战坦克联合作战的离线联队,支持自动入队与高活跃度加成。",
|
||||
"announcement": "本期联队研发推荐:F-16A OCU、苏-33、豹 2PL、M1A1 AIM。",
|
||||
"region": "Asia", "autoAccept": true, "createdAfterDays": 12,
|
||||
"region": "Asia", "autoAccept": true, "createdAfterDays": 12, "targetMemberCount": 60,
|
||||
"rating": { "arc": 1690, "hist": 2040, "sim": 1780 },
|
||||
"members": [
|
||||
{ "uid": "900002001", "nick": "SkyDragon_J20", "role": "LEADER", "title": "title_ace", "icon": "cardicon_25", "unit": "j_11a", "activity": 360 },
|
||||
@@ -75,7 +112,7 @@
|
||||
"slogan": "Steel & Fire — Heavy Armor Historical Squadron",
|
||||
"desc": "Classic and modern armored warfare squadron. Open auto-accept recruitment for all tank commanders.",
|
||||
"announcement": "Squadron vehicles ready for research at full 20,000 RP per period.",
|
||||
"region": "EU / Global", "autoAccept": true, "createdAfterDays": 24,
|
||||
"region": "EU / Global", "autoAccept": true, "createdAfterDays": 24, "targetMemberCount": 60,
|
||||
"rating": { "arc": 1920, "hist": 1980, "sim": 1510 },
|
||||
"members": [
|
||||
{ "uid": "900003001", "nick": "Kommissar_KVs", "role": "LEADER", "title": "title_hero", "icon": "cardicon_22", "unit": "ussr_t_90m", "activity": 360 },
|
||||
@@ -88,7 +125,7 @@
|
||||
"slogan": "All The Way — Air, Ground & Naval Task Force",
|
||||
"desc": "需要审批模式的示例联队(用于测试发送与撤回入队申请流程)。若想立即加入联队,请选择 [WTOF]、=PLAF= 或 -1STG-。",
|
||||
"announcement": "Manual application review enabled for testing request/cancel workflow.",
|
||||
"region": "NA", "autoAccept": false, "createdAfterDays": 35,
|
||||
"region": "NA", "autoAccept": false, "createdAfterDays": 35, "targetMemberCount": 58,
|
||||
"rating": { "arc": 1550, "hist": 1760, "sim": 1490 },
|
||||
"members": [
|
||||
{ "uid": "900004001", "nick": "Major_Winters", "role": "LEADER", "title": "title_brother_in_arms", "icon": "cardicon_03", "unit": "us_m1a2_sep2_abrams", "activity": 360 },
|
||||
@@ -100,7 +137,7 @@
|
||||
"slogan": "轻量级战术分队 · 侦察与快速反应",
|
||||
"desc": "战斗群(Battalion)类型预置联队,开启自动加入,支持体验战斗群架构与联队扩编。",
|
||||
"announcement": "轻装侦察分队常驻开放。",
|
||||
"region": "Global", "autoAccept": true, "createdAfterDays": 48,
|
||||
"region": "Global", "autoAccept": true, "createdAfterDays": 48, "targetMemberCount": 2,
|
||||
"rating": { "arc": 1410, "hist": 1610, "sim": 1320 },
|
||||
"members": [
|
||||
{ "uid": "900005001", "nick": "Ghost_Scout", "role": "LEADER", "title": "title_scout", "icon": "cardicon_15", "unit": "us_hstvl", "activity": 360 },
|
||||
|
||||
Reference in new issue
Block a user