继承时增加倍率
This commit is contained in:
parent
1701dfa38b
commit
13d854467e
@ -12,6 +12,7 @@ import SkillMan from "../skill/SkillMan";
|
|||||||
import { Card } from "rooms/schema/Card";
|
import { Card } from "rooms/schema/Card";
|
||||||
import arrUtil from "utils/array.util";
|
import arrUtil from "utils/array.util";
|
||||||
import { SKillEffectData } from "message/SkillInfo";
|
import { SKillEffectData } from "message/SkillInfo";
|
||||||
|
import { GameEnv } from "cfg/GameEnv";
|
||||||
|
|
||||||
export class PlayerHandler {
|
export class PlayerHandler {
|
||||||
public _player: Player;
|
public _player: Player;
|
||||||
@ -196,7 +197,8 @@ export class PlayerHandler {
|
|||||||
if(cfg.type_id == EffectCardType.NPC || cfg.type_id == EffectCardType.NPC_CUSTOM){
|
if(cfg.type_id == EffectCardType.NPC || cfg.type_id == EffectCardType.NPC_CUSTOM){
|
||||||
let exap = 0;
|
let exap = 0;
|
||||||
if(oldpet){
|
if(oldpet){
|
||||||
exap = oldpet.totalAP();
|
let env = new GameEnv();
|
||||||
|
exap = oldpet.totalAP() * env.petInheritRate;
|
||||||
this.delPet(oldpet);
|
this.delPet(oldpet);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user