清理smc
This commit is contained in:
@@ -188,18 +188,6 @@ export class HeroViewComp extends CCComp {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
exp_add(exp:number=0){
|
||||
if(this.box_group==BoxSet.HERO){
|
||||
smc.vmdata.mission.exp +=exp
|
||||
}
|
||||
if(this.box_group==BoxSet.MONSTER){
|
||||
smc.vmdata.mission.mexp +=exp
|
||||
}
|
||||
}
|
||||
power_add(p:number){
|
||||
this.pw+= p
|
||||
}
|
||||
add_shield(shield:number){
|
||||
this.shield =shield
|
||||
if(this.shield>0) this.BUFFCOMP.show_shield(true)
|
||||
@@ -289,8 +277,6 @@ export class HeroViewComp extends CCComp {
|
||||
|
||||
dead(){
|
||||
this.BUFFCOMP.dead()
|
||||
this.exp_add(this.dexp)
|
||||
this.power_add(this.dpw)
|
||||
this.to_drop()
|
||||
}
|
||||
//掉落物品
|
||||
@@ -376,9 +362,6 @@ export class HeroViewComp extends CCComp {
|
||||
private showDamageImmediate(damage: number, isCrit: boolean) {
|
||||
this.BUFFCOMP.in_atked();
|
||||
this.atked_count++;
|
||||
this.exp_add(this.uaexp);
|
||||
this.power_add(this.uapw);
|
||||
|
||||
if (isCrit) {
|
||||
this.BUFFCOMP.tooltip(4, damage.toFixed(0), damage);
|
||||
console.log("暴击伤害:" + damage);
|
||||
|
||||
Reference in New Issue
Block a user