Commit 6b5954ed authored by hisuinohoshi's avatar hisuinohoshi

rev botservice phase 0.601

变化:
- 现在可以在游戏管理后台内定义新游戏开始时会入场的bot数量;
parent b6a78bfd
......@@ -154,4 +154,7 @@ $gnpcsub = 0;
//场外支援系统 不能赞助自己 1:启用 0:关闭
$no_self_sponsored = 0;
//游戏新开局时向场内投入的bot数量
$rsgame_bots = 4;
?>
......@@ -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:每日定时:',
......
......@@ -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',
......
......@@ -112,7 +112,7 @@ if(CURSCRIPT !== 'chat'){
addnews($starttime,'newgame',$gamenum);
systemputchat($starttime,'newgame');
//是否部署BOT -> 数量;
$gamevars['botplayer'] = 2;
$gamevars['botplayer'] = $rsgame_bots;
$ginfochange = true;
}
}
......
......@@ -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>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment