瀏覽代碼

高度取整

woso_javan 2 月之前
父節點
當前提交
abdd670ee1
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      assets/module_storm_sunder/Script/Component/TornadoComponent.ts

+ 1 - 1
assets/module_storm_sunder/Script/Component/TornadoComponent.ts

@@ -305,7 +305,7 @@ export class TornadoComponent extends Component {
 
 
         const finialExp = AttributeBonusMgr.inst.getExpBonus(objExp, isAI);
         const finialExp = AttributeBonusMgr.inst.getExpBonus(objExp, isAI);
         this.currentExp += finialExp;
         this.currentExp += finialExp;
-        this.height += finialExp * AttributeBonusMgr.inst.userModel.game_exp_height;
+        this.height += Math.floor(finialExp * AttributeBonusMgr.inst.userModel.game_exp_height);
         Effect2DUIMgr.inst.addExpProp(this.node, finialExp);
         Effect2DUIMgr.inst.addExpProp(this.node, finialExp);
 
 
         if (this.currentExp >= this.nextExp) {
         if (this.currentExp >= this.nextExp) {