mirror of
https://gitee.com/jisol/jisol-game/
synced 2025-09-27 02:36:14 +00:00
提交锻造系统
This commit is contained in:
@@ -9,6 +9,7 @@ import { API, PlayerPetOV } from "../../../consts/API";
|
||||
import { GAPI } from "../../../consts/GAPI";
|
||||
import GOnHookData from "../../../data/GOnHookData";
|
||||
import PlayerPetData from "../../../data/PlayerPetData";
|
||||
import PlayerTacticalData from "../../../data/PlayerTacticalData";
|
||||
import { GUI } from "../../../ui/UIConfig";
|
||||
|
||||
export enum GOnHookManagerEvent{
|
||||
@@ -96,9 +97,9 @@ export default class GOnHookManager extends Singleton{
|
||||
//自动吞噬
|
||||
for (const item of this.onHookEngulfPets) {
|
||||
|
||||
//获取可吞噬的宠物
|
||||
//获取可吞噬的宠物 ( 等级0, 同类宠物, 不是自己, 不在阵法中)
|
||||
let engulfs = PlayerPetData.getIns().getData()
|
||||
.filter(value => (value.petStar || 0) == 0 && item.petTbId == value.petTbId && item.petId != value.petId)
|
||||
.filter(value => (value.petStar || 0) == 0 && item.petTbId == value.petTbId && item.petId != value.petId && PlayerTacticalData.getIns().getItemIndex(value.petId) != -1)
|
||||
.map(value => value.petId);
|
||||
|
||||
//吞噬
|
||||
|
Reference in New Issue
Block a user