|
@@ -150,6 +150,7 @@ export class TornadoComponent extends Component {
|
|
|
otherCollider.node.parent = randomPoint;
|
|
|
otherCollider.node.setPosition(Vec3.ZERO);
|
|
|
propComp.swallow();
|
|
|
+ this.addExpByProp(propComp);
|
|
|
}
|
|
|
}
|
|
|
}
|
|
@@ -191,16 +192,17 @@ export class TornadoComponent extends Component {
|
|
|
this.stormLevelUp();
|
|
|
this.currentLv++;
|
|
|
|
|
|
- //TODO 计算升级经验
|
|
|
- this.currentExp = 0;
|
|
|
- this.nextExp += this.nextExp;
|
|
|
+ this.playerInfo.level = this.currentLv;
|
|
|
+ Effect2DUIMgr.inst.updatePlayerInfo(this.node, this.playerInfo);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
private stormLevelUp() {
|
|
|
//DOTO 计算攻击速度等属性
|
|
|
this.attack += this.attack;
|
|
|
- this.speed += this.speed;
|
|
|
+ this.speed += this.speed * 0.1;
|
|
|
+ this.nextExp += this.nextExp;
|
|
|
+ this.currentExp = 0;
|
|
|
}
|
|
|
|
|
|
protected onDestroy(): void {
|