Merge pull request #1121 from lieren2023/lieren2023-patch-7

修改丁原义子标记彩蛋
This commit is contained in:
Spmario233 2024-03-23 11:47:05 +08:00 committed by GitHub
commit 0bc88c2076
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 22 additions and 1 deletions

View File

@ -6620,6 +6620,16 @@ game.import('character',function(lib,game,ui,get,ai,_status){
var target=result.targets[0];
player.logSkill('cixiao',target);
target.addSkills('panshi');
// 彩蛋
var str;
if(target.name.indexOf('lvbu')!=-1){
str='公若不弃,布愿拜为义父';
} else if(target.sex=='male'){
str='我是'+get.translation(player)+'的义子';
} else if(target.sex=='female'){
str='我是'+get.translation(player)+'的义女';
} else str='我们是'+get.translation(player)+'的义子和义女';
target.storage.panshi=str;
}
event.finish();
'step 2'
@ -6660,6 +6670,16 @@ game.import('character',function(lib,game,ui,get,ai,_status){
}
}).concat(result.targets),'green');
target.addSkills('panshi');
// 彩蛋
var str;
if(target.name.indexOf('lvbu')!=-1){
str='公若不弃,布愿拜为义父';
} else if(target.sex=='male'){
str='我是'+get.translation(player)+'的义子';
} else if(target.sex=='female'){
str='我是'+get.translation(player)+'的义女';
} else str='我们是'+get.translation(player)+'的义子和义女';
target.storage.panshi=str;
}
else event.finish();
'step 4'
@ -6706,7 +6726,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
marktext:'子',
intro:{
name:'义子',
content:'我是儿子',
content:'$',
},
group:'panshi_damage',
},
@ -6719,6 +6739,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
},
content:function(){
trigger.num++;
if(trigger.source.name.indexOf('lvbu')!=-1) trigger.source.storage.panshi='大丈夫生居天地之间,岂能郁郁久居人下';// 彩蛋
var evt=event.getParent('phaseUse');
if(evt&&evt.player==player) evt.skipped=true;
},