提交锻造系统

This commit is contained in:
PC-20230316NUNE\Administrator
2024-01-08 18:55:00 +08:00
parent e737a09828
commit e8a1cb9362
39 changed files with 9319 additions and 2035 deletions

View File

@@ -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);
//吞噬