play
This commit is contained in:
parent
9203a7717f
commit
ff9b24477f
|
@ -1,12 +1,12 @@
|
|||
play.character={
|
||||
// mode:['identity','guozhan','versus'],
|
||||
video:function(list){
|
||||
this.init(list);
|
||||
this.arenaReady(list);
|
||||
for(var i in this.skill){
|
||||
lib.skill[i]=this.skill[i];
|
||||
}
|
||||
},
|
||||
init:function(videolist){
|
||||
arenaReady:function(videolist){
|
||||
var list=[],list2=[];
|
||||
var i,j,name;
|
||||
for(i in lib.character){
|
||||
|
@ -15,7 +15,7 @@ play.character={
|
|||
if(lib.config.banned.contains(i)) continue;
|
||||
if(lib.character[i][4]&&lib.character[i][4].contains('forbidai')) continue;
|
||||
if(lib.character[i][4]&&lib.character[i][4].contains('boss')) continue;
|
||||
if(!get.config('double_character')&&get.config('ban_weak')&&lib.config.forbidsingle.contains(i)) continue;
|
||||
if(lib.character[i][4]&&lib.character[i][4].contains('hiddenboss')) continue;
|
||||
if(get.config('double_character')&&lib.config.forbiddouble.contains(i)) continue;
|
||||
list.push(i);
|
||||
}
|
||||
|
|
|
@ -6,7 +6,7 @@ play.coin={
|
|||
}
|
||||
},
|
||||
arenaReady:function(){
|
||||
if(_status.video) return;
|
||||
if(_status.video||_status.connectMode) return;
|
||||
if(lib.config.mode!='chess'||get.config('chess_mode')!='leader'){
|
||||
var str;
|
||||
if(lib.config.coin_display_playpackconfig=='text'){
|
||||
|
|
|
@ -18,6 +18,9 @@ play.soldier={
|
|||
trigger:{global:'gameStart'},
|
||||
forced:true,
|
||||
popup:false,
|
||||
filter:function(){
|
||||
return !_status.connectMode;
|
||||
},
|
||||
content:function(){
|
||||
if(_status.soldierList==undefined){
|
||||
_status.soldierList=['qingbubing','zhongbubing','qingqibing','zhongqibing','gongjianbing',
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
'use strict';
|
||||
play.weather={
|
||||
arenaReady:function(){
|
||||
if(_status.video) return;
|
||||
if(_status.video||_status.connectMode) return;
|
||||
_status.weatherchance=parseFloat(lib.config.weather_chance_playpackconfig)||0;
|
||||
|
||||
ui.weather=ui.create.system('',null,true);
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
play.wuxing={
|
||||
init:function(){
|
||||
// lib.nature.push('metal','wood','water','soil');
|
||||
arenaReady:function(){
|
||||
if(_status.connectMode) return;
|
||||
lib.card.list.splice(Math.floor(lib.card.list.length*Math.random()),0,['spade',5,'wuxingpan']);
|
||||
if(!_status.video){
|
||||
lib.video.push({
|
||||
|
@ -26,7 +26,7 @@ play.wuxing={
|
|||
if(player.node.wuxing){
|
||||
player.node.wuxing.remove();
|
||||
}
|
||||
if(_status.video) return;
|
||||
if(_status.video||_status.connectMode) return;
|
||||
var node=ui.create.div('.wunature',player);
|
||||
var list=['metal','wood','water','fire','soil'];
|
||||
var nature=list.randomGet();
|
||||
|
@ -38,7 +38,7 @@ play.wuxing={
|
|||
},
|
||||
card:{
|
||||
init:function(card){
|
||||
if(_status.video) return;
|
||||
if(_status.video||_status.connectMode) return;
|
||||
if(card.name=='wuxingpan') return;
|
||||
if(card.wunature) return;
|
||||
if(Math.random()>(parseFloat(lib.config.wuxing_num_playpackconfig)||0)) return;
|
||||
|
@ -61,6 +61,7 @@ play.wuxing={
|
|||
forced:true,
|
||||
popup:false,
|
||||
filter:function(event,player){
|
||||
if(_status.connectMode) return false;
|
||||
return event.card.wunature&&player.wunature;
|
||||
},
|
||||
content:function(){
|
||||
|
|
Loading…
Reference in New Issue