Skip to content

Commit

Permalink
使用治疗时,额外提示伤害值
Browse files Browse the repository at this point in the history
  • Loading branch information
RancherJie committed Jul 13, 2024
1 parent b49ee16 commit 004503e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion character/shiZhouNian.js
Original file line number Diff line number Diff line change
Expand Up @@ -4163,8 +4163,9 @@ game.import('character',function(lib,game,ui,get,ai,_status){
forced:true,
content:function(){
'step 0'
var num=trigger.parent.num;
var list=[0,1];
player.chooseControl(list).set('prompt','使用的治疗数量').set('ai',function(){return list.length-1;});
player.chooseControl(list).set('prompt','使用的治疗数量,目前伤害量'+num).set('ai',function(){return list.length-1;});
'step 1'
var zhiLiaonum=result.control;
if(zhiLiaonum>0){
Expand Down
2 changes: 1 addition & 1 deletion mode/xingbei.js
Original file line number Diff line number Diff line change
Expand Up @@ -1446,7 +1446,7 @@ game.import('mode',function(lib,game,ui,get,ai,_status){
if(i>num) break;
list.push(i);
}
player.chooseControl(list).set('prompt','使用的[治疗]数量').set('ai',function(){return list.length-1;});
player.chooseControl(list).set('prompt','使用的[治疗]数量,目前伤害量'+num).set('ai',function(){return list.length-1;});
"step 1"
var zhiLiaonum=result.control;
if(zhiLiaonum>0){
Expand Down

0 comments on commit 004503e

Please sign in to comment.