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
ce108f05
Commit
ce108f05
authored
May 13, 2023
by
hisuinohoshi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix elementmix
修正: - 元素大师使用『C.H.A.O.S』后无法进一步合成『G.A.M.E.O.V.E.R』的问题;
parent
a34d0e9d
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
73 additions
and
26 deletions
+73
-26
command.php
command.php
+5
-0
gamedata/cache/resources_1.php
gamedata/cache/resources_1.php
+1
-1
gamedata/cache/vnworld_1.php
gamedata/cache/vnworld_1.php
+1
-1
include/game/elementmix.func.php
include/game/elementmix.func.php
+7
-0
include/game/item.func.php
include/game/item.func.php
+54
-23
templates/default/command.htm
templates/default/command.htm
+5
-1
No files found.
command.php
View file @
ce108f05
...
@@ -172,6 +172,11 @@ if($hp > 0){
...
@@ -172,6 +172,11 @@ if($hp > 0){
if
(
$club
==
20
){
if
(
$club
==
20
){
include_once
GAME_ROOT
.
'./include/game/elementmix.calc.php'
;
include_once
GAME_ROOT
.
'./include/game/elementmix.calc.php'
;
$emax
=
emix_calc_maxenum
();
$emax
=
emix_calc_maxenum
();
if
(
$clbstatusa
)
{
$log
.=
"你习惯性摸了摸腰间,但那里已经没有元素口袋了……呼,至少元素们还没有离开你。<br>"
;
$main
=
''
;
$itemcmd
=
'command'
;
}
}
}
$mode
=
$itemcmd
;
$mode
=
$itemcmd
;
}
}
...
...
gamedata/cache/resources_1.php
View file @
ce108f05
...
@@ -1061,7 +1061,7 @@ $itemspkinfo = Array(
...
@@ -1061,7 +1061,7 @@ $itemspkinfo = Array(
'P'
=>
'防殴'
,
'P'
=>
'防殴'
,
'p'
=>
'带毒'
,
'p'
=>
'带毒'
,
'q'
=>
'防毒'
,
'q'
=>
'防毒'
,
'R'
=>
'混沌
伤害
'
,
'R'
=>
'混沌'
,
'r'
=>
'连击'
,
'r'
=>
'连击'
,
'S'
=>
'消音'
,
'S'
=>
'消音'
,
's'
=>
'调整'
,
's'
=>
'调整'
,
...
...
gamedata/cache/vnworld_1.php
View file @
ce108f05
...
@@ -171,7 +171,7 @@ $vn_itemspkinfo = Array
...
@@ -171,7 +171,7 @@ $vn_itemspkinfo = Array
'P'
=>
'防殴'
,
'P'
=>
'防殴'
,
'p'
=>
'带毒'
,
'p'
=>
'带毒'
,
'q'
=>
'防毒'
,
'q'
=>
'防毒'
,
'R'
=>
'混沌
伤害
'
,
'R'
=>
'混沌'
,
'r'
=>
'连击'
,
'r'
=>
'连击'
,
'S'
=>
'消音'
,
'S'
=>
'消音'
,
's'
=>
'调整'
,
's'
=>
'调整'
,
...
...
include/game/elementmix.func.php
View file @
ce108f05
...
@@ -387,6 +387,13 @@
...
@@ -387,6 +387,13 @@
$log
.=
"你思考了一会儿,还是没明白你到底想要干什么……<br>"
;
$log
.=
"你思考了一会儿,还是没明白你到底想要干什么……<br>"
;
return
;
return
;
}
}
if
(
$clbstatusa
)
{
$log
.=
"你习惯性摸了摸腰间,但那里已经没有元素口袋了……呼,至少元素们还没有离开你。<br>"
;
return
;
}
# 打散队列
# 打散队列
$list
=
explode
(
'+'
,
$list
);
$list
=
explode
(
'+'
,
$list
);
$nums
=
explode
(
'+'
,
$nums
);
$nums
=
explode
(
'+'
,
$nums
);
...
...
include/game/item.func.php
View file @
ce108f05
...
@@ -1346,6 +1346,7 @@ function itemuse($itmn,&$data=NULL) {
...
@@ -1346,6 +1346,7 @@ function itemuse($itmn,&$data=NULL) {
$itme
=
&
$
{
'itme'
.
$i
};
$itme
=
&
$
{
'itme'
.
$i
};
$itms
=
&
$
{
'itms'
.
$i
};
$itms
=
&
$
{
'itms'
.
$i
};
$itmsk
=
&
$
{
'itmsk'
.
$i
};
$itmsk
=
&
$
{
'itmsk'
.
$i
};
# ventus
if
(
$itm
==
'黑色发卡'
)
{
$flag
=
true
;}
if
(
$itm
==
'黑色发卡'
)
{
$flag
=
true
;}
$itm
=
''
;
$itm
=
''
;
$itmk
=
''
;
$itmk
=
''
;
...
@@ -1356,36 +1357,66 @@ function itemuse($itmn,&$data=NULL) {
...
@@ -1356,36 +1357,66 @@ function itemuse($itmn,&$data=NULL) {
//global $itm0,$itmk0,$itme0,$itms0,$itmsk0;
//global $itm0,$itmk0,$itme0,$itms0,$itmsk0;
$karma
=
$rp
*
$killnum
-
$def
+
$att
;
$karma
=
$rp
*
$killnum
-
$def
+
$att
;
$f1
=
false
;
$f1
=
false
;
//『G.A.M.E.O.V.E.R』itmk:Y itme:1 itms:1 itmsk:zxZ
//『G.A.M.E.O.V.E.R』itmk:Y itme:1 itms:1 itmsk:zxZ
if
((
$ss
>=
600
)
&&
(
$killnum
<=
15
)){
$itm0
=
'『T.E.R.R.A』'
;
# terra
$tflag
=
((
$ss
>=
600
)
&&
(
$killnum
<=
15
))
?
1
:
0
;
# aqua
$hflag
=
$karma
<=
2000
?
1
:
0
;
# 元素大师使用chaos时,不再需要进一步合成,但是会失去元素合成功能
if
(
$club
==
20
)
{
$log
.=
"系在你腰间的口袋剧烈颤动着,下一刻,你的直觉被某物触动了。<br>
在你的视界里,浮现出了难以描绘、似真似幻的独特“元素”:<br><br>"
;
if
(
$tflag
)
$log
.=
"有生命的热火、有逝者的悲怆;<br>"
;
if
(
$hflag
)
$log
.=
"有命运的尾迹、有因缘的蟠结;<br>"
;
if
(
$flag
)
$log
.=
"有衬出影子的光、有糅在光里的影。<br>"
;
$log
.=
"<br>然后,你的<span class='sparkle'>
{
$sparkle
}
元素口袋
{
$sparkle
}
</span>飞了出去——<br><br>"
;
# 失去元素口袋
$clbstatusa
=
1
;
# 直接获得gameover
$itm0
=
'『G.A.M.E.O.V.E.R』'
;
$itmk0
=
'Y'
;
$itmk0
=
'Y'
;
$itme0
=
1
;
$itme0
=
1
;
$itms0
=
1
;
$itms0
=
1
;
$itmsk0
=
'z'
;
$itmsk0
=
'zv'
;
include_once
GAME_ROOT
.
'./include/game/itemmain.func.php'
;
itemget
(
$data
);
$f1
=
true
;
$f1
=
true
;
}
if
(
$karma
<=
2000
){
$itm0
=
'『A.Q.U.A』'
;
$itmk0
=
'Y'
;
$itme0
=
1
;
$itms0
=
1
;
$itmsk0
=
'x'
;
include_once
GAME_ROOT
.
'./include/game/itemmain.func.php'
;
itemget
(
$data
);
itemget
(
$data
);
$f1
=
true
;
}
}
if
(
$flag
==
true
){
else
$itm0
=
'『V.E.N.T.U.S』'
;
{
$itmk0
=
'Y'
;
if
(
$tflag
){
$itme0
=
1
;
$itm0
=
'『T.E.R.R.A』'
;
$itms0
=
1
;
$itmk0
=
'Y'
;
$itmsk0
=
'Z'
;
$itme0
=
1
;
include_once
GAME_ROOT
.
'./include/game/itemmain.func.php'
;
$itms0
=
1
;
itemget
(
$data
);
$itmsk0
=
'z'
;
$f1
=
true
;
include_once
GAME_ROOT
.
'./include/game/itemmain.func.php'
;
itemget
(
$data
);
$f1
=
true
;
}
if
(
$hflag
){
$itm0
=
'『A.Q.U.A』'
;
$itmk0
=
'Y'
;
$itme0
=
1
;
$itms0
=
1
;
$itmsk0
=
'x'
;
include_once
GAME_ROOT
.
'./include/game/itemmain.func.php'
;
itemget
(
$data
);
$f1
=
true
;
}
if
(
$flag
==
true
){
$itm0
=
'『V.E.N.T.U.S』'
;
$itmk0
=
'Y'
;
$itme0
=
1
;
$itms0
=
1
;
$itmsk0
=
'Z'
;
include_once
GAME_ROOT
.
'./include/game/itemmain.func.php'
;
itemget
(
$data
);
$f1
=
true
;
}
}
}
if
(
$f1
==
false
){
if
(
$f1
==
false
){
$itm0
=
'『S.C.R.A.P』'
;
$itm0
=
'『S.C.R.A.P』'
;
...
...
templates/default/command.htm
View file @
ce108f05
...
@@ -56,7 +56,11 @@
...
@@ -56,7 +56,11 @@
<!-- 第 1 行 : 包裹相关-->
<!-- 第 1 行 : 包裹相关-->
<!--{if $club==20}-->
<!--{if $club==20}-->
<input
type=
"button"
class=
"cmdbutton"
id=
"elementmix"
name=
"elementmix"
value=
"元素口袋"
onclick=
"$('command').value='itemmain';$('subcmd').name='itemcmd';$('subcmd').value='elementmix';postCmd('gamecmd','command.php');this.disabled=true;"
>
<!--{if $clbstatusa}-->
<input
type=
"button"
class=
"cmdbutton"
id=
"elementmix"
name=
"elementmix"
value=
"■■■■"
onclick=
"$('command').value='itemmain';$('subcmd').name='itemcmd';$('subcmd').value='elementmix';postCmd('gamecmd','command.php');this.disabled=true;"
>
<!--{else}-->
<input
type=
"button"
class=
"cmdbutton"
id=
"elementmix"
name=
"elementmix"
value=
"元素口袋"
onclick=
"$('command').value='itemmain';$('subcmd').name='itemcmd';$('subcmd').value='elementmix';postCmd('gamecmd','command.php');this.disabled=true;"
>
<!--{/if}-->
<!--{else}-->
<!--{else}-->
<input
type=
"button"
class=
"cmdbutton"
id=
"itemmix"
name=
"itemmix"
value=
"道具合成"
onclick=
"$('command').value='itemmain';$('subcmd').name='itemcmd';$('subcmd').value='itemmix';postCmd('gamecmd','command.php');this.disabled=true;"
>
<input
type=
"button"
class=
"cmdbutton"
id=
"itemmix"
name=
"itemmix"
value=
"道具合成"
onclick=
"$('command').value='itemmain';$('subcmd').name='itemcmd';$('subcmd').value='itemmix';postCmd('gamecmd','command.php');this.disabled=true;"
>
<!--{/if}-->
<!--{/if}-->
...
...
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