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
ad5ee77b
Commit
ad5ee77b
authored
Jul 24, 2023
by
satsuki8
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修正了元素大师的部分机制,添加了水果子属性
parent
6c12fb45
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
83 additions
and
74 deletions
+83
-74
gamedata/cache/mapitem_1.php
gamedata/cache/mapitem_1.php
+28
-28
gamedata/cache/present_1.php
gamedata/cache/present_1.php
+12
-12
gamedata/cache/resources_1.php
gamedata/cache/resources_1.php
+1
-0
include/game/elementmix.calc.php
include/game/elementmix.calc.php
+11
-10
include/game/item.func.php
include/game/item.func.php
+22
-17
include/game/revclubskills_extra.func.php
include/game/revclubskills_extra.func.php
+7
-5
include/game/special.func.php
include/game/special.func.php
+2
-2
No files found.
gamedata/cache/mapitem_1.php
View file @
ad5ee77b
...
...
@@ -364,13 +364,13 @@
0,16,2,香菇,PS,35,1,,
0,16,5,松茸,HS,50,1,,
0,16,5,松茸,PS,50,1,,
0,16,5,香蕉,HB,25,1,,
0,16,5,苹果,HB,45,1,,
99,16,6,香蕉,HB,25,1,,
99,16,6,苹果,HB,45,1,,
99,16,3,香蕉,PB,25,1,,
99,16,3,苹果,PB,45,1,,
99,16,5,烂苹果,PB2,90,1,,
0,16,5,香蕉,HB,25,1,
🍎
,
0,16,5,苹果,HB,45,1,
🍎
,
99,16,6,香蕉,HB,25,1,
🍎
,
99,16,6,苹果,HB,45,1,
🍎
,
99,16,3,香蕉,PB,25,1,
🍎
,
99,16,3,苹果,PB,45,1,
🍎
,
99,16,5,烂苹果,PB2,90,1,
🍎
,
99,16,10,捕兽器,TN,240,1,,
99,16,10,捕兽器,TO,240,1,,
0,16,7,《小黄的草帽》,DH,50,70,,
...
...
@@ -604,9 +604,9 @@
0,29,10,水,HS,60,1,,
0,29,5,水,PS,60,1,,
0,29,40,天然水,HS,55,3,z,
0,29,2,香蕉,HB,25,1,,
0,29,4,西瓜,HB,60,1,,
0,29,2,苹果,HB,45,1,,
0,29,2,香蕉,HB,25,1,
🍎
,
0,29,4,西瓜,HB,60,1,
🍎
,
0,29,2,苹果,HB,45,1,
🍎
,
0,29,1,甜生姜,HB,42,5,,
0,29,4,甜生姜,PB2,42,5,,
99,29,5,绳索,TN,120,1,,
...
...
@@ -616,20 +616,20 @@
99,29,5,圣石之种,TO,240,1,,
99,29,5,走失的猫咪,PH,400,1,,
99,29,5,轮椅,DF,99,∞,,
99,29,4,香蕉,HB,25,1,,
99,29,6,西瓜,HB,60,1,,
99,29,4,苹果,HB,45,1,,
99,29,1,香蕉,PB,25,1,,
99,29,2,西瓜,PB,60,1,,
99,29,1,苹果,PB,45,1,,
99,29,5,烂苹果,PB2,90,1,,
99,29,4,香蕉,HB,25,1,
🍎
,
99,29,6,西瓜,HB,60,1,
🍎
,
99,29,4,苹果,HB,45,1,
🍎
,
99,29,1,香蕉,PB,25,1,
🍎
,
99,29,2,西瓜,PB,60,1,
🍎
,
99,29,1,苹果,PB,45,1,
🍎
,
99,29,5,烂苹果,PB2,90,1,
🍎
,
99,29,20,空白符卡,X,1,1,,
0,30,10,杯装水,HS,60,1,,
0,30,5,杯装水,PS,60,1,,
0,30,40,蒸馏水,HS,55,3,z,
0,30,2,香蕉,HB,25,1,,
0,30,4,西瓜,HB,60,1,,
0,30,2,苹果,HB,45,1,,
0,30,2,香蕉,HB,25,1,
🍎
,
0,30,4,西瓜,HB,60,1,
🍎
,
0,30,2,苹果,HB,45,1,
🍎
,
0,30,7,原型武器P,WP,60,1,,
0,30,7,原型武器K,WK,60,1,,
0,30,7,原型武器G,WG,60,1,,
...
...
@@ -1151,14 +1151,14 @@
0,99,4,被遗忘的伞,WP,20,1,,
0,99,1,☆博丽护符☆,WF,60,1,d,
0,99,1,☆山蘑菇粉☆,WC,60,1,p,
99,99,5,香蕉,HB,25,1,,
99,99,5,西瓜,HB,60,1,,
99,99,5,苹果,HB,45,1,,
99,99,1,香蕉,PB,25,1,,
99,99,1,西瓜,PB,60,1,,
99,99,1,苹果,PB,45,1,,
99,99,5,烂苹果,PB2,90,1,,
0,99,1,★全图不唯一的野生巨大香蕉★,HB,2400,1,,
99,99,5,香蕉,HB,25,1,
🍎
,
99,99,5,西瓜,HB,60,1,
🍎
,
99,99,5,苹果,HB,45,1,
🍎
,
99,99,1,香蕉,PB,25,1,
🍎
,
99,99,1,西瓜,PB,60,1,
🍎
,
99,99,1,苹果,PB,45,1,
🍎
,
99,99,5,烂苹果,PB2,90,1,
🍎
,
0,99,1,★全图不唯一的野生巨大香蕉★,HB,2400,1,
🍎
,
0,99,2,水果刀,Z,1,1,,
0,99,5,天然气,PB2,55,3,z,
1,99,2,☆黄金麦克风☆,WP,256,5,w,
...
...
gamedata/cache/present_1.php
View file @
ad5ee77b
...
...
@@ -49,12 +49,12 @@
脸
,
DA
,
1
,
1
,,
脸
,
DF
,
1
,
1
,,
脸
,
A
,
1
,
1
,,
脸
,
HH
,
1
,
1
,,
脸
,
HS
,
1
,
1
,,
脸
,
HB
,
1
,
1
,,
脸
,
PH
,
1
,
1
,,
脸
,
PS
,
1
,
1
,,
脸
,
PB
,
1
,
1
,,
脸
,
HH
,
1
,
1
,
🍎
,
脸
,
HS
,
1
,
1
,
🍎
,
脸
,
HB
,
1
,
1
,
🍎
,
脸
,
PH
,
1
,
1
,
🍎
,
脸
,
PS
,
1
,
1
,
🍎
,
脸
,
PB
,
1
,
1
,
🍎
,
脸
,
X
,
1
,
1
,,
脸
,
Y
,
1
,
1
,,
脸
,
Z
,
1
,
1
,,
...
...
@@ -202,8 +202,8 @@ SSS团长的半身像,WP,55,2,,
奇怪的液体
,
HB
,
265
,
11
,,
奇怪的液体
,
HB
,
265
,
11
,,
最强
-
バカ⑨制冰块
,
HB
,
99
,
99
,,
★
黑白色的烂苹果
★
,
HS
,
999
,
1
,,
★
小得奇怪的香蕉
★
,
HB
,
3600
,
1
,,
★
黑白色的烂苹果
★
,
HS
,
999
,
1
,
🍎
,
★
小得奇怪的香蕉
★
,
HB
,
3600
,
1
,
🍎
,
奇迹
-
白魔法
,
HB
,
1232
,
1
,,
奇迹
-
幻想
,
HB
,
2343
,
2
,,
奇迹
-
永恒
,
HB
,
3454
,
3
,,
...
...
@@ -221,10 +221,10 @@ SSS团长的半身像,WP,55,2,,
龙卷风发生器
,
EW
,
1
,
1
,
11
,
暴风雪发生器
,
EW
,
1
,
1
,
12
,
冰雹发生器
,
EW
,
1
,
1
,
13
,
生命探测器
,
R
,
1
,
1
,,
生命探测器
,
R
,
3
,
1
,,
生命探测器
,
R
,
5
,
1
,,
生命探测器
,
R
,
7
,
1
,,
生命探测器
,
E
R
,
1
,
1
,,
生命探测器
,
E
R
,
3
,
1
,,
生命探测器
,
E
R
,
5
,
1
,,
生命探测器
,
E
R
,
7
,
1
,,
广域生命探测器
,
ER
,
5
,
1
,
2
,
水果刀
,
Z
,
1
,
1
,,
水果刀
,
Z
,
1
,
1
,,
...
...
gamedata/cache/resources_1.php
View file @
ad5ee77b
...
...
@@ -1106,6 +1106,7 @@ $itemspkinfo = Array(
'+'
=>
'技能抽取'
,
'^'
=>
'背包'
,
'🧰'
=>
'工具'
,
'🍎'
=>
'水果'
,
);
//club20 元素大师:
...
...
include/game/elementmix.calc.php
View file @
ad5ee77b
...
...
@@ -488,10 +488,11 @@
{
$eitms
=
'∞'
;
}
# 大成功时防具
耐久等于防具效果
# 大成功时防具
效果和耐久等于两者中的较大值
if
(
$emix_flag
==
4
)
{
$eitms
=
$eitme
;
$eitms
=
max
(
$eitme
,
$eitms
);
$eitme
=
$eitms
;
}
}
# 强化药物、技能书籍效耐调整:效果最大不能超过角色等级、耐久最大不超过角色等级的平方根,且向下调整
...
...
@@ -583,25 +584,25 @@
if
(
is_array
(
$obbs
))
$obbs
=
isset
(
$obbs
[
$itmk
])
?
$obbs
[
$itmk
]
:
$obbs
[
'default'
];
if
(
rand
(
0
,
100
)
>
$obbs
)
continue
;
}
# 配对成功!消除素材特征
//18th fix: kudos to 低维生物
$delsub
=
$minfo
[
'stuff'
];
//$count_delsub = count($m
ni
fo['stuff']);
//
$delsub = $minfo['stuff'];
//$count_delsub = count($m
in
fo['stuff']);
$count_delsub
=
0
;
if
(
!
empty
(
$m
ni
fo
[
'stuff'
]))
if
(
!
empty
(
$m
in
fo
[
'stuff'
]))
{
$count_delsub
=
$mnifo
[
'stuff'
]
;
$count_delsub
=
count
(
$minfo
[
'stuff'
])
;
}
for
(
$i
=
0
;
$i
<
count
(
$subtags
);
$i
++
){
if
(
in_array
(
$subtags
[
$i
],
$minfo
[
'stuff'
])){
unset
(
$subtags
[
$i
]);
$count_delsub
-=
1
;
if
(
$count_delsub
=
=
0
)
break
;
if
(
$count_delsub
<
=
0
)
break
;
}
}
if
(
array_search
(
$delsub
,
$subtags
)
!==
false
){
//?
# 配对成功!消除素材特征
foreach
(
$minfo
[
'stuff'
]
as
$delsub
)
unset
(
$subtags
[
array_search
(
$delsub
,
$subtags
)]);}
//if(array_search($delsub, $subtags)!== false){ //?
//foreach($minfo['stuff'] as $delsub) unset($subtags[array_search($delsub,$subtags)]);}
//Alternative Fix: This will consume all properties in $subtags that matches $delsub.
//But stacking is better anyways. - comment out the above FOR loop then uncomment this to use
//$subtags = array_diff($subtags, $delsub);
...
...
include/game/item.func.php
View file @
ad5ee77b
...
...
@@ -2240,26 +2240,31 @@ function itemuse($itmn,&$data=NULL) {
for
(
$i
=
1
;
$i
<=
6
;
$i
++
)
{
//global ${'itm' . $i}, ${'itmk' . $i},${'itms' . $i},${'itme' . $i},$wk;
foreach
(
Array
(
'香蕉'
,
'苹果'
,
'西瓜'
)
as
$fruit
){
if
(
strpos
(
$
{
'itm'
.
$i
}
,
$fruit
)
!==
false
&&
strpos
(
$
{
'itm'
.
$i
}
,
'皮'
)
===
false
&&
strpos
(
$
{
'itm'
.
$i
}
,
'■'
)
===
false
&&
(
strpos
(
$
{
'itmk'
.
$i
}
,
'H'
)
===
0
||
strpos
(
$
{
'itmk'
.
$i
}
,
'P'
)
===
0
))
{
if
(
$wk
>=
120
){
$log
.=
"练过刀就是好啊。你娴熟地削着果皮。<br><span class=
\"
yellow
\"
>
{${
'itm'
.
$i
}}
</span>变成了<span class=
\"
yellow
\"
>★残骸★</span>!<br>咦为什么会出来这种东西?算了还是不要吐槽了。<br>"
;
$
{
'itm'
.
$i
}
=
'★残骸★'
;
$
{
'itme'
.
$i
}
*=
rand
(
2
,
4
);
$
{
'itms'
.
$i
}
*=
rand
(
3
,
5
);
$flag
=
true
;
$wk
++
;
/* 括号;
去除括号; */
if
(
strpos
(
$
{
'itmsk'
.
$i
},
'🍎'
)
!==
false
)
{
if
(
$wk
>=
120
){
$log
.=
"练过刀就是好啊。你娴熟地削着果皮。<br><span class=
\"
yellow
\"
>
{${
'itm'
.
$i
}}
</span>变成了<span class=
\"
yellow
\"
>★残骸★</span>!<br>咦为什么会出来这种东西?算了还是不要吐槽了。<br>"
;
$
{
'itm'
.
$i
}
=
'★残骸★'
;
$
{
'itme'
.
$i
}
*=
rand
(
2
,
4
);
$
{
'itms'
.
$i
}
*=
rand
(
3
,
5
);
$
{
'itmsk'
.
$i
}
=
''
;
$flag
=
true
;
$wk
++
;
}
else
{
$log
.=
"想削皮吃<span class=
\"
yellow
\"
>
{${
'itm'
.
$i
}}
</span>,没想到削完发现只剩下一堆果皮……<br>手太笨拙了啊。<br>"
;
if
((
mb_substr
(
$
{
'itm'
.
$i
},
0
,
1
)
===
'★'
)
&&
(
mb_substr
(
$
{
'itm'
.
$i
},
-
1
)
===
'★'
)){
$
{
'itm'
.
$i
}
=
mb_substr
(
$
{
'itm'
.
$i
},
0
,
-
1
)
.
'皮★'
;
}
else
{
$log
.=
"想削皮吃<span class=
\"
yellow
\"
>
{${
'itm'
.
$i
}}
</span>,没想到削完发现只剩下一堆果皮……<br>手太笨拙了啊。<br>"
;
$
{
'itm'
.
$i
}
=
str_replace
(
$fruit
,
$fruit
.
'皮'
,
$
{
'itm'
.
$i
}
);
$
{
'itmk'
.
$i
}
=
'TN'
;
$
{
'itms'
.
$i
}
*=
rand
(
2
,
4
);
$flag
=
true
;
$wk
++
;
$
{
'itm'
.
$i
}
=
$
{
'itm'
.
$i
}
.
'皮'
;
}
break
;
$
{
'itmk'
.
$i
}
=
'TN'
;
$
{
'itms'
.
$i
}
*=
rand
(
2
,
4
);
$
{
'itmsk'
.
$i
}
=
''
;
$flag
=
true
;
$wk
++
;
}
break
;
}
if
(
$flag
==
true
)
{
break
;};
}
...
...
include/game/revclubskills_extra.func.php
View file @
ad5ee77b
...
...
@@ -236,13 +236,15 @@
return
0
;
}
$numbers
=
array_fill
(
0
,
6
,
14
);
# 生成
5个随机数,使它们的和等于15
# 生成
6个随机数,使它们的和等于16
$t
=
16
;
for
(
$i
=
0
;
$i
<
6
;
$i
++
)
for
(
$i
=
0
;
$i
<
5
;
$i
++
)
{
$at
=
rand
(
1
,
$t
);
$t
-=
$at
;
$at
=
rand
(
1
,
5
);
$t
-=
$at
;
$numbers
[
$i
]
+=
$at
;
}
$numbers
[
5
]
+=
$t
;
$log
.=
"你把口袋中的元素搅混在一起……然后满怀期待得等着它们自己把自己整理好……<br>"
;
foreach
(
$elements_info
as
$key
=>
$info
)
{
...
...
@@ -260,8 +262,8 @@
{
foreach
(
$elements_info
as
$key
=>
$info
)
{
# 不足
3
000的,补足到3000
if
(
$
{
'element'
.
$key
}
<
3
000
)
# 不足
1
000的,补足到3000
if
(
$
{
'element'
.
$key
}
<
1
000
)
{
$
{
'element'
.
$key
}
=
3000
;
continue
;
...
...
include/game/special.func.php
View file @
ad5ee77b
...
...
@@ -172,7 +172,7 @@ function adtsk(){
$log
.=
'<span class="red">武器已经带有电击属性,不用改造!</span><br />'
;
$mode
=
'command'
;
return
;
}
elseif
(
strlen
(
$wepsk
)
>=
5
){
}
elseif
(
strlen
(
$wepsk
)
>=
40
){
$log
.=
'<span class="red">武器属性数目达到上限,无法改造!</span><br />'
;
$mode
=
'command'
;
return
;
...
...
@@ -210,7 +210,7 @@ function adtsk(){
$log
.=
'<span class="red">武器已经带毒,不用改造!</span><br />'
;
$mode
=
'command'
;
return
;
}
elseif
(
strlen
(
$wepsk
)
>=
5
){
}
elseif
(
strlen
(
$wepsk
)
>=
40
){
$log
.=
'<span class="red">武器属性数目达到上限,无法改造!</span><br />'
;
$mode
=
'command'
;
return
;
...
...
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