This commit is contained in:
parent
0b7d0367d6
commit
33ba806f88
|
@ -1696,6 +1696,7 @@ game.import('card',function(lib,game,ui,get,ai,_status){
|
||||||
},
|
},
|
||||||
result:{
|
result:{
|
||||||
target:function(player,target){
|
target:function(player,target){
|
||||||
|
if(target==player) return get.threaten(target,player)/1.5;
|
||||||
return get.threaten(target,player);
|
return get.threaten(target,player);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -1804,17 +1805,22 @@ game.import('card',function(lib,game,ui,get,ai,_status){
|
||||||
gw_kunenfayin:{
|
gw_kunenfayin:{
|
||||||
mark:true,
|
mark:true,
|
||||||
intro:{
|
intro:{
|
||||||
content:'不能成为其他角色的锦囊牌目标(剩余#回合)'
|
content:'不能成为其他角色的普通锦囊牌的目标(剩余#回合)'
|
||||||
},
|
},
|
||||||
mod:{
|
mod:{
|
||||||
targetEnabled:function(card,player,target,now){
|
targetEnabled:function(card,player,target,now){
|
||||||
if(player!=target){
|
if(player!=target){
|
||||||
if(get.type(card,'trick')=='trick') return false;
|
if(get.type(card)=='trick') return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
init:function(player){
|
init:function(player){
|
||||||
player.storage.gw_kunenfayin=3;
|
if(game.players.length>=6){
|
||||||
|
player.storage.gw_kunenfayin=3;
|
||||||
|
}
|
||||||
|
else{
|
||||||
|
player.storage.gw_kunenfayin=2;
|
||||||
|
}
|
||||||
},
|
},
|
||||||
trigger:{player:'phaseEnd'},
|
trigger:{player:'phaseEnd'},
|
||||||
forced:true,
|
forced:true,
|
||||||
|
@ -2184,7 +2190,7 @@ game.import('card',function(lib,game,ui,get,ai,_status){
|
||||||
gw_shanbengshu:'山崩术',
|
gw_shanbengshu:'山崩术',
|
||||||
gw_shanbengshu_info:'出牌阶段对自己使用,令一名随机敌方角色随机弃置两件装备',
|
gw_shanbengshu_info:'出牌阶段对自己使用,令一名随机敌方角色随机弃置两件装备',
|
||||||
gw_kunenfayin:'昆恩法印',
|
gw_kunenfayin:'昆恩法印',
|
||||||
gw_kunenfayin_info:'出牌阶段对一名角色使用,目标不能成为其他角色的锦囊牌目标,持续3轮',
|
gw_kunenfayin_info:'出牌阶段对一名角色使用,目标不能成为其他角色的普通锦囊牌的目标,持续2回合(存活角色数不少于6时改为3)',
|
||||||
},
|
},
|
||||||
cardType:{
|
cardType:{
|
||||||
spell:0.5,
|
spell:0.5,
|
||||||
|
|
|
@ -38,6 +38,8 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
||||||
gw_shanhu:['female','qun',3,['shuijian']],
|
gw_shanhu:['female','qun',3,['shuijian']],
|
||||||
gw_zhangyujushou:['male','wu',4,['gwjushi']],
|
gw_zhangyujushou:['male','wu',4,['gwjushi']],
|
||||||
gw_zhuoertan:['male','wu',3,['hupeng']],
|
gw_zhuoertan:['male','wu',3,['hupeng']],
|
||||||
|
|
||||||
|
gw_meizi:['female','wei',3,['gwjieyin']],
|
||||||
},
|
},
|
||||||
characterIntro:{
|
characterIntro:{
|
||||||
gw_huoge:'那个老年痴呆?不知道他是活着还是已经被制成标本了!',
|
gw_huoge:'那个老年痴呆?不知道他是活着还是已经被制成标本了!',
|
||||||
|
@ -53,6 +55,95 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
||||||
gw_yioufeisi:'国王还是乞丐,两者有何区别,人类少一个算一个',
|
gw_yioufeisi:'国王还是乞丐,两者有何区别,人类少一个算一个',
|
||||||
},
|
},
|
||||||
skill:{
|
skill:{
|
||||||
|
gwjieyin:{
|
||||||
|
group:'gwjieyin_reset',
|
||||||
|
init:function(player){
|
||||||
|
player.storage.gwjieyin=[];
|
||||||
|
},
|
||||||
|
enable:'phaseUse',
|
||||||
|
filter:function(event,player){
|
||||||
|
return player.storage.gwjieyin.length<3;
|
||||||
|
},
|
||||||
|
chooseButton:{
|
||||||
|
dialog:function(event,player){
|
||||||
|
return ui.create.dialog('结印',[[['','','gw_wenyi'],['','','gw_yanziyaoshui'],['','','gw_kunenfayin']],'vcard'],'hidden');
|
||||||
|
},
|
||||||
|
filter:function(button,player){
|
||||||
|
if(player.storage.gwjieyin.contains(button.link[2])){
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
return true;
|
||||||
|
},
|
||||||
|
check:function(button){
|
||||||
|
var player=_status.event.player;
|
||||||
|
if(button.link[2]=='gw_yanziyaoshui'){
|
||||||
|
if(game.hasPlayer(function(current){
|
||||||
|
return get.attitude(player,current)>1&¤t.isMinHandcard();
|
||||||
|
})){
|
||||||
|
return 3;
|
||||||
|
}
|
||||||
|
else if((game.roundNumber-player.storage.gwjieyin_round)%2==0){
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
else{
|
||||||
|
return 0.5;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else if(button.link[2]=='gw_wenyi'){
|
||||||
|
if(game.countPlayer(function(current){
|
||||||
|
if(current.isMinHp()&¤t.countCards('he')){
|
||||||
|
return -get.sgn(get.attitude(player,current));
|
||||||
|
}
|
||||||
|
})>0){
|
||||||
|
return 2;
|
||||||
|
}
|
||||||
|
else{
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else{
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
},
|
||||||
|
backup:function(links,player){
|
||||||
|
return {
|
||||||
|
filterCard:function(){return false},
|
||||||
|
selectCard:-1,
|
||||||
|
viewAs:{name:links[0][2]},
|
||||||
|
popname:true,
|
||||||
|
onuse:function(result,player){
|
||||||
|
player.logSkill('gwjieyin');
|
||||||
|
player.storage.gwjieyin.add(result.card.name);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
prompt:function(links,player){
|
||||||
|
return '选择'+get.translation(links[0][2])+'的目标';
|
||||||
|
}
|
||||||
|
},
|
||||||
|
subSkill:{
|
||||||
|
reset:{
|
||||||
|
trigger:{player:'phaseBegin'},
|
||||||
|
silent:true,
|
||||||
|
content:function(){
|
||||||
|
if(typeof player.storage.gwjieyin_round=='number'){
|
||||||
|
if((game.roundNumber-player.storage.gwjieyin_round)%2==0){
|
||||||
|
player.storage.gwjieyin.length=0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else{
|
||||||
|
player.storage.gwjieyin_round=game.roundNumber;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
ai:{
|
||||||
|
order:6,
|
||||||
|
result:{
|
||||||
|
player:1
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
zhengjun:{
|
zhengjun:{
|
||||||
init:function(player){
|
init:function(player){
|
||||||
player.storage.zhengjun=[];
|
player.storage.zhengjun=[];
|
||||||
|
@ -1788,7 +1879,10 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
||||||
gw_shanhu:'珊瑚',
|
gw_shanhu:'珊瑚',
|
||||||
gw_zhangyujushou:'章鱼巨兽',
|
gw_zhangyujushou:'章鱼巨兽',
|
||||||
gw_zhuoertan:'卓尔坦',
|
gw_zhuoertan:'卓尔坦',
|
||||||
|
gw_meizi:'梅兹',
|
||||||
|
|
||||||
|
gwjieyin:'结印',
|
||||||
|
gwjieyin_info:'出牌阶段,你可以视为使用瘟疫、燕子药水或昆恩法印(不能重复使用同一法术),技能两轮重置一次',
|
||||||
zhengjun:'整军',
|
zhengjun:'整军',
|
||||||
zhengjun_info:'结束阶段,你可以观看牌堆顶的X张牌并获得其中一张,X为你在本局游戏中累计使用或打出过至少两张同名牌的牌数;每当X的值增加,你增加一点体力和体力上限',
|
zhengjun_info:'结束阶段,你可以观看牌堆顶的X张牌并获得其中一张,X为你在本局游戏中累计使用或打出过至少两张同名牌的牌数;每当X的值增加,你增加一点体力和体力上限',
|
||||||
gwxuezhan:'血战',
|
gwxuezhan:'血战',
|
||||||
|
|
|
@ -4557,7 +4557,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
||||||
mod:{
|
mod:{
|
||||||
targetEnabled:function(card,player,target,now){
|
targetEnabled:function(card,player,target,now){
|
||||||
if(player!=target){
|
if(player!=target){
|
||||||
if(get.type(card)=='trick') return false;
|
if(get.type(card,'trick')=='trick') return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -7779,7 +7779,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
||||||
luoshi:'落石',
|
luoshi:'落石',
|
||||||
luoshi_info:'锁定技,每当你受到一次伤害,你与伤害来源各随机弃置一张牌',
|
luoshi_info:'锁定技,每当你受到一次伤害,你与伤害来源各随机弃置一张牌',
|
||||||
moyao:'魔曜',
|
moyao:'魔曜',
|
||||||
moyao_info:'锁定技,你不能成为其他角色的普通锦囊牌的目标',
|
moyao_info:'锁定技,你不能成为其他角色的锦囊牌的目标',
|
||||||
jiaohui:'教诲',
|
jiaohui:'教诲',
|
||||||
jiaohui_info:'结束阶段,若你没有于本回合内造成伤害,你可以令一名角色摸一张牌或回复一点体力',
|
jiaohui_info:'结束阶段,若你没有于本回合内造成伤害,你可以令一名角色摸一张牌或回复一点体力',
|
||||||
chenshui:'沉睡',
|
chenshui:'沉睡',
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
window.noname_asset_list=[
|
window.noname_asset_list=[
|
||||||
'1.9.32',
|
'1.9.34',
|
||||||
'image/background/huangtian_bg.jpg',
|
'image/background/huangtian_bg.jpg',
|
||||||
'image/background/ol_bg.jpg',
|
'image/background/ol_bg.jpg',
|
||||||
'image/background/september_bg.jpg',
|
'image/background/september_bg.jpg',
|
||||||
|
@ -400,6 +400,7 @@ window.noname_asset_list=[
|
||||||
'image/character/gw_laduoweide.jpg',
|
'image/character/gw_laduoweide.jpg',
|
||||||
'image/character/gw_luobo.jpg',
|
'image/character/gw_luobo.jpg',
|
||||||
'image/character/gw_luoqi.jpg',
|
'image/character/gw_luoqi.jpg',
|
||||||
|
'image/character/gw_meizi.jpg',
|
||||||
'image/character/gw_mieren.jpg',
|
'image/character/gw_mieren.jpg',
|
||||||
'image/character/gw_sanhanya.jpg',
|
'image/character/gw_sanhanya.jpg',
|
||||||
'image/character/gw_shanhu.jpg',
|
'image/character/gw_shanhu.jpg',
|
||||||
|
|
85
game/game.js
85
game/game.js
|
@ -14193,19 +14193,7 @@
|
||||||
next.filterCard=get.filter(arguments[i]);
|
next.filterCard=get.filter(arguments[i]);
|
||||||
}
|
}
|
||||||
else if(typeof arguments[i]=='string'){
|
else if(typeof arguments[i]=='string'){
|
||||||
if(next.prompt){
|
get.evtprompt(next,arguments[i]);
|
||||||
next.prompt2=arguments[i];
|
|
||||||
}
|
|
||||||
else{
|
|
||||||
if(arguments[i].indexOf('###')==0){
|
|
||||||
var prompts=arguments[i].slice(3).split('###');
|
|
||||||
next.prompt=prompts[0];
|
|
||||||
next.prompt2=prompts[1];
|
|
||||||
}
|
|
||||||
else{
|
|
||||||
next.prompt=arguments[i];
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
if(arguments[i]===null){
|
if(arguments[i]===null){
|
||||||
for(var i=0;i<arguments.length;i++){
|
for(var i=0;i<arguments.length;i++){
|
||||||
|
@ -14391,19 +14379,7 @@
|
||||||
next.glow_result=true;
|
next.glow_result=true;
|
||||||
}
|
}
|
||||||
else if(typeof arguments[i]=='string'){
|
else if(typeof arguments[i]=='string'){
|
||||||
if(next.prompt){
|
get.evtprompt(next,arguments[i]);
|
||||||
next.prompt2=arguments[i];
|
|
||||||
}
|
|
||||||
else{
|
|
||||||
if(arguments[i].indexOf('###')==0){
|
|
||||||
var prompts=arguments[i].slice(3).split('###');
|
|
||||||
next.prompt=prompts[0];
|
|
||||||
next.prompt2=prompts[1];
|
|
||||||
}
|
|
||||||
else{
|
|
||||||
next.prompt=arguments[i];
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if(next.filterCard==undefined) next.filterCard=lib.filter.all;
|
if(next.filterCard==undefined) next.filterCard=lib.filter.all;
|
||||||
|
@ -14435,19 +14411,7 @@
|
||||||
else next.filterTarget=arguments[i];
|
else next.filterTarget=arguments[i];
|
||||||
}
|
}
|
||||||
else if(typeof arguments[i]=='string'){
|
else if(typeof arguments[i]=='string'){
|
||||||
if(next.prompt){
|
get.evtprompt(next,arguments[i]);
|
||||||
next.prompt2=arguments[i];
|
|
||||||
}
|
|
||||||
else{
|
|
||||||
if(arguments[i].indexOf('###')==0){
|
|
||||||
var prompts=arguments[i].slice(3).split('###');
|
|
||||||
next.prompt=prompts[0];
|
|
||||||
next.prompt2=prompts[1];
|
|
||||||
}
|
|
||||||
else{
|
|
||||||
next.prompt=arguments[i];
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if(next.filterTarget==undefined) next.filterTarget=lib.filter.all;
|
if(next.filterTarget==undefined) next.filterTarget=lib.filter.all;
|
||||||
|
@ -14559,19 +14523,7 @@
|
||||||
next.ai=arguments[i];
|
next.ai=arguments[i];
|
||||||
}
|
}
|
||||||
else if(typeof arguments[i]=='string'){
|
else if(typeof arguments[i]=='string'){
|
||||||
if(next.prompt){
|
get.evtprompt(next,arguments[i]);
|
||||||
next.prompt2=arguments[i];
|
|
||||||
}
|
|
||||||
else{
|
|
||||||
if(arguments[i].indexOf('###')==0){
|
|
||||||
var prompts=arguments[i].slice(3).split('###');
|
|
||||||
next.prompt=prompts[0];
|
|
||||||
next.prompt2=prompts[1];
|
|
||||||
}
|
|
||||||
else{
|
|
||||||
next.prompt=arguments[i];
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
else if(get.itemtype(arguments[i])=='dialog'){
|
else if(get.itemtype(arguments[i])=='dialog'){
|
||||||
next.dialog=arguments[i];
|
next.dialog=arguments[i];
|
||||||
|
@ -14828,19 +14780,7 @@
|
||||||
next.forced=arguments[i];
|
next.forced=arguments[i];
|
||||||
}
|
}
|
||||||
else if(typeof arguments[i]=='string'){
|
else if(typeof arguments[i]=='string'){
|
||||||
if(next.prompt){
|
get.evtprompt(next,arguments[i]);
|
||||||
next.prompt2=arguments[i];
|
|
||||||
}
|
|
||||||
else{
|
|
||||||
if(arguments[i].indexOf('###')==0){
|
|
||||||
var prompts=arguments[i].slice(3).split('###');
|
|
||||||
next.prompt=prompts[0];
|
|
||||||
next.prompt2=prompts[1];
|
|
||||||
}
|
|
||||||
else{
|
|
||||||
next.prompt=arguments[i];
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
else if(Array.isArray(arguments[i])){
|
else if(Array.isArray(arguments[i])){
|
||||||
for(var j=0;j<arguments[i].length;j++){
|
for(var j=0;j<arguments[i].length;j++){
|
||||||
|
@ -40601,6 +40541,21 @@
|
||||||
return false;
|
return false;
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
evtprompt:function(next,str){
|
||||||
|
if(next.prompt){
|
||||||
|
next.prompt2=str;
|
||||||
|
}
|
||||||
|
else{
|
||||||
|
if(str.indexOf('###')==0){
|
||||||
|
var prompts=str.slice(3).split('###');
|
||||||
|
if(prompts[0]) next.prompt=prompts[0];
|
||||||
|
if(prompts[1]) next.prompt2=prompts[1];
|
||||||
|
}
|
||||||
|
else{
|
||||||
|
next.prompt=str;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
autoViewAs:function(card,cards){
|
autoViewAs:function(card,cards){
|
||||||
var info=get.info(card);
|
var info=get.info(card);
|
||||||
if(info.autoViewAs){
|
if(info.autoViewAs){
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
window.noname_update={
|
window.noname_update={
|
||||||
version:'1.9.33',
|
version:'1.9.34',
|
||||||
update:'1.9.32',
|
update:'1.9.32',
|
||||||
changeLog:[
|
changeLog:[
|
||||||
'bug修复',
|
'bug修复',
|
||||||
|
@ -15,6 +15,7 @@ window.noname_update={
|
||||||
'card/gwent.js',
|
'card/gwent.js',
|
||||||
'card/swd.js',
|
'card/swd.js',
|
||||||
// 'character/*',
|
// 'character/*',
|
||||||
|
'character/hearth.js',
|
||||||
'character/extra.js',
|
'character/extra.js',
|
||||||
'character/gwent.js',
|
'character/gwent.js',
|
||||||
'character/sp.js',
|
'character/sp.js',
|
||||||
|
|
Binary file not shown.
After Width: | Height: | Size: 65 KiB |
Loading…
Reference in New Issue