英雄碎片修改

This commit is contained in:
2025-01-09 10:49:11 +08:00
parent 4c68d9484b
commit 4d6d35725b
5 changed files with 1336 additions and 1269 deletions

View File

@@ -65,7 +65,11 @@ export class SingletonModuleComp extends ecs.Comp {
{uuid:9001,num:100000,type:0,cost:0,inventory:5},
{uuid:9003,num:1000,type:1,cost:0,inventory:5},
{uuid:1001,num:10,type:2,cost:10000,inventory:99},
{uuid:5001,num:10,type:3,cost:10000,inventory:99},
{uuid:1001,num:10,type:2,cost:10000,inventory:99},
{uuid:1001,num:10,type:2,cost:10000,inventory:99},
{uuid:1001,num:10,type:2,cost:10000,inventory:99},
{uuid:1001,num:10,type:2,cost:10000,inventory:99},
{uuid:1001,num:10,type:2,cost:10000,inventory:99},
];
items:any={
1001:{uuid:1001,num:10,x1:1},

View File

@@ -726,9 +726,8 @@ export class HeroViewComp extends CCComp {
this.pw+= p
}
/**
* 增加英雄的行动点数AP
* @param ap 要增加的行动点数
* @param time 可选参数表示增加行动点数的时间默认为0。
* 增加英雄的攻击AP
* @param ap 要增加的攻击
*/
add_ap(ap: number){
this.ap += Math.floor(ap);