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
d2663b41
Commit
d2663b41
authored
Apr 22, 2023
by
Nemo Ma
Committed by
GitHub
Apr 22, 2023
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #124 from hikawiier/waaagh
fix
parents
4077dcd5
70722897
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
3 deletions
+13
-3
gamedata/cache/style_20190718.css
gamedata/cache/style_20190718.css
+2
-0
include/game/battle.func.php
include/game/battle.func.php
+1
-1
include/global.func.php
include/global.func.php
+10
-2
No files found.
gamedata/cache/style_20190718.css
View file @
d2663b41
...
...
@@ -407,6 +407,7 @@ span[tooltip] {
}
span
[
tooltip
]
:hover:before
{
content
:
attr
(
tooltip
);
display
:
inline-block
;
font
:
8pt
"微软雅黑"
serif
;
color
:
rgba
(
225
,
124
,
226
,
1
);
padding
:
7px
;
text-align
:
left
;
white-space
:
pre-line
;
text-shadow
:
1px
1px
1px
rgb
(
106
,
0
,
108
);
text-fill-color
:
rgb
(
245
,
174
,
246
);
-webkit-text-fill-color
:
rgb
(
245
,
174
,
246
);
...
...
@@ -418,6 +419,7 @@ span[tooltip]:hover:before {
}
span
[
tooltip2
]
:hover:before
{
content
:
attr
(
tooltip2
);
display
:
inline-block
;
font
:
8pt
"微软雅黑"
serif
;
color
:
rgba
(
225
,
124
,
226
,
1
);
padding
:
7px
;
text-align
:
left
;
white-space
:
pre-line
;
text-shadow
:
1px
1px
1px
rgb
(
106
,
0
,
108
);
text-fill-color
:
rgb
(
245
,
174
,
246
);
-webkit-text-fill-color
:
rgb
(
245
,
174
,
246
);
...
...
include/game/battle.func.php
View file @
d2663b41
...
...
@@ -177,7 +177,7 @@ function findcorpse(&$w_pdata){
function
senditem
(){
//global $db,$tablepre,$log,$mode,$main,$command,$cmd,$battle_title,$pls,$plsinfo,$message,$now,$name,$w_log,$teamID,$gamestate,$action;
global
$db
,
$tablepre
,
$log
,
$mode
,
$main
,
$command
,
$cmd
,
$battle_title
,
$plsinfo
,
$hplsinfo
,
$now
,
$gamestate
;
global
$db
,
$tablepre
,
$log
,
$mode
,
$main
,
$command
,
$cmd
,
$battle_title
,
$
message
,
$
plsinfo
,
$hplsinfo
,
$now
,
$gamestate
;
if
(
!
isset
(
$data
))
{
global
$pdata
;
...
...
include/global.func.php
View file @
d2663b41
...
...
@@ -258,8 +258,16 @@ function save_gameinfo()
global
$now
,
$db
,
$gtablepre
,
$tablepre
;
global
$groomid
,
$gamenum
,
$gamestate
,
$lastupdate
,
$starttime
,
$winmode
,
$winner
,
$arealist
,
$areanum
,
$areatime
,
$areawarn
,
$validnum
,
$alivenum
,
$deathnum
,
$afktime
,
$optime
,
$weather
,
$hack
,
$combonum
,
$gamevars
;
if
(
!
isset
(
$gamenum
)
||!
isset
(
$gamestate
)){
return
;}
if
(
$alivenum
<
0
){
$alivenum
=
0
;}
if
(
$deathnum
<
0
){
$deathnum
=
0
;}
$result
=
$db
->
query
(
"SELECT pid FROM
{
$tablepre
}
players WHERE type=0"
);
$validnum
=
$db
->
num_rows
(
$result
);
$result
=
$db
->
query
(
"SELECT pid FROM
{
$tablepre
}
players WHERE hp>0 AND type=0"
);
$alivenum
=
$db
->
num_rows
(
$result
);
$result
=
$db
->
query
(
"SELECT pid FROM
{
$tablepre
}
players WHERE hp<=0 OR state>=10"
);
$deathnum
=
$db
->
num_rows
(
$result
);
if
(
empty
(
$afktime
)){
$afktime
=
$now
;}
if
(
empty
(
$optime
)){
$optime
=
$now
;}
$gameinfo
=
Array
();
...
...
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