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
e6cc4cfc
Commit
e6cc4cfc
authored
Mar 23, 2023
by
Nemo Ma
Committed by
GitHub
Mar 23, 2023
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #86 from hikawiier/waaagh
rev botservice phase 0.601
parents
d7e63305
6b5954ed
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
12 additions
and
1 deletion
+12
-1
gamedata/cache/gamecfg_1.php
gamedata/cache/gamecfg_1.php
+3
-0
include/admin/admin.lang.php
include/admin/admin.lang.php
+2
-0
include/admin/gamecfgmng.php
include/admin/gamecfgmng.php
+1
-0
include/common.inc.php
include/common.inc.php
+1
-1
templates/default/admin_gamecfg.htm
templates/default/admin_gamecfg.htm
+5
-0
No files found.
gamedata/cache/gamecfg_1.php
View file @
e6cc4cfc
...
...
@@ -154,4 +154,7 @@ $gnpcsub = 0;
//场外支援系统 不能赞助自己 1:启用 0:关闭
$no_self_sponsored
=
0
;
//游戏新开局时向场内投入的bot数量
$rsgame_bots
=
4
;
?>
include/admin/admin.lang.php
View file @
e6cc4cfc
...
...
@@ -210,6 +210,8 @@ $lang = array
'teamlimit_comment'
=>
''
,
'npclimit'
=>
'npc数量'
,
'npclimit_comment'
=>
'士兵的数量,与其他npc无关'
,
'rsgame_bots'
=>
'开局bot数量'
,
'rsgame_bots_comment'
=>
'游戏开始时会初始化的bot数量'
,
'startmode_0'
=>
'模式0:手动设定:'
,
'startmode_1'
=>
'模式1:每日定时:'
,
...
...
include/admin/gamecfgmng.php
View file @
e6cc4cfc
...
...
@@ -23,6 +23,7 @@ if($command == 'edit') {
'sleep_time'
=>
'int'
,
'heal_time'
=>
'int'
,
'teamlimit'
=>
'int'
,
'rsgame_bots'
=>
'int'
,
'credits2_values'
=>
'int'
,
'no_self_sponsored'
=>
'b'
,
'sponsor_title'
=>
'str'
,
...
...
include/common.inc.php
View file @
e6cc4cfc
...
...
@@ -112,7 +112,7 @@ if(CURSCRIPT !== 'chat'){
addnews
(
$starttime
,
'newgame'
,
$gamenum
);
systemputchat
(
$starttime
,
'newgame'
);
//是否部署BOT -> 数量;
$gamevars
[
'botplayer'
]
=
2
;
$gamevars
[
'botplayer'
]
=
$rsgame_bots
;
$ginfochange
=
true
;
}
}
...
...
templates/default/admin_gamecfg.htm
View file @
e6cc4cfc
...
...
@@ -97,6 +97,11 @@
<td><input
type=
"text"
name=
"teamlimit"
value=
"{$teamlimit}"
size=
"30"
></td>
<td>
{$lang['teamlimit_comment']}
</td>
</tr>
<tr>
<td>
{$lang['rsgame_bots']}
</td>
<td><input
type=
"text"
name=
"rsgame_bots"
value=
"{$rsgame_bots}"
size=
"30"
></td>
<td>
{$lang['rsgame_bots_comment']}
</td>
</tr>
<tr>
<td>
{$lang['credits2_values']}
</td>
<td><input
type=
"text"
name=
"credits2_values"
value=
"{$credits2_values}"
size=
"30"
></td>
...
...
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