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
b639f4fc
Commit
b639f4fc
authored
Feb 06, 2023
by
Nemo Ma
Committed by
GitHub
Feb 06, 2023
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #23 from hikawiier/waaagh
fix
parents
0d67f709
9d6d1215
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
32 additions
and
25 deletions
+32
-25
include/game/revattr.func.php
include/game/revattr.func.php
+25
-20
include/game/revattr_extra.func.php
include/game/revattr_extra.func.php
+2
-0
include/game/revcombat.func.php
include/game/revcombat.func.php
+1
-1
include/game/search.func.php
include/game/search.func.php
+4
-4
No files found.
include/game/revattr.func.php
View file @
b639f4fc
...
...
@@ -431,14 +431,16 @@
function
get_base_att_modifier
(
&
$pa
,
&
$pd
,
$active
,
$base_att
)
{
//计算天气、姿态、策略、地点对pa攻击力的修正
global
$weather
,
$weather_attack_modifier
,
$pose_attack_modifier
,
$tactic_attack_modifier
,
$pls_attack_modifier
;
$wth_atk_per
=
$weather_attack_modifier
[
$weather
]
?:
0
;
$pose_atk_per
=
$pose_attack_modifier
[
$pa
[
'pose'
]]
?:
0
;
$tac_atk_per
=
$tactic_attack_modifier
[
$pa
[
'tactic'
]]
?:
0
;
$pls_atk_per
=
$pls_attack_modifier
[
$pa
[
'pls'
]]
?:
0
;
$base_att
=
round
(
$base_att
*
((
100
+
$wth_atk_per
+
$pose_atk_per
+
$tac_atk_per
+
$pls_atk_per
)
/
100
));
global
$weather
,
$weather_attack_modifier
,
$pose_attack_modifier
,
$tactic_attack_modifier
,
$pls_attack_modifier
,
$log
;
$base_atk_per
=
100
;
$base_atk_per
+=
$weather_attack_modifier
[
$weather
]
?:
0
;
$base_atk_per
+=
$pose_attack_modifier
[
$pa
[
'pose'
]]
?:
0
;
$base_atk_per
+=
$tactic_attack_modifier
[
$pa
[
'tactic'
]]
?:
0
;
$base_atk_per
+=
$pls_attack_modifier
[
$pa
[
'pls'
]]
?:
0
;
$base_atk_per
=
$base_atk_per
>
0
?
$base_atk_per
:
1
;
//$log.= "【DEBUG】{$pa['name']}的atk_per是{$base_atk_per},";
$base_att
=
round
(
$base_att
*
(
$base_atk_per
/
100
));
//$log.= "【DEBUG】{$pa['name']}修正后的base_att是{$base_att},";
//计算pa受伤状态对攻击力的修正
global
$inf_att_p
;
foreach
(
$inf_att_p
as
$inf_ky
=>
$value
)
...
...
@@ -489,16 +491,19 @@
{
//计算天气、姿态、策略、地点对pd防御力的修正
global
$weather
,
$weather_defend_modifier
,
$pose_defend_modifier
,
$tactic_defend_modifier
,
$pls_defend_modifier
,
$log
;
$wth_def_per
=
$weather_defend_modifier
[
$weather
]
?:
0
;
//$log.= "天气修正系数是{$wth_def_per}。<br>";
$pose_def_per
=
$pose_defend_modifier
[
$pd
[
'pose'
]]
?:
0
;
//$log.= "姿势修正系数是{$pose_def_per}。<br>";
$tac_def_per
=
$tactic_defend_modifier
[
$pd
[
'tactic'
]]
?:
0
;
//$log.= "策略修正系数是{$tac_def_per}。<br>";
$pls_def_per
=
$pls_defend_modifier
[
$pd
[
'pls'
]]
?:
0
;
//$log.= "地点修正系数是{$pls_def_per}。<br>";
$total_def
=
round
(
$total_def
*
((
100
+
$wth_def_per
+
$pose_def_per
+
$tac_def_per
+
$pls_def_per
)
/
100
));
$base_def_per
=
100
;
$base_def_per
+=
$weather_defend_modifier
[
$weather
]
?:
0
;
//$log.= "天气修正系数是{$base_def_per}。<br>";
$base_def_per
+=
$pose_defend_modifier
[
$pd
[
'pose'
]]
?:
0
;
//$log.= "姿势修正系数是{$base_def_per}。<br>";
$base_def_per
+=
$tactic_defend_modifier
[
$pd
[
'tactic'
]]
?:
0
;
//$log.= "策略修正系数是{$base_def_per}。<br>";
$base_def_per
+=
$pls_defend_modifier
[
$pd
[
'pls'
]]
?:
0
;
//$log.= "地点修正系数是{$base_def_per}。<br>";
$base_def_per
=
$base_def_per
>
0
?
$base_def_per
:
1
;
//$log.= "最终修正后的系数是{$base_def_per}。<br>";
//0.01的是原来给倍率兜底不是给防御兜底的 什么天才设计
$total_def
=
round
(
$total_def
*
(
$base_def_per
/
100
));
//$log.= "上述修正后防御为{$total_def}。<br>";
//计算受伤状态对pd防御力的修正
...
...
@@ -593,7 +598,7 @@
//获取威力系数:NPC固定为50%
$factor
=
$pa
[
'type'
]
?
0.5
:
0.5
+
(
$sp_cost
/
$sp_cost_max
/
2
);
//获取伤害变化倍率并扣除体力
$dmg_p
[]
=
$factor
;
$dmg_p
[]
=
round
(
$factor
,
2
)
;
$pa
[
'sp'
]
-=
$sp_cost
;
//输出log
$f
=
round
(
100
*
$factor
);
...
...
@@ -991,7 +996,7 @@
if
(
$p
!=
100
)
{
$log
.=
"<span class=
\"
yellow
\"
>在「晶莹」的作用下,
{
$pa
[
'nm'
]
}
造成的最终伤害变化至"
.
$p
.
"%!</span><br>"
;
$fin_dmg_p
[]
=
round
(
$p
/
100
);
$fin_dmg_p
[]
=
round
(
$p
/
100
,
2
);
}
}
...
...
include/game/revattr_extra.func.php
View file @
b639f4fc
...
...
@@ -218,6 +218,7 @@
<span class=
\"
neonblue
\"
>“扫描失败了么……”</span><br>"
;
}
}
return
;
}
# 书中虫特殊判定
...
...
@@ -449,6 +450,7 @@
}
return
$dmg
;
}
return
;
}
?>
\ No newline at end of file
include/game/revcombat.func.php
View file @
b639f4fc
...
...
@@ -300,7 +300,7 @@
# 获取属性
$pa
[
'ex_equip_keys'
]
=
$pa
[
'ex_wep_keys'
]
=
Array
();
$pa
[
'ex_equip_keys'
]
=
get_equip_ex_array
(
$pa
);
//获取pa防具上的所有属性
$pa
[
'ex_wep_keys'
]
=
get_wep_ex_array
(
$pa
);
//获取p
d
武器、饰品上的所有属性
$pa
[
'ex_wep_keys'
]
=
get_wep_ex_array
(
$pa
);
//获取p
a
武器、饰品上的所有属性
$pd
[
'ex_equip_keys'
]
=
$pd
[
'ex_wep_keys'
]
=
Array
();
$pd
[
'ex_equip_keys'
]
=
get_equip_ex_array
(
$pd
);
//获取pd防具上的所有属性
...
...
include/game/search.func.php
View file @
b639f4fc
...
...
@@ -609,8 +609,8 @@ function discover($schmode = 0) {
if
(
$active_dice
<
$active_r
)
{
$action
=
'enemy'
.
$edata
[
'pid'
];
//
include_once GAME_ROOT.'./include/game/battle.func.php';
//
findenemy($edata);
#
include_once GAME_ROOT.'./include/game/battle.func.php';
#
findenemy($edata);
include_once
GAME_ROOT
.
'./include/game/revbattle.func.php'
;
findenemy_rev
(
$edata
);
return
;
...
...
@@ -625,8 +625,8 @@ function discover($schmode = 0) {
echo
"passive_w_type=
{
$edata
[
'type'
]
}
\n
"
;
echo
"passive_w_sNo=
{
$edata
[
'sNo'
]
}
\n
"
;
}
//
include_once GAME_ROOT.'./include/game/combat.func.php';
//
combat(0);
#
include_once GAME_ROOT.'./include/game/combat.func.php';
#
combat(0);
include_once
GAME_ROOT
.
'./include/game/revcombat.func.php'
;
rev_combat_prepare
(
$edata
,
NULL
,
0
);
return
;
...
...
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