添加角色 远程攻击逻辑

This commit is contained in:
DESKTOP-5RP3AKU\Jisol
2023-10-27 02:38:08 +08:00
parent 39dd60bb8d
commit 7e402432dd
199 changed files with 7059 additions and 5 deletions

View File

@@ -4,6 +4,7 @@ import GRoleBase from "../base/role/GRoleBase";
//角色实体类
export default interface GRole {
id:number; //宠物Id
range:number; //宠物攻击范围
}
//角色工具类
@@ -24,7 +25,8 @@ export class GRoleUtil{
let info:TableGRole;
if(!(info = TableGRole.getConfig(id))) return null;
return {
id:info.id
id:info.id,
range:info.roleAttackRange,
}
}