mirror of
https://gitee.com/jisol/jisol-game/
synced 2025-09-27 02:36:14 +00:00
锻造升级
This commit is contained in:
@@ -59,6 +59,8 @@ export class TbGRole {
|
||||
{ this.roleSkillIds = []; for(let _ele of _json_.roleSkillIds) { let _e; _e = _ele; this.roleSkillIds.push(_e);}}
|
||||
if (_json_.roleAttackRange === undefined) { throw new Error() }
|
||||
this.roleAttackRange = _json_.roleAttackRange
|
||||
if (_json_.roleHight === undefined) { throw new Error() }
|
||||
this.roleHight = _json_.roleHight
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -81,6 +83,10 @@ export class TbGRole {
|
||||
* 角色攻击范围
|
||||
*/
|
||||
readonly roleAttackRange: number
|
||||
/**
|
||||
* 角色高度
|
||||
*/
|
||||
readonly roleHight: number
|
||||
|
||||
resolve(tables:Tables)
|
||||
{
|
||||
@@ -844,6 +850,10 @@ export class TbGRoleEquipQuality {
|
||||
{ this.odds = []; for(let _ele of _json_.odds) { let _e; _e = _ele; this.odds.push(_e);}}
|
||||
if (_json_.total === undefined) { throw new Error() }
|
||||
this.total = _json_.total
|
||||
if (_json_.materials === undefined) { throw new Error() }
|
||||
{ this.materials = []; for(let _ele of _json_.materials) { let _e; _e = new TbGEntity.TResource(_ele); this.materials.push(_e);}}
|
||||
if (_json_.upTime === undefined) { throw new Error() }
|
||||
this.upTime = _json_.upTime
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -858,6 +868,14 @@ export class TbGRoleEquipQuality {
|
||||
* 总概率
|
||||
*/
|
||||
readonly total: number
|
||||
/**
|
||||
* 升级消耗的材料
|
||||
*/
|
||||
readonly materials: TbGEntity.TResource[]
|
||||
/**
|
||||
* 升级所需时间(s)
|
||||
*/
|
||||
readonly upTime: number
|
||||
|
||||
resolve(tables:Tables)
|
||||
{
|
||||
|
Reference in New Issue
Block a user