英雄碎片修改
This commit is contained in:
@@ -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},
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user