Skip to content

[Bug] 被魔法骑士抑制后,升级带来的次要资源消耗减少不会还原 #78

Description

@iouter

模块范围

Public API(公开 API)

严重程度

Minor(轻微)

发生了什么?

被魔法骑士抑制后,升级带来的次要资源消耗减少不会还原

我代码是这么写的:
protected void UpgradeNinjutsuValueBy(int addend)
{
DynamicVars.Ninjutsu().UpgradeValueBy(addend);
this.SecondaryResourceUses()
.SpendIfAvailable(RenShu, LexKela.Id, DynamicVars.Ninjutsu().IntValue);
}

然后在OnUpgrade中调用了这个函数。

复现步骤

升级蕾忍的一字切,再让抑制效果将其降级。

期望行为

应当还原成初始的形态

日志 / 堆栈

RitsuLib 版本

0.4.46

运行环境

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/apiPublic API, contracts, or compatibility surface.priority/p3Low priority or backlog.severity/minorMinor defect, polish issue, or low-impact bug.status/needs-triageNeeds maintainer or analyzer triage.type/bugDefect or incorrect behavior in RitsuLib.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions