Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
phpdts
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Nemo Ma
phpdts
Commits
82d3adc1
Commit
82d3adc1
authored
Apr 04, 2023
by
Nemo Ma
Committed by
GitHub
Apr 04, 2023
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #109 from hikawiier/waaagh
fix
parents
3ab780e0
20c488c4
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
13 additions
and
4 deletions
+13
-4
gamedata/cache/gamecfg_1.php
gamedata/cache/gamecfg_1.php
+3
-0
include/common.inc.php
include/common.inc.php
+2
-2
include/game/revcombat.calc.php
include/game/revcombat.calc.php
+1
-0
include/game/revcombat.readme.txt
include/game/revcombat.readme.txt
+0
-1
include/state.func.php
include/state.func.php
+7
-1
No files found.
gamedata/cache/gamecfg_1.php
View file @
82d3adc1
...
...
@@ -172,4 +172,7 @@ $ip_max_rooms = 2;
//重登陆时是否自动退出房间(1:自动退出 0:不自动退出)
$login_exit_room
=
0
;
//版本更新时是否需要检查增补数据库字段
$need_update_db_structrue
=
0
;
?>
include/common.inc.php
View file @
82d3adc1
...
...
@@ -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
();
...
...
include/game/revcombat.calc.php
View file @
82d3adc1
...
...
@@ -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'
]))
{
...
...
include/game/revcombat.readme.txt
View file @
82d3adc1
...
...
@@ -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();
...
...
include/state.func.php
View file @
82d3adc1
...
...
@@ -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
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment