Browse Source

高度取整

woso_javan 2 months ago
parent
commit
abdd670ee1
1 changed files with 1 additions and 1 deletions
  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);
         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);
 
         if (this.currentExp >= this.nextExp) {