588 公会攻防战 累计活跃度显示改为从当天开始往前x天(含当天)的累计活跃贡献之和
1个文件已修改
6 ■■■■ 已修改文件
Main/System/GuildAtkDefBat/GuildAtkDefBatManager.cs 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Main/System/GuildAtkDefBat/GuildAtkDefBatManager.cs
@@ -734,14 +734,14 @@
    /// <summary>
    /// 获取当前我的功能累计活跃度
    /// 统计相对当天时间前 prepareDayBefore 天的累计活跃贡献之和
    /// 统计从当天开始往前 prepareDayBefore 天的累计活跃贡献之和
    /// </summary>
    public long GetMyActivityLevel()
    {
        int currentWeekday = TimeUtility.GetCommonWeekday(GetZoneID());
        long total = 0;
        for (int i = 1; i <= prepareDayBefore; i++)
        for (int i = 0; i < prepareDayBefore; i++)
        {
            // (currentWeekday - i) 转成 1-7 范围
            int targetWeekday = ((currentWeekday - i - 1 + 7) % 7) + 1;
@@ -1009,4 +1009,4 @@
        return total;
    }
    #endregion
}
}