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
848fb7e7
Commit
848fb7e7
authored
Apr 08, 2023
by
hisuinohoshi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
009cb3e7
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
6 deletions
+6
-6
include/game/revbattle.calc.php
include/game/revbattle.calc.php
+2
-2
include/game/revcombat.calc.php
include/game/revcombat.calc.php
+3
-3
include/game/revcombat_extra.func.php
include/game/revcombat_extra.func.php
+1
-1
No files found.
include/game/revbattle.calc.php
View file @
848fb7e7
...
...
@@ -81,7 +81,7 @@ namespace revbattle
{
$active_r
=
$chase_active_obbs
;
# 计算追击状态下pa对pd的先攻加成。默认:战场距离*10%
if
(
$mode
==
2
)
$range_ar
+=
get_battle_range
(
$pa
,
$pd
,
1
)
*
10
;
if
(
$mode
==
2
)
$range_ar
+=
\revattr\
get_battle_range
(
$pa
,
$pd
,
1
)
*
10
;
}
# 社团技能对先攻率的修正
...
...
@@ -205,7 +205,7 @@ namespace revbattle
$r
+=
$sk_r
;
}
# pa持有「洞察」时的效果判定:(只在主动发现敌人时应用)
if
(
!
check_skill_unlock
(
'c10_insight'
,
$pa
)
&&
get_wep_skill
(
$pa
)
>
get_wep_skill
(
$pd
))
if
(
!
check_skill_unlock
(
'c10_insight'
,
$pa
)
&&
\revattr\get_wep_skill
(
$pa
)
>
\revattr\
get_wep_skill
(
$pd
))
{
$sk_lvl
=
get_skilllvl
(
'c10_insight'
,
$pa
);
$sk_r
=
get_skillvars
(
'c10_insight'
,
'actgain'
,
$sk_lvl
);
...
...
include/game/revcombat.calc.php
View file @
848fb7e7
...
...
@@ -107,7 +107,7 @@ namespace revcombat
$active_r
=
0
;
$active_dice
=
diceroll
(
99
);
# 计算战场距离
$range
=
get_battle_range
(
$pa
,
$pd
,
$active
);
$range
=
\revattr\
get_battle_range
(
$pa
,
$pd
,
$active
);
# pa或pd身上存在鏖战标记、或战场距离为0
if
(
strpos
(
$pa
[
'action'
],
'dfight'
)
===
0
||
strpos
(
$pd
[
'action'
],
'dfight'
)
===
0
||
!
$range
)
{
...
...
@@ -186,12 +186,12 @@ namespace revcombat
if
(
$chase_flag
)
{
# 满足追击/鏖战条件,判定战斗轮次步进
change_battle_turns
(
$pa
,
$pd
,
$active
);
\revattr\
change_battle_turns
(
$pa
,
$pd
,
$active
);
}
else
{
# 不满足追击/鏖战条件,重置战斗轮次
rs_battle_turns
(
$pa
,
$pd
);
\revattr\
rs_battle_turns
(
$pa
,
$pd
);
}
return
;
}
...
...
include/game/revcombat_extra.func.php
View file @
848fb7e7
...
...
@@ -235,7 +235,7 @@ namespace revcombat
for
(
$p
=
0
;
$p
<
$purify
;
$p
++
)
{
$heal_inf
=
$now_inf
[
$p
];
$flag
=
heal_inf_rev
(
$pd
,
$heal_inf
);
$flag
=
\revattr\
heal_inf_rev
(
$pd
,
$heal_inf
);
if
(
$flag
)
{
$log
.=
"<span class='yellow'>
{
$pd
[
'nm'
]
}
敛神聚气,从
{
$exdmginf
[
$heal_inf
]
}
中恢复了!</span><br>"
;
...
...
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