mirror of
https://gitee.com/jisol/jisol-game/
synced 2025-09-27 02:36:14 +00:00
提交升级
This commit is contained in:
@@ -349,7 +349,7 @@ export class TbGRoleUpLevel {
|
||||
if (_json_.grade === undefined) { throw new Error() }
|
||||
this.grade = _json_.grade
|
||||
if (_json_.materials === undefined) { throw new Error() }
|
||||
{ this.materials = []; for(let _ele of _json_.materials) { let _e; _e = new TbGEntity.Resource(_ele); this.materials.push(_e);}}
|
||||
{ this.materials = []; for(let _ele of _json_.materials) { let _e; _e = new TbGEntity.TResource(_ele); this.materials.push(_e);}}
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -359,7 +359,7 @@ export class TbGRoleUpLevel {
|
||||
/**
|
||||
* 消耗的材料
|
||||
*/
|
||||
readonly materials: TbGEntity.Resource[]
|
||||
readonly materials: TbGEntity.TResource[]
|
||||
|
||||
resolve(tables:Tables)
|
||||
{
|
||||
@@ -373,7 +373,7 @@ export namespace TbGEntity {
|
||||
/**
|
||||
* 资源信息
|
||||
*/
|
||||
export class Resource {
|
||||
export class TResource {
|
||||
|
||||
constructor(_json_: any) {
|
||||
if (_json_.id === undefined) { throw new Error() }
|
||||
@@ -498,6 +498,8 @@ export class TbGRoleBaseAttribute {
|
||||
constructor(_json_: any) {
|
||||
if (_json_.id === undefined) { throw new Error() }
|
||||
this.id = _json_.id
|
||||
if (_json_.Blood === undefined) { throw new Error() }
|
||||
this.Blood = _json_.Blood
|
||||
if (_json_.Attack === undefined) { throw new Error() }
|
||||
this.Attack = _json_.Attack
|
||||
if (_json_.Defend === undefined) { throw new Error() }
|
||||
@@ -508,6 +510,10 @@ export class TbGRoleBaseAttribute {
|
||||
* 角色Id (0 则默认)
|
||||
*/
|
||||
readonly id: number
|
||||
/**
|
||||
* 默认血量
|
||||
*/
|
||||
readonly Blood: number
|
||||
/**
|
||||
* 默认攻击属性
|
||||
*/
|
||||
|
Reference in New Issue
Block a user