锻造升级

This commit is contained in:
DESKTOP-5RP3AKU\Jisol
2024-01-10 01:36:20 +08:00
parent 6fbb142edc
commit 0d745b9715
22 changed files with 5392 additions and 1230 deletions

View File

@@ -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)
{