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
46813c28
Commit
46813c28
authored
Mar 05, 2023
by
Nemo Ma
Committed by
GitHub
Mar 05, 2023
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #44 from hikawiier/waaagh
TAT
parents
f5648e37
604184a5
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 @
46813c28
...
...
@@ -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 @
46813c28
...
...
@@ -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 @
46813c28
...
...
@@ -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
;
}
}
}
...
...
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