瀏覽代碼

Merge branch 'fix/c1-mixed-operation-feedback' of LInE/Ifractions-web into develop

laira 1 月之前
父節點
當前提交
ae1917f9af
共有 1 個文件被更改,包括 3 次插入1 次删除
  1. 3 1
      js/games/circleOne.js

+ 3 - 1
js/games/circleOne.js

@@ -684,7 +684,9 @@ const circleOne = {
           nominators[i] = n + 0;
           denominators[i] = m + 0;
           values[i] = nm;
-          valueReal += nm;
+          if (gameOperation === 'mixed')
+            valueReal = temp < 0 ? valueReal - nm : valueReal + nm;
+          else valueReal += nm;
         }
 
         for (let i = 0; i < blocks; i++) {