This commit is contained in:
parent
e9a367e0bc
commit
90d3e79031
|
@ -67,11 +67,12 @@ character.hearth={
|
|||
// hs_shifazhe:['male','wei',3,['jizhi','shifa']],
|
||||
hs_lafamu:['male','shu',4,['xieneng']],
|
||||
hs_yelise:['female','wei',3,['xunbao','zhuizong']],
|
||||
hs_fandral:['male','shu',4,['nuyan']],
|
||||
hs_hallazeal:['male','shu',4,['nuyan']],
|
||||
hs_nzoth:['male','shu',4,['nuyan']],
|
||||
hs_walian:['male','shu',4,['nuyan']],
|
||||
hs_pengpeng:['male','shu',4,['nuyan']],
|
||||
|
||||
// hs_fandral:['male','shu',4,['nuyan']],
|
||||
// hs_hallazeal:['male','shu',4,['nuyan']],
|
||||
// hs_nzoth:['male','shu',4,['nuyan']],
|
||||
// hs_walian:['male','shu',4,['zhanyi']],
|
||||
// hs_pengpeng:['male','qun',4,['zhadan']],
|
||||
},
|
||||
perfectPair:{
|
||||
hs_sthrall:['hs_totemic','hs_alakir','hs_neptulon','hs_yngvar','hs_tgolem'],
|
||||
|
@ -80,6 +81,99 @@ character.hearth={
|
|||
hs_malfurion:['hs_malorne'],
|
||||
},
|
||||
skill:{
|
||||
nuyan:{
|
||||
enable:'phaseUse',
|
||||
usable:1,
|
||||
filter:function(event,player){
|
||||
return player.num('he',{color:'red'})>0
|
||||
},
|
||||
init:function(player){
|
||||
player.storage.nuyan=[];
|
||||
},
|
||||
chooseButton:{
|
||||
dialog:function(event,player){
|
||||
var list=[];
|
||||
for(var i=0;i<lib.inpile.length;i++){
|
||||
if(get.tag({name:lib.inpile[i]},'damage')){
|
||||
list.push([get.type(lib.inpile[i]),'',lib.inpile[i]]);
|
||||
}
|
||||
}
|
||||
return ui.create.dialog([list,'vcard']);
|
||||
},
|
||||
filter:function(button,player){
|
||||
if(player.storage.nuyan.contains(button.link[2])) return false;
|
||||
return lib.filter.filterCard({name:button.link[2]},player,_status.event.getParent());
|
||||
},
|
||||
check:function(button){
|
||||
var player=_status.event.player;
|
||||
var recover=0,lose=1;
|
||||
for(var i=0;i<game.players.length;i++){
|
||||
if(!game.players[i].isOut()){
|
||||
if(game.players[i].hp<game.players[i].maxHp){
|
||||
if(ai.get.attitude(player,game.players[i])>0){
|
||||
if(game.players[i].hp<2){
|
||||
lose--;
|
||||
recover+=0.5;
|
||||
}
|
||||
lose--;
|
||||
recover++;
|
||||
}
|
||||
else if(ai.get.attitude(player,game.players[i])<0){
|
||||
if(game.players[i].hp<2){
|
||||
lose++;
|
||||
recover-=0.5;
|
||||
}
|
||||
lose++;
|
||||
recover--;
|
||||
}
|
||||
}
|
||||
else{
|
||||
if(ai.get.attitude(player,game.players[i])>0){
|
||||
lose--;
|
||||
}
|
||||
else if(ai.get.attitude(player,game.players[i])<0){
|
||||
lose++;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
if(button.link[2]=='nanman'||button.link[2]=='nanman'||button.link[2]=='yuansuhuimie'||
|
||||
button.link[2]=='chiyuxi'||button.link[2]=='jingleishan'){
|
||||
if(lose>recover&&lose>0){
|
||||
return 2;
|
||||
}
|
||||
else{
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
return 1;
|
||||
},
|
||||
backup:function(links,player){
|
||||
return {
|
||||
filterCard:{color:'red'},
|
||||
selectCard:1,
|
||||
position:'he',
|
||||
popname:true,
|
||||
viewAs:{name:links[0][2]},
|
||||
ai1:function(card){
|
||||
return 6-ai.get.value(card);
|
||||
},
|
||||
onuse:function(result,player){
|
||||
player.storage.nuyan.add(result.card.name);
|
||||
}
|
||||
}
|
||||
},
|
||||
prompt:function(links,player){
|
||||
return '将一张红色牌当作'+get.translation(links[0][2])+'使用';
|
||||
}
|
||||
},
|
||||
ai:{
|
||||
order:6,
|
||||
result:{
|
||||
player:1
|
||||
},
|
||||
}
|
||||
},
|
||||
hsshenqi_forbid:{},
|
||||
duxin:{
|
||||
trigger:{player:['phaseBegin','phaseEnd']},
|
||||
|
@ -4316,6 +4410,11 @@ character.hearth={
|
|||
hs_kcthun:'克苏恩',
|
||||
hs_anomalus:'阿诺玛鲁斯',
|
||||
hs_blingtron:'布林顿',
|
||||
hs_fandral:'范达尔',
|
||||
hs_hallazeal:'海拉泽尔',
|
||||
hs_nzoth:'恩佐斯',
|
||||
hs_walian:'瓦里安',
|
||||
hs_pengpeng:'砰砰博士',
|
||||
|
||||
hs_ronghejuren:'熔核巨人',
|
||||
hs_shanlingjuren:'山岭巨人',
|
||||
|
@ -4336,6 +4435,14 @@ character.hearth={
|
|||
hs_shifazhe:'嗜法者',
|
||||
hs_yogg:'尤格萨隆',
|
||||
hs_xialikeer:'夏克里尔',
|
||||
|
||||
nuyan:'怒焰',
|
||||
nuyan2:'怒焰',
|
||||
nuyan_backup:'怒焰',
|
||||
nuyan_info:'出牌阶段限一次,你可以将一张红色牌当作任意一张能造成伤害的牌使用(不得是你本局以此法使用过的牌)',
|
||||
nuyan2_info:'出牌阶段限三次,你可以失去一点体力,视为使用任意一张能造成伤害的牌”',
|
||||
chouhuo:'仇火',
|
||||
chouhuo_info:'觉醒技,出牌阶段开始时,若你的怒焰技能已将可用的牌用完,你失去一点体力上限,获得两点护甲,然后将怒焰的描述改为“出牌阶段限三次,你可以失去一点体力,视为使用任意一张能造成伤害的牌”',
|
||||
hsdusu:'毒素',
|
||||
hsdusu_xueji:'血蓟',
|
||||
hsdusu_xueji_info:'随机弃至一名角色的1~2张装备牌',
|
||||
|
|
|
@ -460,25 +460,55 @@ character.ow={
|
|||
},
|
||||
content:function(){
|
||||
'step 0'
|
||||
var next=player.chooseToDiscard('是否发动【移魂】?','he',{suit:'spade'});
|
||||
next.ai=function(card){
|
||||
return 6-ai.get.value(card);
|
||||
};
|
||||
next.logSkill='yihun'
|
||||
var next=player.chooseCardTarget({
|
||||
prompt:'是否发动【移魂】?',
|
||||
position:'he',
|
||||
filterCard:{suit:'spade'},
|
||||
ai1:function(card){
|
||||
return 7-ai.get.value(card);
|
||||
},
|
||||
ai2:function(target){
|
||||
var att=-ai.get.attitude(player,target);
|
||||
if(target==player.next){
|
||||
att/=10;
|
||||
}
|
||||
if(target==player.next.next){
|
||||
att/=2;
|
||||
}
|
||||
return att;
|
||||
},
|
||||
filterTarget:function(card,player,target){
|
||||
return player!=target;
|
||||
},
|
||||
});
|
||||
'step 1'
|
||||
if(result.bool){
|
||||
player.addTempSkill('yihun2',{player:'phaseBegin'});
|
||||
player.discard(result.cards);
|
||||
player.logSkill('yihun',result.targets);
|
||||
player.addSkill('yihun2');
|
||||
player.storage.yihun2=result.targets[0];
|
||||
player.markSkillCharacter('yihun2',result.targets[0],'移魂','在'+get.translation(result.targets)+'的下一回合开始时视为对其使用一张杀');
|
||||
}
|
||||
}
|
||||
},
|
||||
},
|
||||
yihun2:{
|
||||
trigger:{global:'phaseBegin'},
|
||||
forced:true,
|
||||
filter:function(event,player){
|
||||
return event.player==player.storage.yihun2;
|
||||
},
|
||||
content:function(){
|
||||
player.useCard({name:'sha'},player.storage.yihun2);
|
||||
player.removeSkill('yihun2');
|
||||
delete player.storage.yihun2;
|
||||
},
|
||||
mod:{
|
||||
targetEnabled:function(){
|
||||
return false;
|
||||
},
|
||||
cardEnabled:function(card,player){
|
||||
return false;
|
||||
}
|
||||
},
|
||||
}
|
||||
},
|
||||
huoyu:{
|
||||
|
@ -1057,7 +1087,7 @@ character.ow={
|
|||
xiandan:'霰弹',
|
||||
xiandan_info:'你的杀可以指定距离1以内的角色为额外目标',
|
||||
yihun:'移魂',
|
||||
yihun_info:'回合结束阶段,你可以弃置一张黑桃牌,若如此做,你不能使用卡牌,也不能成为卡牌的目标,直到下一回合开始',
|
||||
yihun_info:'回合结束阶段,你可以弃置一张黑桃牌并指定一名其他角色,你在该角色下一回合开始时视为对其使用一张杀;在此之前,你不能使用卡牌,也不能成为卡牌的目标',
|
||||
feidan:'飞弹',
|
||||
feidan_info:'你的杀只能对距离1以外的角色使用;每当你使用杀造成伤害后,你可以弃置一张牌对距离目标1以内的其他角色各造成一点伤害',
|
||||
huoyu:'火雨',
|
||||
|
|
|
@ -106,6 +106,7 @@ window.characterRank={
|
|||
'zhangrang',
|
||||
'ow_chanyata',
|
||||
'ow_tianshi',
|
||||
'hs_lafamu',
|
||||
],
|
||||
am:[
|
||||
'guohuanghou',
|
||||
|
@ -318,7 +319,6 @@ window.characterRank={
|
|||
b:[
|
||||
'xin_liru',
|
||||
'sp_xiahoudun',
|
||||
'hs_lafamu',
|
||||
'jsp_huangyueying',
|
||||
'cuiyan',
|
||||
'sp_zhangfei',
|
||||
|
|
|
@ -6011,7 +6011,7 @@ character.yijiang={
|
|||
}
|
||||
},
|
||||
prompt:function(links,player){
|
||||
return '将全部手牌当'+get.translation(links[0][2])+'使用';
|
||||
return '将全部手牌当作'+get.translation(links[0][2])+'使用';
|
||||
}
|
||||
},
|
||||
ai:{
|
||||
|
|
|
@ -2784,7 +2784,8 @@
|
|||
save2:'二',
|
||||
save3:'三',
|
||||
save4:'四',
|
||||
save5:'五',
|
||||
save5:'五',
|
||||
save6:'六',
|
||||
},
|
||||
restart:true,
|
||||
frequent:true,
|
||||
|
|
|
@ -5,6 +5,8 @@ window.noname_update={
|
|||
],
|
||||
files:{
|
||||
global:[
|
||||
'character/rank.js',
|
||||
'character/ow.js',
|
||||
'character/hearth.js',
|
||||
'character/yijiang.js',
|
||||
'mode/chess.js',
|
||||
|
|
Binary file not shown.
After Width: | Height: | Size: 97 KiB |
Binary file not shown.
After Width: | Height: | Size: 105 KiB |
Binary file not shown.
After Width: | Height: | Size: 15 KiB |
Binary file not shown.
After Width: | Height: | Size: 22 KiB |
Binary file not shown.
Before Width: | Height: | Size: 166 KiB After Width: | Height: | Size: 89 KiB |
|
@ -191,6 +191,27 @@
|
|||
vertical-align: middle;
|
||||
position: relative;
|
||||
}
|
||||
#create-player{
|
||||
width: 400px;
|
||||
height: 300px;
|
||||
left: calc(50% - 200px);
|
||||
top: calc(50% - 150px);
|
||||
position: absolute;
|
||||
-webkit-animation:dialog_start2 0.5s;
|
||||
}
|
||||
#create-player>div{
|
||||
position: absolute;
|
||||
}
|
||||
#create-player>.caption{
|
||||
width: 100%;
|
||||
height: 24px;
|
||||
line-height: 24px;
|
||||
left: 0;
|
||||
top: 0;
|
||||
font-family: 'xinwei';
|
||||
font-size: 24px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
@-webkit-keyframes scene_start{
|
||||
from{
|
||||
|
|
101
mode/story.js
101
mode/story.js
|
@ -9,6 +9,35 @@ mode.story={
|
|||
},
|
||||
story:{
|
||||
version:1,
|
||||
career:{
|
||||
zhanshi:{
|
||||
name:'战士',
|
||||
},
|
||||
lieren:{
|
||||
name:'猎人',
|
||||
},
|
||||
fashi:{
|
||||
name:'法师',
|
||||
},
|
||||
jisi:{
|
||||
name:'祭司',
|
||||
},
|
||||
fangshi:{
|
||||
name:'方士',
|
||||
},
|
||||
moushi:{
|
||||
name:'谋士',
|
||||
},
|
||||
yisheng:{
|
||||
name:'医生',
|
||||
},
|
||||
xingzhe:{
|
||||
name:'行者',
|
||||
},
|
||||
yanshi:{
|
||||
name:'偃师',
|
||||
}
|
||||
},
|
||||
character:{
|
||||
zuoci:{
|
||||
name:'左慈'
|
||||
|
@ -49,54 +78,18 @@ mode.story={
|
|||
content:{
|
||||
default:[
|
||||
'东汉末年,桃源乡仙人南华预见了三国时代将会是纷扰的乱世,便施展“九龙逆天大法”扭转时序,打算将曹操、刘备、孙权三位天命王者的出现时间错开',
|
||||
'然而此举却造成上古魔神“刑天”逃脱,并与当世残虐的当权者董卓合而为一,顿时时空陷入前所未有的混乱中',
|
||||
'(洛阳郊外)',
|
||||
['zuoci','南华!这到底是怎么一回事!?'],
|
||||
['nanhua','......完了、完了......'],
|
||||
['yuji','不要只会说“完了完了”!天地间魔气蔓延、龙气狂乱肆虐,即将造成时空乱序啊!'],
|
||||
['nanhua','......完了......'],
|
||||
['yuji','你这老混蛋!快给我解释清楚!'],
|
||||
['zuoci','......'],
|
||||
['zuoci','罢了,他受的打击太大,暂时无法回复,此处魔气渐浓,不宜久留,先带他回桃源乡,再做打算,'],
|
||||
'(第二天)',
|
||||
['nanhua','......唔......'],
|
||||
['zuoci','你终于清醒了'],
|
||||
['nanhua','...快告诉我,这世间变得怎样了?'],
|
||||
['zuoci','......'],
|
||||
['yuji','你还敢说!都是你搞的!你这几十年精研道术,却是用九龙逆天大法干这种蠢事!'],
|
||||
['yuji','现在中原地带时空乱序,各方人物乱成一团!魔神刑天附身于现在最暴虐的当权者董卓身上,早晚会开始并天吞地、血洗神州!'],
|
||||
['yuji','看看你干的好事吧!'],
|
||||
['zuoci','唉,南华,你这次真是大错特错啊'],
|
||||
['nanhua','......我本是想藉着九龙逆天大法扭转三国时代数十载的乱世,却铸成如此大祸......我......唉'],
|
||||
['yuji','你怎会不知道天命不可违!妄动天命,只会引得更大的神州浩劫!'],
|
||||
['zuoci','现在说这个也没有用,我们得找出解决的方法!'],
|
||||
['yuji','哼,若只是时空乱序也就罢了,只要能齐聚太古九鼎,加上我们三人的联手尚可施展绍华定天大法将时空归序。'],
|
||||
['yuji','但现在刑天附身在董卓身上,我们三个加上南斗北斗,也不是刑天的对手,你以为刑天会放任收集古九鼎吗!?'],
|
||||
['nanhua','......'],
|
||||
['nanhua','真龙之气!只要能齐聚具有真龙之气的人间皇者,就能以神州王者之气克制刑天!'],
|
||||
['nanhua','三国之所以会乱,是因为这时代同时有三人具备真龙之气'],
|
||||
['nanhua','也是因为这样,我才想用九龙逆天大法,将这三人出现的时间错天。只要找到那三人......'],
|
||||
['zuoci','唉,这就是最为难的地方,除了我手上的中天鼎之外,其余八鼎一直散落在尘世之间。'],
|
||||
['zuoci','我知道此世董卓、吕布,以及三国王者曹操、刘备、孙权各有一鼎。'],
|
||||
['zuoci','但现在刑天附在董卓身上,要齐聚九鼎,免不了要面对刑天。要与刑天抗衡,必须要有真龙之气配合。'],
|
||||
['zuoci','但当世有真龙之气的三人,曹操、刘备、孙权已在时空乱序中散逸于时空之外,这件事真是复杂到了极点。'],
|
||||
['nanhua','曹操、刘备、孙权三人乃领导魏、蜀、呈d的君主,只要能在混乱的时空中将魏、蜀、吴三国的人物归位,'],
|
||||
['nanhua','加强这时代与他们天命之间的联系,就有可能让这三人降临在这个时空中。'],
|
||||
['yuji','你讲的简单!谁去找这些人,让他们回归三国!?'],
|
||||
['yuji','不明前因,难知后果,现在凡世之人都已受到时空乱序的影响,我们仙人虽能知过去未来,却不能将未来之事泄漏给当世之人,'],
|
||||
['yuji','否则违背仙们本分,必遭天火焚身,五雷轰顶。'],
|
||||
['yuji','不能与这些俗世之人沟通,要怎么找回三国人物!?'],
|
||||
['zuoci','......'],
|
||||
['zuoci','我想到一个办法'],
|
||||
['nanhua','什么办法?快说、快说!'],
|
||||
['zuoci','三国的君主失踪,但魏、蜀、吴三国仍维持了一定的局面,是因为有司马懿、诸葛亮、周瑜等人掌理了大局。'],
|
||||
['zuoci','此三人智慧高绝,并未受到时空乱序的影响,我们可以请他们三人帮忙找寻三国的人物,令天命归位,寻找真龙。'],
|
||||
['yuji','说了跟没说一样,即使他们三人保持神识清明,但他们也都是当世之人,我们还是不能向当世凡人泄漏这此间因果'],
|
||||
['zuoci','所以我们要另外找一个人,一个不属于当世,早已知晓三国时代一切因果,出乎刑天意外的凡人。'],
|
||||
['zuoci','这样我们就可以托付他寻回三国人物之事,再由他联络司马懿、诸葛亮、周瑜汇集三国人物的力量,设法扭转这个乱世。'],
|
||||
['nanhua','你......你想召唤未来时代的人?'],
|
||||
['zuoci','没错,而且要找一个熟知三国人物,足以担当大任的人,只有如此,才能改变目前的情况。'],
|
||||
['nanhua','也罢,这也许是'],
|
||||
'然而此举却造成上古魔神“刑天”逃脱,并与当世残虐的当权者董卓合而为一,顿时时空陷入前所未有的混乱中。魏蜀吴三国战将能臣散逸各地,便连曹操、刘备、孙权三人也失踪于乱序的时空里',
|
||||
'由于仙人不能将三国的前因后果透露给当世的凡人,最后桃源乡三仙人只好决定召唤一名熟悉三国历史的未来少年来找回三国名将,对抗董卓,让三国历史重新归序',
|
||||
'(桃源乡∙南华小屋内)',
|
||||
['nanhua','事情的经过大致就是这样'],
|
||||
['nanhua','这都是我的错,但我们仙人实在无法干涉凡世之事,重建三国秩序的重任只能交给你了'],
|
||||
['player','可是,我什么都没有,拿什么来对抗董卓?'],
|
||||
['nanhua','这三卷太平要术是我的心血之作,学好了能够呼风唤雨,对你一定会有帮助'],
|
||||
'得到【太平经】',
|
||||
['nanhua','左慈和于吉都有事情交代,你去找他们吧'],
|
||||
//左慈:给东西
|
||||
//于吉:选职业,开启技能
|
||||
|
||||
function(){
|
||||
_status.lockScene=false;
|
||||
var node=ui.window.querySelector('.storyscene');
|
||||
|
@ -501,13 +494,19 @@ mode.story={
|
|||
}
|
||||
};
|
||||
game.data=lib.storage[save];
|
||||
game.saveData();
|
||||
// game.saveData();
|
||||
event.node=ui.create.div('.shadowed#create-player');
|
||||
ui.create.div('.caption','创建角色',event.node);
|
||||
setTimeout(function(){
|
||||
ui.window.appendChild(event.node);
|
||||
},250);
|
||||
game.pause();
|
||||
}
|
||||
else{
|
||||
game.data=lib.storage[save];
|
||||
game.delay(0.5);
|
||||
}
|
||||
lib.init.css(lib.assetURL+'layout/mode','story');
|
||||
game.delay();
|
||||
'step 1'
|
||||
var scenes={};
|
||||
var sceneWheel=function(){
|
||||
|
@ -701,7 +700,7 @@ mode.story={
|
|||
else if(typeof item=='string'){
|
||||
node.innerHTML='';
|
||||
node2=ui.create.div(node,'.conversation');
|
||||
if(item.length<=10){
|
||||
if(item.length<=12){
|
||||
node2.classList.add('center');
|
||||
}
|
||||
ui.create.div('',item,node2);
|
||||
|
|
Loading…
Reference in New Issue