123456789101112131415161718192021222324252627282930313233343536373839404142 |
- using CommonAI.Data;
- using CommonAI.Zone;
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- //using System.Threading.Tasks;
- namespace CommonAI.ZoneServer.JSGModule
- {
- public class JSGModule
- {
- public static int GetSpaceDiveSize(SceneType sceneType)
- {
- if (sceneType == CommonAI.Data.SceneType.NCS_MutilCross)
- {
- return 1;
- }
- else if (sceneType == CommonAI.Data.SceneType.PickLotus)
- {
- return 20;
- }
- else
- {
- return 12;
- }
- }
- //攻击模式是否对宠物有效
- public static bool IsExpectValidForPet(SkillTemplate.CastTarget type)
- {
- if (type == SkillTemplate.CastTarget.Alias || type == SkillTemplate.CastTarget.PetForMaster || type == SkillTemplate.CastTarget.EveryOne
- || type == SkillTemplate.CastTarget.AlliesExcludeSelf || type == SkillTemplate.CastTarget.AlliesIncludeSelf ||
- type == SkillTemplate.CastTarget.EveryOneExcludeSelf)
- {
- return true;
- }
- return false;
- }
- }
- }
|