Angel Beats! -1st beat- CHS Translation!

This commit is contained in:
Spmario233 2021-01-16 22:42:47 +08:00
parent f63f3800e9
commit bcc652fee9
13 changed files with 59 additions and 51 deletions

View File

@ -1264,9 +1264,9 @@ game.import('character',function(lib,game,ui,get,ai,_status){
result:{ result:{
player:function(player){ player:function(player){
if(player.countCards('he',function(card){ if(player.countCards('he',function(card){
if(get.type(card)=='equip') return 8-get.value(card); if(get.type(card)=='equip') return get.value(card)<8;
return 6-get.value(card); return get.value(card)<6;
})<2) return -0.5; })<2) return 0;
return player.getUseValue({name:'kaihua'}); return player.getUseValue({name:'kaihua'});
}, },
}, },
@ -3891,7 +3891,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
var target=result.targets[0]; var target=result.targets[0];
player.addExpose(0.2); player.addExpose(0.2);
player.line(target,'thunder'); player.line(target,'thunder');
target.damage(); target.damage('thunder');
}, },
}, },
hisako_zhuanyun:{ hisako_zhuanyun:{
@ -4916,7 +4916,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
check:function(button){ check:function(button){
var player=_status.event.player; var player=_status.event.player;
if(player.countCards('h',button.link[2])>0) return 0; if(player.countCards('h',button.link[2])>0) return 0;
if(button.link[2]=='wugu') return 0; if(['wugu','zhulu_card'].contains(button.link[2])) return 0;
var effect=player.getUseValue(button.link[2]); var effect=player.getUseValue(button.link[2]);
if(effect>0) return effect; if(effect>0) return effect;
return 0; return 0;
@ -4940,14 +4940,16 @@ game.import('character',function(lib,game,ui,get,ai,_status){
} }
}, },
ai:{ ai:{
order:4, order:1,
result:{ result:{
player:function(player){ player:function(player){
var cards=player.getCards('he').sort(function(a,b){ var cards=player.getCards('he').sort(function(a,b){
return get.value(a)-get.value(b); return get.value(a)-get.value(b);
}); });
var num=(player.getStat('skill').haruka_shuangche||0); var num=(player.getStat('skill').haruka_shuangche||0)+1;
if(cards.length>num){ if(player.needsToDiscard()>=num) return 1;
if(player.hp>2) return 1;
if(cards.length>=num){
var val=0; var val=0;
for(var i=0;i<cards.length;i++){ for(var i=0;i<cards.length;i++){
val+=get.value(cards[i]); val+=get.value(cards[i]);

View File

@ -2518,6 +2518,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
"step 0" "step 0"
player.awakenSkill('yeyan'); player.awakenSkill('yeyan');
event.num=0; event.num=0;
targets.sortBySeat();
"step 1" "step 1"
if(cards.length==4) event.goto(2); if(cards.length==4) event.goto(2);
else { else {

View File

@ -6584,7 +6584,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
jinglve3:'景略', jinglve3:'景略',
jinglve_info:'出牌阶段限一次,你可以观看一名其他角色的手牌,将其中一张牌标记为「死士」。当其使用对应的实体牌中包含「死士」的牌时,你取消此牌的所有目标。当「死士」牌不因使用而进入弃牌堆,或其回合结束后,若「死士」牌仍在其区域内,则你获得此牌。', jinglve_info:'出牌阶段限一次,你可以观看一名其他角色的手牌,将其中一张牌标记为「死士」。当其使用对应的实体牌中包含「死士」的牌时,你取消此牌的所有目标。当「死士」牌不因使用而进入弃牌堆,或其回合结束后,若「死士」牌仍在其区域内,则你获得此牌。',
shanli:'擅立', shanli:'擅立',
shanli_info:'觉醒技准备阶段若你已发动过〖败移〗且对至少两名角色发动过〖景略〗则你减1点体力上限并选择一名角色。系统随机选择三个不为〖忘隙(仲村由理)〗的主公技,然后你选择其中一个技能,令其获得之。其将交互表情中的【拖鞋】和【酒杯】替换为【手铐】和【玉玺】。', shanli_info:'觉醒技准备阶段若你已发动过〖败移〗且对至少两名角色发动过〖景略〗则你减1点体力上限并选择一名角色。系统随机选择三个不为〖忘隙(仲村由理)〗的主公技,然后你选择其中一个技能,令其获得之。其将交互表情中的【拖鞋】和【酒杯】替换为【枷锁】和【玉玺】。',
re_lingtong:'手杀凌统', re_lingtong:'手杀凌统',
re_liubiao:'手杀刘表', re_liubiao:'手杀刘表',
hucheer:'胡车儿', hucheer:'胡车儿',

View File

@ -4815,7 +4815,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
viewAs:{ viewAs:{
name:"sha", name:"sha",
}, },
viewAsFilter:function (player){ viewAsFilter:function(player){
if(get.zhu(player,'shouyue')){ if(get.zhu(player,'shouyue')){
if(!player.countCards('he')) return false; if(!player.countCards('he')) return false;
} }
@ -4826,6 +4826,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
prompt:"将一张红色牌当杀使用或打出", prompt:"将一张红色牌当杀使用或打出",
check:function(card){return 4-get.value(card)}, check:function(card){return 4-get.value(card)},
ai:{ ai:{
respondSha:true,
skillTagFilter:function(player){ skillTagFilter:function(player){
if(get.zhu(player,'shouyue')){ if(get.zhu(player,'shouyue')){
if(!player.countCards('he')) return false; if(!player.countCards('he')) return false;

View File

@ -1544,9 +1544,9 @@ game.import('character',function(lib,game,ui,get,ai,_status){
}; };
'step 3' 'step 3'
if(result.bool){ if(result.bool){
var targets=result.targets; var targets=result.targets.sortBySeat();
if(event.control==event.str1){ if(event.control==event.str1){
player.line(targets); //player.line(targets);
player.logSkill('nzry_kuizhu',targets); player.logSkill('nzry_kuizhu',targets);
game.asyncDraw(targets); game.asyncDraw(targets);
} }
@ -1560,8 +1560,8 @@ game.import('character',function(lib,game,ui,get,ai,_status){
event.goto(2); event.goto(2);
} }
else{ else{
player.line(targets); //player.line(targets);
player.logSkill('nzry_kuizhu'); player.logSkill('nzry_kuizhu',targets);
for(var i=0;i<targets.length;i++){ for(var i=0;i<targets.length;i++){
targets[i].damage(); targets[i].damage();
}; };

View File

@ -700,6 +700,9 @@ game.import('character',function(lib,game,ui,get,ai,_status){
}, },
trigger:{player:'damageEnd'}, trigger:{player:'damageEnd'},
forced:true, forced:true,
filter:function(event,player){
return player!=_status.currentPhase;
},
content:function(){ content:function(){
'step 0' 'step 0'
var func=function(result){ var func=function(result){
@ -759,7 +762,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
player.$give(cards[0],target,false); player.$give(cards[0],target,false);
game.log(player,'将',cards[0],'作为“箓”置于',target,'的武将牌上'); game.log(player,'将',cards[0],'作为“箓”置于',target,'的武将牌上');
target.addSkill('zlshoufu2'); target.addSkill('zlshoufu2');
target.storage.zlshoufu2_markcount=0; //target.storage.zlshoufu2_markcount=0;
target.markAuto('zlshoufu2',cards); target.markAuto('zlshoufu2',cards);
'step 3' 'step 3'
game.delayx(); game.delayx();
@ -767,7 +770,14 @@ game.import('character',function(lib,game,ui,get,ai,_status){
ai:{ ai:{
order:1, order:1,
result:{ result:{
player:1, player:function(player){
if(game.hasPlayer(function(target){
return target!=player&&!target.hasSkill('zlshoufu2')&&get.attitude(player,target)<0;
})||!game.hasPlayer(function(target){
return target!=player&&!target.hasSkill('zlshoufu2')&&get.attitude(player,target)>0;
})) return 1;
return 0;
},
}, },
}, },
}, },
@ -804,26 +814,16 @@ game.import('character',function(lib,game,ui,get,ai,_status){
if(!storage.length) return false; if(!storage.length) return false;
if(event.name=='damage') return true; if(event.name=='damage') return true;
if(event.type!='discard'||event.getParent('phaseDiscard').player!=player) return false; if(event.type!='discard'||event.getParent('phaseDiscard').player!=player) return false;
var num=0;
for(var i of event.cards2){ for(var i of event.cards2){
if(storage.filter(function(magic){ if(storage.filter(function(magic){
return get.type2(magic)==get.type2(i,event.hs.contains(i)?player:false); return get.type2(magic)==get.type2(i,event.hs.contains(i)?player:false);
}).length) return true; }).length) num++;
} }
return false; return num>1;
}, },
content:function(){ content:function(){
if(trigger.name=='lose'){ player.removeSkill('zlshoufu2');
for(var i of trigger.cards2){
if(player.getStorage('zlshoufu2').filter(function(magic){
return get.type2(magic)==get.type(i,trigger.hs.contains(i)?player:false);
}).length) player.storage.zlshoufu2_markcount++;
}
}
if(trigger.name=='damage'||player.storage.zlshoufu2_markcount>=2){
player.unmarkSkill('zlshoufu2');
player.removeSkill('zlshoufu2');
}
else player.markSkill('zlshoufu2');
}, },
}, },
//蔡阳 //蔡阳
@ -15551,7 +15551,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
zlhuji_info:'锁定技,你与其他角色的距离-1当你于回合外受到伤害后你可进行判定若结果为红色视为你对伤害来源使用一张【杀】无距离限制。', zlhuji_info:'锁定技,你与其他角色的距离-1当你于回合外受到伤害后你可进行判定若结果为红色视为你对伤害来源使用一张【杀】无距离限制。',
zlshoufu:'授符', zlshoufu:'授符',
zlshoufu2:'授符', zlshoufu2:'授符',
zlshoufu_info:'出牌阶段限一次,你可摸一张牌,然后将一张手牌置于一名没有【箓】的角色的武将牌上,称为【箓】;其不能使用和打出与【箓】同类型的牌。该角色受到伤害后,或于弃牌阶段弃置至少2张与【箓】同类型的牌后,将【箓】置入弃牌堆。', zlshoufu_info:'出牌阶段限一次,你可摸一张牌,然后将一张手牌置于一名没有【箓】的角色的武将牌上,称为【箓】;其不能使用和打出与【箓】同类型的牌。该角色受到伤害后,或于弃牌阶段弃置至少张与【箓】同类型的牌后,将【箓】置入弃牌堆。',
ol_zhangchangpu:'OL张昌蒲', ol_zhangchangpu:'OL张昌蒲',
olxingshen:'省身', olxingshen:'省身',
olxingshen_info:'当你受到伤害后你可以随机摸至多两张牌。若如此做你获得X个“省”且下一次发动〖严教〗展示牌时移去所有“省”并多展示等量的牌。X为你已损失的体力值且你至多拥有6个“省”', olxingshen_info:'当你受到伤害后你可以随机摸至多两张牌。若如此做你获得X个“省”且下一次发动〖严教〗展示牌时移去所有“省”并多展示等量的牌。X为你已损失的体力值且你至多拥有6个“省”',

View File

@ -5933,6 +5933,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
}, },
ai:{ ai:{
order:11, order:11,
expose:0.2,
result:{ result:{
target:function(player,target){ target:function(player,target){
if(ui.selected.cards.length){ if(ui.selected.cards.length){

View File

@ -2285,7 +2285,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
effect:{ effect:{
target:function(card,player,target){ target:function(card,player,target){
if(get.tag(card,'damage')){ if(get.tag(card,'damage')){
if(target.hp>1&&target.hasFriend()) return 0.8; if(target.hp>1&&target.hasFriend()) return 0.4;
} }
} }
} }

View File

@ -1,5 +1,5 @@
window.noname_asset_list=[ window.noname_asset_list=[
'v1.9.108.2.1', 'v1.9.108.2.2',
'audio/background/aozhan_chaoming.mp3', 'audio/background/aozhan_chaoming.mp3',
'audio/background/aozhan_online.mp3', 'audio/background/aozhan_online.mp3',
'audio/background/aozhan_rewrite.mp3', 'audio/background/aozhan_rewrite.mp3',
@ -4638,8 +4638,8 @@ window.noname_asset_list=[
'image/emotion/throw_emotion/flower2.png', 'image/emotion/throw_emotion/flower2.png',
'image/emotion/throw_emotion/shoe1.png', 'image/emotion/throw_emotion/shoe1.png',
'image/emotion/throw_emotion/shoe2.png', 'image/emotion/throw_emotion/shoe2.png',
'image/emotion/throw_emotion/shoukao1.png', 'image/emotion/throw_emotion/jiasuo1.png',
'image/emotion/throw_emotion/shoukao2.png', 'image/emotion/throw_emotion/jiasuo2.png',
'image/emotion/throw_emotion/wine1.png', 'image/emotion/throw_emotion/wine1.png',
'image/emotion/throw_emotion/wine2.png', 'image/emotion/throw_emotion/wine2.png',
'image/emotion/throw_emotion/yuxisx1.png', 'image/emotion/throw_emotion/yuxisx1.png',

View File

@ -9783,7 +9783,7 @@
wine:'酒杯', wine:'酒杯',
shoe:'拖鞋', shoe:'拖鞋',
yuxisx:'玉玺', yuxisx:'玉玺',
shoukao:'枷锁', jiasuo:'枷锁',
junk:'平凡', junk:'平凡',
common:'普通', common:'普通',
rare:'精品', rare:'精品',
@ -15969,24 +15969,27 @@
$throwEmotion:function(target,name){ $throwEmotion:function(target,name){
game.addVideo('throwEmotion',this,[target.dataset.position,name]); game.addVideo('throwEmotion',this,[target.dataset.position,name]);
var getLeft=function(player){ var getLeft=function(player){
if(player==game.me&&!ui.fakeme) return player.node.avatar.offsetWidth/2; if(player==game.me&&!ui.fakeme&&!ui.chess) return player.getLeft()+player.node.avatar.offsetWidth/2;
return player.offsetLeft+player.offsetWidth/2; return player.getLeft()+player.offsetWidth/2;
} }
var player=this; var player=this;
var emotion=ui.create.div('','<img src="'+lib.assetURL+'image/emotion/throw_emotion/'+name+'1.png">',ui.window); var emotion=ui.create.div('','<div style="text-align:center"> <img src="'+lib.assetURL+'image/emotion/throw_emotion/'+name+'1.png"> </div>',game.chess?ui.chess:ui.window);
var width=30; emotion.style.width='60px';
var height=30; emotion.style.height='60px';
var width=emotion.offsetWidth/2;
var height=emotion.offsetHeight/2;
if(game.chess) width+=60;
var left=getLeft(player)-width; var left=getLeft(player)-width;
var top=player.offsetTop+player.offsetHeight/3-height; var top=player.getTop()+player.offsetHeight/3-height;
emotion.style.left=left+'px'; emotion.style.left=left+'px';
emotion.style.top=top+'px'; emotion.style.top=top+'px';
var left2=getLeft(target)-width; var left2=getLeft(target)-width;
var top2=target.offsetTop+target.offsetHeight/3-height; var top2=target.getTop()+target.offsetHeight/3-height;
emotion.style['z-index']=10; emotion.style['z-index']=10;
emotion.style.transform='translateY('+(top2-top)+'px) translateX('+(left2-left)+'px)'; emotion.style.transform='translateY('+(top2-top)+'px) translateX('+(left2-left)+'px)';
if(lib.config.background_audio) game.playAudio('effect','throw_'+name+get.rand(1,2)); if(lib.config.background_audio) game.playAudio('effect','throw_'+name+get.rand(1,2));
setTimeout(function(){ setTimeout(function(){
emotion.innerHTML=('<img src="'+lib.assetURL+'image/emotion/throw_emotion/'+name+'2.png">'); emotion.innerHTML=('<div style="text-align:center"> <img src="'+lib.assetURL+'image/emotion/throw_emotion/'+name+'2.png"> </div>');
setTimeout(function(){ setTimeout(function(){
emotion.delete(); emotion.delete();
},1200); },1200);
@ -50947,7 +50950,7 @@
table.style.width='100%'; table.style.width='100%';
table.style.position='relative'; table.style.position='relative';
var listi=['wine','shoe']; var listi=['wine','shoe'];
if(game.me.storage.zhuSkill_shanli) listi=['yuxisx','shoukao']; if(game.me.storage.zhuSkill_shanli) listi=['yuxisx','jiasuo'];
for(var i=0;i<listi.length;i++){ for(var i=0;i<listi.length;i++){
td=ui.create.div('.shadowed.reduce_radius.pointerdiv.tdnode'); td=ui.create.div('.shadowed.reduce_radius.pointerdiv.tdnode');
ui.throwEmotion.add(td); ui.throwEmotion.add(td);

View File

@ -1,11 +1,11 @@
window.noname_update={ window.noname_update={
version:'1.9.108.2.1', version:'1.9.108.2.2',
update:'1.9.108.2', update:'1.9.108.2.1',
changeLog:[ changeLog:[
'bug修复', '庆祝《Angel Beats! -1st beat-》汉化版发布,特别版本更新!',
], ],
files:[ files:[
'card/extra.js', //'card/extra.js',
//'card/gujian.js', //'card/gujian.js',
//'card/guozhan.js', //'card/guozhan.js',
//'card/gwent.js', //'card/gwent.js',
@ -33,7 +33,7 @@ window.noname_update={
'character/sp.js', 'character/sp.js',
'character/sp2.js', 'character/sp2.js',
//'character/tw.js', //'character/tw.js',
'character/standard.js', //'character/standard.js',
//'character/swd.js', //'character/swd.js',
//'character/xianjian.js', //'character/xianjian.js',
//'character/xinghuoliaoyuan.js', //'character/xinghuoliaoyuan.js',
@ -45,7 +45,7 @@ window.noname_update={
//'layout/nova/layout.css', //'layout/nova/layout.css',
//'mode/identity.js', //'mode/identity.js',
//'mode/doudizhu.js', //'mode/doudizhu.js',
'mode/guozhan.js', //'mode/guozhan.js',
//'mode/chess.js', //'mode/chess.js',
//'mode/tafang.js', //'mode/tafang.js',
//'mode/single.js', //'mode/single.js',

Binary file not shown.

After

Width:  |  Height:  |  Size: 25 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 25 KiB