mirror of
https://gitee.com/jisol/jisol-game/
synced 2025-09-27 02:36:14 +00:00
添加角色 远程攻击逻辑
This commit is contained in:
@@ -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,
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user