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
1a878e2b
Commit
1a878e2b
authored
Jul 26, 2023
by
winddramon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert "baoshi(笑"
This reverts commit
2d3d319f
.
parent
2d3d319f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
46 deletions
+10
-46
include/game/item2.func.php
include/game/item2.func.php
+10
-28
userdb_remote_config.inc.php
userdb_remote_config.inc.php
+0
-18
No files found.
include/game/item2.func.php
View file @
1a878e2b
...
@@ -498,39 +498,21 @@ function qianghua($itmn = 0) {
...
@@ -498,39 +498,21 @@ function qianghua($itmn = 0) {
$zitmlv
=
$zitmlv
[
1
];
$zitmlv
=
$zitmlv
[
1
];
//$dengji = substr(${'itm'.$itmn},strpos(${'itm'.$itmn},"[+")+2,strlen(${'itm'.$itmn}) - strpos(${'itm'.$itmn},"]")+1);//北京你自己看着办
//$dengji = substr(${'itm'.$itmn},strpos(${'itm'.$itmn},"[+")+2,strlen(${'itm'.$itmn}) - strpos(${'itm'.$itmn},"]")+1);//北京你自己看着办
//$dengji = str_replace(']','',$dengji);
//$dengji = str_replace(']','',$dengji);
if
(
$zitmlv
>=
4
&&
$baoshi
!=
'『灵魂宝石』'
){
if
(
$zitmlv
>=
3
&&
$baoshi
!=
'『灵魂宝石』'
){
$log
.=
'你所选的宝石只能强化装备到[+
4
]哦!DA☆ZE<br>'
;
$log
.=
'你所选的宝石只能强化装备到[+
3
]哦!DA☆ZE<br>'
;
$mode
=
'command'
;
$mode
=
'command'
;
return
;
return
;
}
else
{
}
else
{
if
(
$zitmlv
==
3
&&
$baoshi
==
'『祝福宝石』'
){
if
(
$zitmlv
>=
4
){
if
(
$baoshis
<
2
)
$gailv
=
rand
(
1
,
$zitmlv
-
2
);
{
}
elseif
(
$zitmlv
>=
6
){
$log
.=
'你需要至少2颗祝福宝石才能强化装备到[+4]哦!DA☆ZE<br>'
;
$gailv
=
rand
(
1
,
$zitmlv
-
1
);
$mode
=
'command'
;
}
elseif
(
$zitmlv
>=
10
){
return
;
$gailv
=
rand
(
1
,
$zitmlv
);
}
elseif
(
$baoshis
==
2
)
//两颗成功率1/3
{
$baoshis
--
;
$dice
=
rand
(
1
,
30
);
}
else
//3颗必定成功
{
$baoshis
-=
2
;
$dice
=
1
;
}
}
elseif
(
$zitmlv
>=
4
){
$dice
=
rand
(
1
,
10
*
(
$zitmlv
-
2
));
//+5概率10/20,+6概率10/30,+7概率10/40,+8概率10/50与原来相同
// $gailv = rand(1,$zitmlv-2);//原代码因为错误的缘故只能执行这里,概率是1/(当前lv-2),也即冲+5就是1/2,冲+6就是1/3以此类推
// }elseif ($zitmlv >= 6){
// $gailv = rand(1,$zitmlv-1);
// }elseif ($zitmlv >= 10){
// $gailv = rand(1,$zitmlv);
}
else
{
}
else
{
$
dice
=
1
;
$
gailv
=
1
;
}
}
if
(
$
dice
<=
10
){
if
(
$
gailv
==
1
){
$flag
=
true
;
$flag
=
true
;
}
else
{
$flag
=
false
;}
}
else
{
$flag
=
false
;}
}
}
...
...
userdb_remote_config.inc.php
deleted
100644 → 0
View file @
2d3d319f
<?php
/*User remote system settings*/
//用户数据库远程存放地址(php,一般为userdb_receive.php),留空为存本地
//开启后,本地数据库相当于缓存,实际以远端数据库为准
$userdb_remote_storage
=
''
;
//用户数据远程存放签名
$userdb_remote_storage_sign
=
'local'
;
//用户数据远程存放密钥
$userdb_remote_storage_pass
=
'142857'
;
//接收来自以下地址的用户数据读写
//键名为地址(其实只是个签名),键值为密钥和IP,应该与发送端上面那个密钥对应。IP留空为不判断。
$userdb_receive_list
=
array
(
'local'
=>
Array
(
'pass'
=>
'142857'
,
'ip'
=>
'127.0.0.1'
),
);
?>
\ No newline at end of file
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