4 if(!defined(
'IN_GAME')) {
8 include_once
config(
'combatcfg',$gamecfg);
20 'weather' => array(10,20,0,-2,-3,-10,-7,5,-10,-20,0,-7,-5,-30,-5,-20,0),
22 'pls' => array(10,0,0,10,-10,10,0,10,-10,0,10,0,0,-10,0,-10,-10,-10,0,10,0,10),
23 'pose' => array(0,0,0,25,-10,-25),
27 $find_r += $_FIND[
'pose'][$pose];
28 $find_r += $_FIND[
'weather'][
$weather];
29 $find_r += $_FIND[
'pls'][$pls];
41 'pose' => array(0,-25,0,-10,10,-25),
44 'tactic' => array(0,0,0,-15,15),
47 $hide_r += $_HIDE[
'tactic'][$tactic];
55 'weather' => array(10,20,0,-5,-10,-20,-15,0,-7,-10,-10,-5,0,-5,-20,-5,0),
58 'pose' => array(0,0,0,0,25,-25),
63 'pose' => array(0,0,50,0,0,0),
66 $active_r += $_ACTIVE[
'weather'][
$weather];
67 $active_r += $_ACTIVE[
'pose'][$pose];
68 $active_r -= $_DACTIVE[
'pose'][$wpose];
69 foreach ($inf_active_p as $inf_ky => $value) {
70 if(strpos(
$inf, $inf_ky)!==
false){$active_r *= $value;}
78 $hitrate = $hitrate_obbs[$wkind];
79 $hitrate += round($skill * $hitrate_r[$wkind]);
80 if($hitrate > $hitrate_max_obbs[$wkind]) {$hitrate = $hitrate_max_obbs[$wkind];}
81 foreach ($inf_htr_p as $inf_ky => $value) {
82 if(strpos(
$inf, $inf_ky)!==
false){$hitrate *= $value;}
84 if($weather == 12){$hitrate += 20;}
92 $counter = $counter_obbs[$wkind];
98 foreach ($inf_counter_p as $inf_ky => $value) {
99 if(strpos(
$inf, $inf_ky)!==
false){$counter *= $value;}
109 'weather' => array(10,10,0,-5,-10,-20,-15,0,0,7,20,-7,-20,-5,-10,-10,-10),
110 'pls' => array(0,0,0,0,0,0,10,0,0,-10,0,0,0,0,-10,0,0,0,10,0,0,0),
111 'pose' => array(0,100,0,-25,25,-50),
112 'tactic' => array(0,20,-25,25,-50),
116 $attack += $_ATTACK[
'weather'][
$weather];
117 $attack += $_ATTACK[
'pls'][$pls];
118 if($active){$attack += $_ATTACK[
'pose'][$pose];}
119 else{$attack += $_ATTACK[
'tactic'][$tactic];}
120 foreach ($inf_att_p as $inf_ky => $value) {
121 if(strpos(
$inf, $inf_ky)!==
false){$attack *= $value;}
125 $attack = $attack > 0 ? $attack : 1;
134 'weather' => array(10,30,0,0,-3,-15,-10,0,-20,-30,-50,-5,-20,-3,-20,5,-30),
135 'pls' => array(0,-10,10,0,0,0,0,0,0,0,0,-10,10,0,0,0,0,0,0,0,10,0),
136 'pose' => array(0,25,0,-25,-50,-50),
137 'tactic' => array(0,-20,50,-25,0),
141 $defend += $_DEFEND[
'weather'][
$weather];
142 $defend += $_DEFEND[
'pls'][$pls];
143 if($active){$defend += $_DEFEND[
'pose'][$pose];}
144 else{$defend += $_DEFEND[
'tactic'][$tactic];}
145 foreach ($inf_def_p as $inf_ky => $value) {
146 if(strpos(
$inf, $inf_ky)!==
false){$defend *= $value;}
150 $defend = $defend > 0 ? $defend : 1;
get_active_r($weather=0, $pls=0, $pose=0, $tactic=0, $club=0, $inf= '', $wpose=0)
get_attack_p($weather=0, $pls=0, $pose=0, $tactic=0, $club=0, $inf= '', $active=1)
get_defend_p($weather=0, $pls=0, $pose=0, $tactic=0, $club=0, $inf= '', $active=1)
get_find_r($weather=0, $pls=0, $pose=0, $tactic=0, $club=0, $inf= '')
【生存者数:<?php echo $alivenum?> 人】< input type="button"value="显示全部幸存者"onClick="$('alivemode').value='all';$('gbmode').value='none';postCmd('alive','alive.php');"></p > if($gamblingon &&$gamestate >=20) elseif($gamblingon &&$gamestate<=10)
get_hitrate($wkind= 'N', $skill=0, $club=0, $inf= '')
get_counter($wkind= 'N', $tactic=0, $club=0, $inf= '')
config($file= '', $cfg=1)
get_hide_r($weather=0, $pls=0, $pose=0, $tactic=0, $club=0, $inf= '')
if(!defined('IN_GAME')) global $gamecfg