Skip to content
hp-1e edited this page Jun 7, 2026 · 2 revisions

常见问题 / FAQ

可重复技能会消耗技能点吗?

会。重复点击会按照技能定义中的 cost 消耗技能点,并再次触发技能奖励。

setRepeatable(..., true)setRepeatable(..., true, 5) 有什么区别?

不传上限时表示无限重复点击。传入 5 时表示最多获得 5 次奖励,首次解锁也计入次数。

getRemainingRepeats 返回 -1 是什么意思?

表示该技能没有重复次数上限。

为什么建议在 ServerEvents.loaded 里配置可重复技能?

因为可重复技能类型需要在服务端加载后注册,放在 ServerEvents.loaded 可以确保技能配置已经可用。

Does a repeatable skill consume skill points?

Yes. Each repeat uses the skill definition's cost and triggers the skill rewards again.

What does getRemainingRepeats returning -1 mean?

It means the repeatable skill has no repeat limit.

Clone this wiki locally