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
caf750b6
Commit
caf750b6
authored
Mar 06, 2023
by
hisuinohoshi
1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
修复: 通过 >>进入游戏 加载界面时,消除了时效性技能却没有保存玩家数据的问题;
parent
20becbc3
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
2 deletions
+14
-2
command.php
command.php
+1
-1
game.php
game.php
+12
-1
include/game.func.php
include/game.func.php
+1
-0
No files found.
command.php
View file @
caf750b6
...
...
@@ -96,7 +96,7 @@ if($hp > 0){
//如果身上存在时效性技能,检查技能是否超时
if
(
$hp
>
0
&&
!
empty
(
$clbpara
[
'lasttimes'
]))
check_skilllasttimes
();
//应用眩晕状态效果
if
(
$hp
>
0
&&
in_array
(
'inf_dizzy'
,
$clbpara
[
'skill'
]))
if
(
$hp
>
0
&&
!
empty
(
$clbpara
[
'skill'
])
&&
in_array
(
'inf_dizzy'
,
$clbpara
[
'skill'
]))
{
$dizzy_times
=
((
$clbpara
[
'starttimes'
][
'inf_dizzy'
]
+
$clbpara
[
'lasttimes'
][
'inf_dizzy'
])
-
$now
)
*
1000
;
$log
.=
'<span class="yellow">你现在处于眩晕状态,什么都做不了!</span><br>眩晕状态持续时间还剩:<span id="timer" class="yellow">'
.
$dizzy_times
.
'</span>秒<br><script type="text/javascript">demiSecTimerStarter('
.
$dizzy_times
.
');</script>'
;
...
...
game.php
View file @
caf750b6
...
...
@@ -133,7 +133,18 @@ elseif((strpos($action,'neut')===0)){
}
if
(
$hp
>
0
&&
$coldtimeon
&&
$showcoldtimer
&&
$rmcdtime
){
$log
.=
"行动冷却时间:<span id=
\"
timer
\"
class=
\"
yellow
\"
>0.0</span>秒<script type=
\"
text/javascript
\"
>demiSecTimerStarter(
$rmcdtime
);</script><br>"
;}
//如果身上存在时效性技能,检查技能是否超时
if
(
$hp
>
0
&&
!
empty
(
$clbpara
[
'lasttimes'
]))
check_skilllasttimes
();
if
(
$hp
>
0
&&
!
empty
(
$clbpara
[
'lasttimes'
]))
{
$flag
=
check_skilllasttimes
();
if
(
$flag
)
{
$pdata
=
current_player_save
();
$pdata
[
'clbpara'
]
=
get_clbpara
(
$pdata
[
'clbpara'
]);
extract
(
$pdata
);
init_playerdata
();
init_profile
();
}
}
if
(
$hp
>
0
&&
in_array
(
'inf_dizzy'
,
$clbpara
[
'skill'
]))
{
$dizzy_times
=
((
$clbpara
[
'starttimes'
][
'inf_dizzy'
]
+
$clbpara
[
'lasttimes'
][
'inf_dizzy'
])
-
$now
)
*
1000
;
...
...
include/game.func.php
View file @
caf750b6
...
...
@@ -699,6 +699,7 @@ function check_skilllasttimes(&$data=NULL)
lostclubskill
(
$sk
,
$para
);
$sk_name
=
$cskills
[
$sk
][
'name'
];
$log
.=
"<span class='yellow'>
{
$nm
}
从
{
$sk_name
}
状态中恢复了!</span><br>"
;
return
1
;
}
}
}
...
...
Nemo Ma
@nemoma
mentioned in commit
15c65f34
·
Mar 06, 2023
mentioned in commit
15c65f34
mentioned in commit 15c65f34b953fc1fbf5a8b6142c7cf2e8a33b51b
Toggle commit list
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