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
4646e138
Commit
4646e138
authored
May 23, 2023
by
Nemo Ma
Committed by
GitHub
May 23, 2023
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #153 from hikawiier/waaagh
update random_mixstuff
parents
9a0688c5
1f4c17c3
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
88 additions
and
10 deletions
+88
-10
gamedata/cache/mixitem_1.php
gamedata/cache/mixitem_1.php
+1
-1
gamedata/cache/resources_1.php
gamedata/cache/resources_1.php
+1
-0
gamedata/cache/tooltip_1.php
gamedata/cache/tooltip_1.php
+1
-0
include/game/itemmain.func.php
include/game/itemmain.func.php
+13
-4
include/game/itemmix.func.php
include/game/itemmix.func.php
+64
-4
include/game/itemplace.func.php
include/game/itemplace.func.php
+1
-0
include/resources.func.php
include/resources.func.php
+7
-1
No files found.
gamedata/cache/mixitem_1.php
View file @
4646e138
...
...
@@ -42,7 +42,7 @@ $mixinfo = array
array
(
'class'
=>
'wk'
,
'stuff'
=>
array
(
'☆公主细剑☆'
,
'★荆棘王冠★'
,
'真 - 幻想戏服'
),
'result'
=>
array
(
'★女王细剑★'
,
'WK'
,
655
,
255
,
'HNnpc'
),),
array
(
'class'
=>
'wk'
,
'stuff'
=>
array
(
'★女王细剑★'
,
'神之操控'
,
'职人的拿手'
,
'传说的绒边手套'
,
'安雅人体冰雕'
),
'result'
=>
array
(
'「女王蔷薇」'
,
'WK'
,
1926
,
'∞'
,
'HNnrpc'
),),
array
(
'class'
=>
'wk'
,
'stuff'
=>
array
(
'「女王蔷薇」'
,
'■DeathNote■'
,
'悲叹之种'
,
'魔法蜂针'
),
'result'
=>
array
(
'「皇家蔷薇」'
,
'WK'
,
17740
,
'∞'
,
'Nnrpcv'
),),
array
(
'class'
=>
'wk'
,
'stuff'
=>
array
(
'「皇家蔷薇」'
,
'龙虎旗帜'
),
'result'
=>
array
(
'「猩红蔷薇」'
,
'WK'
,
179310
,
'∞'
,
'BNnrfcV'
),),
array
(
'class'
=>
'wk'
,
'stuff'
=>
array
(
'「皇家蔷薇」'
,
'龙虎旗帜'
,
'红(*)'
),
'result'
=>
array
(
'「猩红蔷薇」'
,
'WK'
,
179310
,
'∞'
,
'BNnrfcV'
),),
array
(
'class'
=>
'wp'
,
'stuff'
=>
array
(
'电击鞭'
,
'原型武器P'
,
'实验装甲A'
),
'result'
=>
array
(
'『T-LINK念动冲拳』'
,
'WP'
,
180
,
'∞'
,
'eN'
),),
array
(
'class'
=>
'wp'
,
'stuff'
=>
array
(
'☆电击器☆'
,
'原型武器P'
,
'实验装甲A'
),
'result'
=>
array
(
'『T-LINK念动冲拳』'
,
'WP'
,
240
,
'∞'
,
'eN'
),),
...
...
gamedata/cache/resources_1.php
View file @
4646e138
...
...
@@ -1080,6 +1080,7 @@ $itemspkinfo = Array(
'*'
=>
'灵魂抽取'
,
'+'
=>
'技能抽取'
,
'^'
=>
'背包'
,
'🧰'
=>
'工具'
,
);
//club20 元素大师:
...
...
gamedata/cache/tooltip_1.php
View file @
4646e138
...
...
@@ -208,6 +208,7 @@ $tps_isk = Array
'*'
=>
Array
(
'title'
=>
"战斗时无效双方的武器·饰品效果,并大幅度降低灵系伤害。"
,),
'+'
=>
Array
(
'title'
=>
"战斗时大幅度向低修正双方的熟练度。"
,),
'^'
=>
Array
(
'title'
=>
"装备后,可使用「背包」相关指令存储物品。"
,),
'🧰'
=>
Array
(
'title'
=>
"将带有该属性的物品用作某些合成的素材时,可以重复利用。"
,),
);
...
...
include/game/itemmain.func.php
View file @
4646e138
...
...
@@ -777,7 +777,7 @@ function itemmerge($itn1,$itn2){
//$mode = 'command';
return
;
}
$syncn
=
$synck
=
$synce
=
$syncs
=
$syncsk
=
Array
();
/*
$syncn=$synck=$synce=$syncs=$syncsk=Array();
function itemmix($mlist, $itemselect=-1) {
global $log,$mode,$gamecfg,$name,$nosta,$gd,$name,$nick;
global $itm1,$itm2,$itm3,$itm4,$itm5,$itm6,$itms1,$itms2,$itms3,$itms4,$itms5,$itms6,$itme1,$itme2,$itme3,$itme4,$itme5,$itme6,$club,$clbpara,$wd;
...
...
@@ -1096,8 +1096,8 @@ function itemmix($mlist, $itemselect=-1) {
itemget();
}
return;
}
function
itemreduce
(
$item
){
//只限合成使用!!
}
*/
function
itemreduce
(
$item
,
$mode
=
0
){
//只限合成使用!!
global
$log
;
if
(
strpos
(
$item
,
'itm'
)
===
0
)
{
$itmn
=
substr
(
$item
,
3
,
1
);
...
...
@@ -1112,7 +1112,16 @@ function itemreduce($item){ //只限合成使用!!
}
if
(
!
$itms
)
{
return
;
}
if
(
preg_match
(
'/^(Y|B|C|X|TN|GB|H|P|V|M)/'
,
$itmk
)){
$itms
--
;}
# 素材类道具作合成素材时只消耗耐久
if
(
preg_match
(
'/^(Y|B|C|X|TN|GB|H|P|V|M)/'
,
$itmk
))
{
$itms
--
;
}
# 带有工具属性的道具作合成素材时,不会消耗
elseif
(
in_array
(
'🧰'
,
get_itmsk_array
(
$itmsk
)))
{
$itms
=
$itms
;
}
else
{
$itms
=
0
;}
if
(
$itms
<=
0
)
{
$itms
=
0
;
...
...
include/game/itemmix.func.php
View file @
4646e138
...
...
@@ -370,14 +370,13 @@ function itemmix_proc($mlist, $minfo, $itmstr, &$data=NULL)
//合成成功
$main
=
''
;
//“通常”合成当动词实在是太奇怪了
$tpstr
=
(
empty
(
$uip
[
'mixtp'
])
||
$uip
[
'mixtp'
]
==
$mix_type
[
'normal'
])
?
''
:
$mix_type
[
$uip
[
'mixtp'
]];
$tpstr
=
$mix_type
[
$uip
[
'mixtp'
]]
==
'通常'
?
''
:
$mix_type
[
$uip
[
'mixtp'
]];
$log
.=
"<span class=
\"
yellow
\"
>
$itmstr
</span>
{
$tpstr
}
合成了<span class=
\"
yellow
\"
>
{
$itm0
}
</span>。<br>"
;
addnews
(
$now
,
'itemmix'
,
$name
,
$itm0
,
$tpstr
);
$wd
+=
1
;
if
((
strpos
(
$itmk0
,
'H'
)
===
0
)
&&
(
$club
==
16
)
&&
(
$itms0
!==
$nosta
)){
$itms0
=
ceil
(
$itms0
*
2
);
}
elseif
((
$itmk0
==
'EE'
||
$itmk0
==
'ER'
)
&&
(
$club
==
7
)){
$itme0
*=
5
;
}
//执行合成合成成功时会触发的额外事件
itemmix_events
(
$data
);
//检查成就
include_once
GAME_ROOT
.
'./include/game/achievement.func.php'
;
...
...
@@ -386,4 +385,65 @@ function itemmix_proc($mlist, $minfo, $itmstr, &$data=NULL)
itemget
(
$data
);
}
//合成成功时会触发的额外事件
function
itemmix_events
(
&
$data
=
NULL
)
{
global
$log
,
$gamevars
;
if
(
!
isset
(
$data
))
{
global
$pdata
;
$data
=
&
$pdata
;
}
extract
(
$data
,
EXTR_REFS
);
# 合成成功时爆熟+1
$wd
+=
1
;
# 全能兄贵在合成补给品时,获得数量x2
if
((
strpos
(
$itmk0
,
'H'
)
===
0
)
&&
(
$club
==
16
)
&&
(
$itms0
!==
$nosta
)){
$itms0
=
ceil
(
$itms0
*
2
);
}
# 锡安合成电子仪器时,耐久x2
if
((
$itmk0
==
'EE'
||
$itmk0
==
'ER'
)
&&
(
$club
==
7
)){
$itme0
*=
5
;
}
# 合成皇家蔷薇时,获得进一步合成的线索
if
(
$itm0
==
'「皇家蔷薇」'
)
{
if
(
empty
(
$gamevars
[
'random_mixlist'
][
'royal_rose'
]))
{
# 可能出现的随机素材列表
$slip_list
=
Array
(
'红石榴汁'
,
'红色的发圈'
,
'粉红雏菊'
,
'红豆面包'
,
'☆红楼梦精装本☆'
,
'红色方块'
,
'红宝石方块'
,
'院长红酒'
,
'冴月麟的生日蛋糕-红'
,
'鲜红的生血'
,
'真-红色的发圈'
,
'『红石电路』'
,
'【烈焰红唇】'
,
'红宝石方块'
,
'红莲魔龙 ★8'
);
$royal_rose_stuff
=
$slip_list
[
array_rand
(
$slip_list
)];
$royal_rose
=
Array
(
'class'
=>
'hidden'
,
'stuff'
=>
array
(
'「皇家蔷薇」'
,
'龙虎旗帜'
,
$royal_rose_stuff
),
'result'
=>
array
(
'「猩红蔷薇」'
,
'WK'
,
179310
,
'∞'
,
'BNnrfcV'
),
);
$gamevars
[
'random_mixlist'
][
'royal_rose'
]
=
$royal_rose
;
save_gameinfo
();
}
else
{
$royal_rose
=
$gamevars
[
'random_mixlist'
][
'royal_rose'
];
$royal_rose_stuff
=
$royal_rose
[
'stuff'
][
2
];
}
# 混淆
$royal_rose_stuff
=
preg_replace
(
'/[^红]/u'
,
'*'
,
$royal_rose_stuff
);
# 获得提示
$log
.=
"然后,你收到了来自某人的私聊——<br>
<br>
<span class='redseed'>“……嗯嗯嗯嗯,你在搜集这个东西啊……<br>
如果你还打算进一步合成的话,<br>
接下来就得去找‘
{
$royal_rose_stuff
}
’了。<br>
……你问‘*’是什么……?<br>
‘*’就是连在一起被和谐了,打不出来……你也是在网上冲浪的,应该能明白吧!<br>
嘛,总之你先对着字数找找吧!”</span><br>
<br>
啊……?<br>"
;
}
return
;
}
?>
\ No newline at end of file
include/game/itemplace.func.php
View file @
4646e138
...
...
@@ -414,6 +414,7 @@ function get_item_place($which)
}
}
if
(
$which
==
"悲叹之种"
)
$result
.=
"通过使用『灵魂宝石』强化物品失败获得
\r
"
;
if
(
strpos
(
$which
,
"(*)"
)
!==
false
)
$result
.=
"这是一项随机素材,素材名中的文字可能是对素材名的提示。
\r
在游戏内成功合成上一阶段的关键素材时,会获得更准确的提示。"
;
return
$result
;
}
...
...
include/resources.func.php
View file @
4646e138
...
...
@@ -26,13 +26,19 @@ function get_equip_list($mode=0)
# mixitem_1.php; vnmixitem_1.php;
function
get_mixinfo
()
{
global
$gamecfg
;
global
$gamecfg
,
$gamevars
;
include
config
(
"mixitem"
,
$gamecfg
);
# 向合成列表中加入玩家自定义合成
if
(
file_exists
(
config
(
"vnmixitem"
,
$gamecfg
)))
{
include
config
(
"vnmixitem"
,
$gamecfg
);
}
if
(
!
empty
(
$vn_mixinfo
))
$mixinfo
=
array_merge
(
$mixinfo
,
$vn_mixinfo
);
# 向合成列表中加入每局随机合成
if
(
!
empty
(
$gamevars
[
'random_mixlist'
]))
$mixinfo
=
array_merge
(
$mixinfo
,
$gamevars
[
'random_mixlist'
]);
return
$mixinfo
;
}
function
get_syncmixinfo
()
...
...
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