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
6f02c4be
Commit
6f02c4be
authored
Jan 30, 2023
by
hisuinohoshi
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'beginning' into final
parents
25b62bc9
ec531db9
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
35 additions
and
2 deletions
+35
-2
LICENSE
LICENSE
+21
-0
README.md
README.md
+2
-0
gamedata/cache/addnpc_1.php
gamedata/cache/addnpc_1.php
+1
-1
img/NPCAvatar_Temp.psd
img/NPCAvatar_Temp.psd
+0
-0
img/n_127.gif
img/n_127.gif
+0
-0
include/global.func.php
include/global.func.php
+11
-1
No files found.
LICENSE
0 → 100644
View file @
6f02c4be
MIT License
Copyright (c) 2008-2023 NMFORCE GAMES
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
README.md
0 → 100644
View file @
6f02c4be
# 常磐大逃杀(PHP Battle Royale)
A PHP based game emulating the settings and gameplay of the original Battle Royale series, with a lot of original spin and an original story with tons of references to pop culture.
gamedata/cache/addnpc_1.php
View file @
6f02c4be
...
...
@@ -1741,7 +1741,7 @@ $anpcinfo = array
0
=>
array
(
'name'
=>
'迷之搬运工'
,
'icon'
=>
1
0
,
'icon'
=>
1
27
,
'wep'
=>
'大喇叭'
,
'wepk'
=>
'WP'
,
'wepe'
=>
25
,
...
...
img/NPCAvatar_Temp.psd
View file @
6f02c4be
No preview for this file type
img/n_127.gif
0 → 100644
View file @
6f02c4be
7.96 KB
include/global.func.php
View file @
6f02c4be
...
...
@@ -532,7 +532,7 @@ function update_db_player_structure($type=0)
return
$type
?
$db_player_structure_types
:
$db_player_structure
;
}
//返回一个只有数据库合法字段键名的pdata数组
function
player_format_with_db_structure
(
$data
){
/*
function player_format_with_db_structure($data){
$ndata=Array();
$db_player_structure = update_db_player_structure();
foreach ($db_player_structure as $key)
...
...
@@ -541,6 +541,16 @@ function player_format_with_db_structure($data){
$ndata[$key]=isset($data[$key]) ? $data[$key] : '';
}
return $ndata;
} */
function
player_format_with_db_structure
(
$data
){
$ndata
=
Array
();
$db_player_structure
=
update_db_player_structure
();
foreach
(
$db_player_structure
as
$key
)
{
if
(
is_array
(
$data
[
$key
]))
$data
[
$key
]
=
json_encode
(
$data
[
$key
]);
$ndata
[
$key
]
=
$data
[
$key
];
}
return
$ndata
;
}
//为显示在主界面、尸体发现界面、游戏帮助界面的道具名、道具类、道具属性添加额外描述
//传入$n=道具名/类/属性;$t='m'(使用名称数组)/'k'(类别)/'sk'(属性);$short=1(传入的$n为数组情况下才有效,缩写属性);$class(如果传入的$n没有匹配的样式,则应用该样式)
...
...
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