Commit 82d3adc1 authored by Nemo Ma's avatar Nemo Ma Committed by GitHub

Merge pull request #109 from hikawiier/waaagh

fix
parents 3ab780e0 20c488c4
......@@ -172,4 +172,7 @@ $ip_max_rooms = 2;
//重登陆时是否自动退出房间(1:自动退出 0:不自动退出)
$login_exit_room = 0;
//版本更新时是否需要检查增补数据库字段
$need_update_db_structrue = 0;
?>
......@@ -56,8 +56,8 @@ require config('audio',$gamecfg);
require config('tooltip',$gamecfg);
$gtablepre = $tablepre;
# 检查game表是否需要补缺
roommng_verify_db_game_structure();
if($need_update_db_structrue) roommng_verify_db_game_structure();
ob_start();
......
......@@ -59,6 +59,7 @@ namespace revcombat
# 这里传入的第一个参数分别是实际上的pd和pa,所以下面的判定主体都是pa
function calc_clbskill_counter_rate(&$pa,&$pd,$active,$counterate)
{
global $inf_counter_p;
#「直感」效果判定:
if(isset($pa['skill_c2_intuit']))
{
......
......@@ -217,7 +217,6 @@ namespace revcombat:
- rev_combat();
- rev_attack();
- rev_combat_result();
- npc_changewep_rev(); npc_chat_rev();
- revcombat_extra.func.php:
- get_attr_wepbase() 初始化双方的攻击相关参数(攻击方式、主动技能参数、被动技能参数、武器射程、攻击熟练度、武器名)
- combat_prepare_events();
......
......@@ -91,7 +91,10 @@
$killmsg = '';
}
if (! $type) {
if (!$type)
{
$alivenum--;
$deathnum++;
$result = $db->query ( "SELECT lastword FROM {$gtablepre}users WHERE username = '$name'" );
$lastword = $db->result ( $result, 0 );
$lwname = $typeinfo [$type] . ' ' . $name;
......@@ -106,6 +109,9 @@
addnews ( $now, 'death' . $state, $name, $type, $knname, $annex, $lastword );
//$alivenum = $db->result($db->query("SELECT COUNT(*) FROM {$tablepre}players WHERE hp>0 AND type=0"), 0);
# 执行死亡事件(灵魂绑定等)
check_death_events(create_dummy_playerdata(),$data,1);
save_gameinfo ();
return $killmsg;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment