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
a74d4137
Commit
a74d4137
authored
Jul 25, 2023
by
Nemo Ma
Committed by
GitHub
Jul 25, 2023
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #191 from satsuki8/nachster
调整了club20的部分内容,添加了水果子属性
parents
6c12fb45
9a53bdc0
Changes
9
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
101 additions
and
79 deletions
+101
-79
gamedata/cache/elementmix_1.php
gamedata/cache/elementmix_1.php
+11
-2
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
+12
-11
include/game/elementmix.func.php
include/game/elementmix.func.php
+1
-1
include/game/item.func.php
include/game/item.func.php
+27
-18
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/elementmix_1.php
View file @
a74d4137
...
...
@@ -123,6 +123,7 @@
'R'
=>
11
,
//馄饨伤害
'N'
=>
68
,
//冲击
'n'
=>
89
,
//贯穿
'y'
=>
90
,
//破格
'r'
=>
144
,
//连击
//属性攻击:
'u'
=>
52
,
//火焰
...
...
@@ -287,6 +288,8 @@
(
Array
(
'stuff'
=>
Array
(
'u'
,
'x'
,
'z'
),
'result'
=>
'f'
,
'obbs'
=>
33
),
Array
(
'stuff'
=>
Array
(
'i'
,
'x'
,
'z'
),
'result'
=>
'k'
,
'obbs'
=>
33
),
//伤害制御:5个奇迹……现在的机制的话,大概是0.67*0.67*0.01的概率
Array
(
'stuff'
=>
Array
(
'x'
,
'x'
,
'x'
,
'x'
,
'x'
),
'result'
=>
'h'
,
'obbs'
=>
1
),
);
# 随机的次要特征组合配方 注意:指定属性(sk_*)一定要放到最前面
$random_submix_list
=
Array
...
...
@@ -352,6 +355,8 @@
'DA'
=>
Array
(
'盾'
,
'掌'
,
'手套'
,
'朋友'
,
'匣子'
,
'鱼鳞'
,
'力场盾'
,
'鱼竿'
,
'手表'
,
'手环'
,
'镣铐'
,
'命数'
,
'战甲A'
),
'DF'
=>
Array
(
'鞋'
,
'靴'
,
'爪'
,
'加护'
,
'轨迹'
,
'脚步'
,
'飞毯'
,
'马靴'
,
'草鞋'
,
'触手'
,
'尾巴'
,
'滑板'
,
'战甲F'
),
'H'
=>
Array
(
'秘药'
,
'罐头'
,
'糊糊'
,
'杏仁豆腐'
,
'烤鱼面包'
,
'章鱼须'
,
'乌鸡肉'
,
'生海带'
,
'幸运饼干'
,
'长芽土豆'
,
'眼泪'
,
'趣味'
),
//补给
'V'
=>
Array
(
'指南'
,
'卷轴'
,
'手册'
,
'秘籍'
,
'乐谱'
,
'知识'
,
'共鸣'
,
'秘术'
,
'法典'
,
'广告'
,
'指引'
,
'教导'
,
'语录'
),
//技能书
'M'
=>
Array
(
'羽毛'
,
'结晶'
,
'精华'
,
'甘露'
,
'魂'
,
'眼'
,
'心'
,
'血'
,
'魔核'
,
'宝珠'
,
'力量'
,
'勇气'
,
'波纹'
),
//强化药物
'0'
=>
Array
(
'怪东西'
,
'???'
,
'竟然是它'
,
'■■■'
,
'数据削除'
),
//BUG词尾:没有找到类别的情况下会变成这个
);
...
...
@@ -361,9 +366,13 @@
$itmk_to_itmsk_tags
=
Array
(
//攻击面特征
'W'
=>
Array
(
'u'
,
'e'
,
'i'
,
'w'
,
'p'
,
'd'
,
'r'
,
'f'
,
'k'
,
'R'
,
'S'
,
'o'
,
'n'
,
'N'
),
'W'
=>
Array
(
'u'
,
'e'
,
'i'
,
'w'
,
'p'
,
'd'
,
'r'
,
'f'
,
'k'
,
'R'
,
'S'
,
'o'
,
'n'
,
'N'
,
'y'
),
//可以直接由元素得到的攻击面特征
'W_0'
=>
Array
(
'u'
,
'e'
,
'i'
,
'w'
,
'p'
,
'd'
,
'S'
),
//防御面特征
'D'
=>
Array
(
'P'
,
'K'
,
'C'
,
'G'
,
'D'
,
'F'
,
'U'
,
'E'
,
'I'
,
'W'
,
'q'
,
'M'
,
'a'
,
'A'
,
'B'
,
'b'
),
//可以直接由元素得到的防御面特征
'D_0'
=>
Array
(
'P'
,
'K'
,
'C'
,
'G'
,
'D'
,
'F'
,
'U'
,
'E'
,
'I'
,
'W'
,
'q'
,
'M'
),
//杂项特征
'misc'
=>
Array
(
'z'
,
'x'
,
'c'
,
'h'
,
'H'
,
'l'
,
'g'
,
'Z'
),
);
...
...
gamedata/cache/mapitem_1.php
View file @
a74d4137
...
...
@@ -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 @
a74d4137
...
...
@@ -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 @
a74d4137
...
...
@@ -1106,6 +1106,7 @@ $itemspkinfo = Array(
'+'
=>
'技能抽取'
,
'^'
=>
'背包'
,
'🧰'
=>
'工具'
,
'🍎'
=>
'水果'
,
);
//club20 元素大师:
...
...
include/game/elementmix.calc.php
View file @
a74d4137
...
...
@@ -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);
...
...
@@ -740,7 +741,7 @@
# 前缀以“tags_”表示的,代表要选用带有对应标签的属性
elseif
(
strpos
(
$snum
,
'tags_'
)
===
0
)
{
$snum
=
$itmk_to_itmsk_tags
[
str_replace
(
'tags_'
,
''
,
$snum
)
];
$snum
=
$itmk_to_itmsk_tags
[
(
str_replace
(
'tags_'
,
''
,
$snum
))
.
'_0'
];
shuffle
(
$snum
);
$skey
=
$snum
[
0
];
}
...
...
include/game/elementmix.func.php
View file @
a74d4137
...
...
@@ -164,7 +164,7 @@
break
;
}
}
if
(
$flag_complete
==
0
)
break
;
if
(
$flag_complete
==
0
)
continue
;
$emix_arr
=
json_encode
(
$list
[
'stuff'
]);
$quickmix
.=
'<input type="button" value="投入" onclick="AddMixElements('
.
$emix_arr
.
');"> '
;
$quickmix
.=
"<span class=''>"
.
parse_itemmix_resultshow
(
$rand_emix_fixlist
[
$key
][
'result'
])
.
"</span><br>"
;
...
...
include/game/item.func.php
View file @
a74d4137
...
...
@@ -2240,27 +2240,36 @@ 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
(
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>"
;
$
{
'itm'
.
$i
}
=
str_replace
(
$fruit
,
$fruit
.
'皮'
,
$
{
'itm'
.
$i
}
);
$brackets_arr
=
Array
(
'☆☆'
,
'★★'
,
'〖〗'
,
'【】'
,
'『』'
,
'「」'
,
'✦✦'
,
'☾☽'
,
'☼☼'
,
'■■'
);
$if_brackets
=
0
;
foreach
(
$brackets_arr
as
$brackets
)
{
if
((
mb_substr
(
$
{
'itm'
.
$i
},
0
,
1
))
.
(
mb_substr
(
$
{
'itm'
.
$i
},
-
1
))
===
$brackets
){
$if_brackets
=
1
;
$
{
'itm'
.
$i
}
=
mb_substr
(
$
{
'itm'
.
$i
},
0
,
-
1
)
.
'皮'
.
mb_substr
(
$
{
'itm'
.
$i
},
-
1
);
break
;
}
}
if
(
$if_brackets
==
0
)
$
{
'itm'
.
$i
}
=
$
{
'itm'
.
$i
}
.
'皮'
;
$
{
'itmk'
.
$i
}
=
'TN'
;
$
{
'itms'
.
$i
}
*=
rand
(
2
,
4
);
$
{
'itmsk'
.
$i
}
=
''
;
$flag
=
true
;
$wk
++
;
}
break
;
}
}
if
(
$flag
==
true
)
{
break
;};
}
if
(
!
$flag
)
{
...
...
include/game/revclubskills_extra.func.php
View file @
a74d4137
...
...
@@ -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 @
a74d4137
...
...
@@ -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