Skip to content

[Bug]: pl.addExperience(count)无法增加经验 #243

@cjxpj

Description

@cjxpj

Describe the bug

我一开始以为我写有问题,数据库能正常响应,我加了addExperience后数据库还是有响应,但是无法执行,我套了try也捕获不出来问题,直到我把addExperience注释掉后程序正常运行,我又拿了setCurrentExperience测试后没问题,才知道是增加经验有问题。

这个BUG他不会有任何报错,并且让你代码运行同时又不告诉你问题,希望早点修复。
测试成功代码:
Image

补充

setCurrentExperience也有问题,不管填什么数字都直接把经验条拉满了。。。

To Reproduce

Image

Expected behavior

增加经验

Screenshots

No response

Platform

Win11

BDS Version

1.21.50.10

LeviLamina Version

1.0.1

LegacyScriptEngine Version

0.9.7

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions