提交升级

This commit is contained in:
DESKTOP-5RP3AKU\Jisol
2023-11-28 02:13:05 +08:00
parent 62959f80e4
commit 07db3912cc
46 changed files with 2482 additions and 961 deletions

View File

@@ -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
/**
* 默认攻击属性
*/

View File

@@ -8,5 +8,10 @@
"id": 110002,
"name": "防御",
"sign": "Defend"
},
{
"id": 110003,
"name": "血量",
"sign": "Blood"
}
]

View File

@@ -1,6 +1,7 @@
[
{
"id": 0,
"Blood": 100,
"Attack": 10,
"Defend": 5
}