浏览代码

修复bug,机器人死亡将余额设置为0

hl 1 年之前
父节点
当前提交
c065f1e890
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      src/robot.js

+ 1 - 0
src/robot.js

@@ -260,6 +260,7 @@ async function run(param) {
             robotStatus(app)
             app.childProcess = undefined
             app.status = 0
+            app.nowBalance = 0
         });
         app.threadStatus = RobotStatus.RUNNING
         return resolve(true)