Angel Beats! -1st beat- CHS Translation!
This commit is contained in:
parent
f63f3800e9
commit
bcc652fee9
|
@ -1264,9 +1264,9 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
|||
result:{
|
||||
player:function(player){
|
||||
if(player.countCards('he',function(card){
|
||||
if(get.type(card)=='equip') return 8-get.value(card);
|
||||
return 6-get.value(card);
|
||||
})<2) return -0.5;
|
||||
if(get.type(card)=='equip') return get.value(card)<8;
|
||||
return get.value(card)<6;
|
||||
})<2) return 0;
|
||||
return player.getUseValue({name:'kaihua'});
|
||||
},
|
||||
},
|
||||
|
@ -3891,7 +3891,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
|||
var target=result.targets[0];
|
||||
player.addExpose(0.2);
|
||||
player.line(target,'thunder');
|
||||
target.damage();
|
||||
target.damage('thunder');
|
||||
},
|
||||
},
|
||||
hisako_zhuanyun:{
|
||||
|
@ -4916,7 +4916,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
|||
check:function(button){
|
||||
var player=_status.event.player;
|
||||
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]);
|
||||
if(effect>0) return effect;
|
||||
return 0;
|
||||
|
@ -4940,14 +4940,16 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
|||
}
|
||||
},
|
||||
ai:{
|
||||
order:4,
|
||||
order:1,
|
||||
result:{
|
||||
player:function(player){
|
||||
var cards=player.getCards('he').sort(function(a,b){
|
||||
return get.value(a)-get.value(b);
|
||||
});
|
||||
var num=(player.getStat('skill').haruka_shuangche||0);
|
||||
if(cards.length>num){
|
||||
var num=(player.getStat('skill').haruka_shuangche||0)+1;
|
||||
if(player.needsToDiscard()>=num) return 1;
|
||||
if(player.hp>2) return 1;
|
||||
if(cards.length>=num){
|
||||
var val=0;
|
||||
for(var i=0;i<cards.length;i++){
|
||||
val+=get.value(cards[i]);
|
||||
|
|
|
@ -2518,6 +2518,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
|||
"step 0"
|
||||
player.awakenSkill('yeyan');
|
||||
event.num=0;
|
||||
targets.sortBySeat();
|
||||
"step 1"
|
||||
if(cards.length==4) event.goto(2);
|
||||
else {
|
||||
|
|
|
@ -6584,7 +6584,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
|||
jinglve3:'景略',
|
||||
jinglve_info:'出牌阶段限一次,你可以观看一名其他角色的手牌,将其中一张牌标记为「死士」。当其使用对应的实体牌中包含「死士」的牌时,你取消此牌的所有目标。当「死士」牌不因使用而进入弃牌堆,或其回合结束后,若「死士」牌仍在其区域内,则你获得此牌。',
|
||||
shanli:'擅立',
|
||||
shanli_info:'觉醒技,准备阶段,若你已发动过〖败移〗且对至少两名角色发动过〖景略〗,则你减1点体力上限并选择一名角色。系统随机选择三个不为〖忘隙(仲村由理)〗的主公技,然后你选择其中一个技能,令其获得之。其将交互表情中的【拖鞋】和【酒杯】替换为【手铐】和【玉玺】。',
|
||||
shanli_info:'觉醒技,准备阶段,若你已发动过〖败移〗且对至少两名角色发动过〖景略〗,则你减1点体力上限并选择一名角色。系统随机选择三个不为〖忘隙(仲村由理)〗的主公技,然后你选择其中一个技能,令其获得之。其将交互表情中的【拖鞋】和【酒杯】替换为【枷锁】和【玉玺】。',
|
||||
re_lingtong:'手杀凌统',
|
||||
re_liubiao:'手杀刘表',
|
||||
hucheer:'胡车儿',
|
||||
|
|
|
@ -4815,7 +4815,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
|||
viewAs:{
|
||||
name:"sha",
|
||||
},
|
||||
viewAsFilter:function (player){
|
||||
viewAsFilter:function(player){
|
||||
if(get.zhu(player,'shouyue')){
|
||||
if(!player.countCards('he')) return false;
|
||||
}
|
||||
|
@ -4826,6 +4826,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
|||
prompt:"将一张红色牌当杀使用或打出",
|
||||
check:function(card){return 4-get.value(card)},
|
||||
ai:{
|
||||
respondSha:true,
|
||||
skillTagFilter:function(player){
|
||||
if(get.zhu(player,'shouyue')){
|
||||
if(!player.countCards('he')) return false;
|
||||
|
|
|
@ -1544,9 +1544,9 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
|||
};
|
||||
'step 3'
|
||||
if(result.bool){
|
||||
var targets=result.targets;
|
||||
var targets=result.targets.sortBySeat();
|
||||
if(event.control==event.str1){
|
||||
player.line(targets);
|
||||
//player.line(targets);
|
||||
player.logSkill('nzry_kuizhu',targets);
|
||||
game.asyncDraw(targets);
|
||||
}
|
||||
|
@ -1560,8 +1560,8 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
|||
event.goto(2);
|
||||
}
|
||||
else{
|
||||
player.line(targets);
|
||||
player.logSkill('nzry_kuizhu');
|
||||
//player.line(targets);
|
||||
player.logSkill('nzry_kuizhu',targets);
|
||||
for(var i=0;i<targets.length;i++){
|
||||
targets[i].damage();
|
||||
};
|
||||
|
|
|
@ -700,6 +700,9 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
|||
},
|
||||
trigger:{player:'damageEnd'},
|
||||
forced:true,
|
||||
filter:function(event,player){
|
||||
return player!=_status.currentPhase;
|
||||
},
|
||||
content:function(){
|
||||
'step 0'
|
||||
var func=function(result){
|
||||
|
@ -759,7 +762,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
|||
player.$give(cards[0],target,false);
|
||||
game.log(player,'将',cards[0],'作为“箓”置于',target,'的武将牌上');
|
||||
target.addSkill('zlshoufu2');
|
||||
target.storage.zlshoufu2_markcount=0;
|
||||
//target.storage.zlshoufu2_markcount=0;
|
||||
target.markAuto('zlshoufu2',cards);
|
||||
'step 3'
|
||||
game.delayx();
|
||||
|
@ -767,7 +770,14 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
|||
ai:{
|
||||
order:1,
|
||||
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(event.name=='damage') return true;
|
||||
if(event.type!='discard'||event.getParent('phaseDiscard').player!=player) return false;
|
||||
var num=0;
|
||||
for(var i of event.cards2){
|
||||
if(storage.filter(function(magic){
|
||||
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(){
|
||||
if(trigger.name=='lose'){
|
||||
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');
|
||||
player.removeSkill('zlshoufu2');
|
||||
},
|
||||
},
|
||||
//蔡阳
|
||||
|
@ -15551,7 +15551,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
|||
zlhuji_info:'锁定技,你与其他角色的距离-1,当你于回合外受到伤害后,你可进行判定,若结果为红色,视为你对伤害来源使用一张【杀】(无距离限制)。',
|
||||
zlshoufu:'授符',
|
||||
zlshoufu2:'授符',
|
||||
zlshoufu_info:'出牌阶段限一次,你可摸一张牌,然后将一张手牌置于一名没有【箓】的角色的武将牌上,称为【箓】;其不能使用和打出与【箓】同类型的牌。该角色受到伤害后,或于弃牌阶段弃置至少2张与【箓】同类型的牌后,将【箓】置入弃牌堆。',
|
||||
zlshoufu_info:'出牌阶段限一次,你可摸一张牌,然后将一张手牌置于一名没有【箓】的角色的武将牌上,称为【箓】;其不能使用和打出与【箓】同类型的牌。该角色受到伤害后,或于弃牌阶段弃置至少两张与【箓】同类型的牌后,将【箓】置入弃牌堆。',
|
||||
ol_zhangchangpu:'OL张昌蒲',
|
||||
olxingshen:'省身',
|
||||
olxingshen_info:'当你受到伤害后,你可以随机摸至多两张牌。若如此做,你获得X个“省”,且下一次发动〖严教〗展示牌时移去所有“省”并多展示等量的牌。(X为你已损失的体力值,且你至多拥有6个“省”)',
|
||||
|
|
|
@ -5933,6 +5933,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
|||
},
|
||||
ai:{
|
||||
order:11,
|
||||
expose:0.2,
|
||||
result:{
|
||||
target:function(player,target){
|
||||
if(ui.selected.cards.length){
|
||||
|
|
|
@ -2285,7 +2285,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
|||
effect:{
|
||||
target:function(card,player,target){
|
||||
if(get.tag(card,'damage')){
|
||||
if(target.hp>1&&target.hasFriend()) return 0.8;
|
||||
if(target.hp>1&&target.hasFriend()) return 0.4;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
window.noname_asset_list=[
|
||||
'v1.9.108.2.1',
|
||||
'v1.9.108.2.2',
|
||||
'audio/background/aozhan_chaoming.mp3',
|
||||
'audio/background/aozhan_online.mp3',
|
||||
'audio/background/aozhan_rewrite.mp3',
|
||||
|
@ -4638,8 +4638,8 @@ window.noname_asset_list=[
|
|||
'image/emotion/throw_emotion/flower2.png',
|
||||
'image/emotion/throw_emotion/shoe1.png',
|
||||
'image/emotion/throw_emotion/shoe2.png',
|
||||
'image/emotion/throw_emotion/shoukao1.png',
|
||||
'image/emotion/throw_emotion/shoukao2.png',
|
||||
'image/emotion/throw_emotion/jiasuo1.png',
|
||||
'image/emotion/throw_emotion/jiasuo2.png',
|
||||
'image/emotion/throw_emotion/wine1.png',
|
||||
'image/emotion/throw_emotion/wine2.png',
|
||||
'image/emotion/throw_emotion/yuxisx1.png',
|
||||
|
|
23
game/game.js
23
game/game.js
|
@ -9783,7 +9783,7 @@
|
|||
wine:'酒杯',
|
||||
shoe:'拖鞋',
|
||||
yuxisx:'玉玺',
|
||||
shoukao:'枷锁',
|
||||
jiasuo:'枷锁',
|
||||
junk:'平凡',
|
||||
common:'普通',
|
||||
rare:'精品',
|
||||
|
@ -15969,24 +15969,27 @@
|
|||
$throwEmotion:function(target,name){
|
||||
game.addVideo('throwEmotion',this,[target.dataset.position,name]);
|
||||
var getLeft=function(player){
|
||||
if(player==game.me&&!ui.fakeme) return player.node.avatar.offsetWidth/2;
|
||||
return player.offsetLeft+player.offsetWidth/2;
|
||||
if(player==game.me&&!ui.fakeme&&!ui.chess) return player.getLeft()+player.node.avatar.offsetWidth/2;
|
||||
return player.getLeft()+player.offsetWidth/2;
|
||||
}
|
||||
var player=this;
|
||||
var emotion=ui.create.div('','<img src="'+lib.assetURL+'image/emotion/throw_emotion/'+name+'1.png">',ui.window);
|
||||
var width=30;
|
||||
var height=30;
|
||||
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);
|
||||
emotion.style.width='60px';
|
||||
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 top=player.offsetTop+player.offsetHeight/3-height;
|
||||
var top=player.getTop()+player.offsetHeight/3-height;
|
||||
emotion.style.left=left+'px';
|
||||
emotion.style.top=top+'px';
|
||||
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.transform='translateY('+(top2-top)+'px) translateX('+(left2-left)+'px)';
|
||||
if(lib.config.background_audio) game.playAudio('effect','throw_'+name+get.rand(1,2));
|
||||
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(){
|
||||
emotion.delete();
|
||||
},1200);
|
||||
|
@ -50947,7 +50950,7 @@
|
|||
table.style.width='100%';
|
||||
table.style.position='relative';
|
||||
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++){
|
||||
td=ui.create.div('.shadowed.reduce_radius.pointerdiv.tdnode');
|
||||
ui.throwEmotion.add(td);
|
||||
|
|
|
@ -1,11 +1,11 @@
|
|||
window.noname_update={
|
||||
version:'1.9.108.2.1',
|
||||
update:'1.9.108.2',
|
||||
version:'1.9.108.2.2',
|
||||
update:'1.9.108.2.1',
|
||||
changeLog:[
|
||||
'bug修复',
|
||||
'庆祝《Angel Beats! -1st beat-》汉化版发布,特别版本更新!',
|
||||
],
|
||||
files:[
|
||||
'card/extra.js',
|
||||
//'card/extra.js',
|
||||
//'card/gujian.js',
|
||||
//'card/guozhan.js',
|
||||
//'card/gwent.js',
|
||||
|
@ -33,7 +33,7 @@ window.noname_update={
|
|||
'character/sp.js',
|
||||
'character/sp2.js',
|
||||
//'character/tw.js',
|
||||
'character/standard.js',
|
||||
//'character/standard.js',
|
||||
//'character/swd.js',
|
||||
//'character/xianjian.js',
|
||||
//'character/xinghuoliaoyuan.js',
|
||||
|
@ -45,7 +45,7 @@ window.noname_update={
|
|||
//'layout/nova/layout.css',
|
||||
//'mode/identity.js',
|
||||
//'mode/doudizhu.js',
|
||||
'mode/guozhan.js',
|
||||
//'mode/guozhan.js',
|
||||
//'mode/chess.js',
|
||||
//'mode/tafang.js',
|
||||
//'mode/single.js',
|
||||
|
|
Binary file not shown.
After Width: | Height: | Size: 25 KiB |
Binary file not shown.
After Width: | Height: | Size: 25 KiB |
Loading…
Reference in New Issue