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
81a2088f
Commit
81a2088f
authored
Jan 01, 2024
by
Nemo Ma
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Interim
Yes..?
parent
90a0867b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
38 additions
and
0 deletions
+38
-0
gamedata/cache/tooltip_1.php
gamedata/cache/tooltip_1.php
+6
-0
include/game/item.func.php
include/game/item.func.php
+32
-0
No files found.
gamedata/cache/tooltip_1.php
View file @
81a2088f
...
...
@@ -55,6 +55,12 @@ $tps_name = Array
'水果刀'
=>
Array
(
'title'
=>
"可以切水果。如果不会用可能会切到自己"
),
'探测器电池'
=>
Array
(
'title'
=>
"使用后可以为探测仪器供电"
),
'★闪耀护符★'
=>
Array
(
'class'
=>
'minirainbow'
,
'title'
=>
"拥有它之后,据说触发某个特定事件的概率会大幅度上升。"
),
'【歌单】红暮'
=>
Array
(
'class'
=>
'ltcrimson'
,
'title'
=>
"保存着劲爆摇滚乐的音乐播放器,让你能联想到红暮的强大。"
),
'【歌单】蓝凝'
=>
Array
(
'class'
=>
'ltazure'
,
'title'
=>
"保存着八九十年代风格迷幻流行人声音乐的音乐播放器,让你能联想到蓝凝的可爱。"
),
'【歌单】芙蓉'
=>
Array
(
'class'
=>
'tmagenta'
,
'title'
=>
"保存着李斯特作品的音乐播放器,让你能联想到芙蓉的忠心。"
),
'【歌单】丁香'
=>
Array
(
'class'
=>
'clan'
,
'title'
=>
"保存着明快的纯音乐的音乐播放器,让你能联想到丁香的温柔。"
),
'【歌单】冰炎【'
=>
Array
(
'class'
=>
'orange'
,
'title'
=>
"保存着风格似乎来源自某著名动作游戏系列BGM的音乐播放器,让你能联想到冰炎的努力。"
),
'【歌单】小兔子警报!'
=>
Array
(
'class'
=>
'lime'
,
'title'
=>
"保存着可爱的儿歌的……什么东西。"
),
# 怪东西
'■DeathNote■'
=>
99
,
'奇怪的按钮'
=>
99
,
'『S.C.R.A.P』'
=>
99
,
# 电掣装置
...
...
include/game/item.func.php
View file @
81a2088f
...
...
@@ -203,6 +203,14 @@ function itemuse($itmn,&$data=NULL) {
$mss
+=
$itme
;
$ss
+=
$itme
;
$log
.=
"你使用了<span class=
\"
red
\"
>
$itm
</span>,增加了<span class=
\"
yellow
\"
>
$itme
</span>点歌魂。<br>"
;
if
(
$clbpara
[
'BGMBrand'
]
==
'lila'
){
$check
=
diceroll
(
20
);
if
(
$check
>
17
){
$log
.=
"<span class=
\"
clan
\"
>突然,一位纯洁的女初中生形象出现在你的脑海中,<br>你觉醒了额外的歌魂!<br></span>"
;
$mss
+=
$check
*
2
;
$ss
+=
$check
*
2
;
}
}
if
(
$itms
!=
$nosta
)
{
$itms
--
;
if
(
$itms
<=
0
)
{
...
...
@@ -2253,6 +2261,13 @@ function itemuse($itmn,&$data=NULL) {
}
$dice
=
rand
(
0
,
100
);
if
(
$dice
>=
15
)
{
if
(
$clbpara
[
'BGMBrand'
]
==
'crimson'
){
$check
=
diceroll
(
20
);
if
(
$check
>
17
){
$log
.=
"<span class=
\"
ltcrimson
\"
>你想到了红暮挥舞红杀铁剑的英姿,<br>,手上的刀磨得更快了!<br></span>"
;
$wepe
+=
$check
;
}
}
$wepe
+=
$itme
;
$log
.=
"使用了<span class=
\"
yellow
\"
>
$itm
</span>,<span class=
\"
yellow
\"
>
$wep
</span>的攻击力变成了<span class=
\"
yellow
\"
>
$wepe
</span>。<br>"
;
if
(
strpos
(
$wep
,
'锋利的'
)
===
false
)
{
...
...
@@ -2294,6 +2309,13 @@ function itemuse($itmn,&$data=NULL) {
}
$dice
=
rand
(
0
,
100
);
if
(
$dice
>=
10
)
{
if
(
$clbpara
[
'BGMBrand'
]
==
'crimson'
){
$check
=
diceroll
(
20
);
if
(
$check
>
17
){
$log
.=
"<span class=
\"
ltcrimson
\"
>你想到了红暮挥舞红杀铁锤的英姿,<br>,手上的钉子打得更快了!<br><span>"
;
$wepe
+=
$check
;
}
}
$wepe
+=
$itme
;
$log
.=
"使用了<span class=
\"
yellow
\"
>
$itm
</span>,<span class=
\"
yellow
\"
>
$wep
</span>的攻击力变成了<span class=
\"
yellow
\"
>
$wepe
</span>。<br>"
;
if
(
strpos
(
$wep
,
'钉'
)
===
false
)
{
...
...
@@ -2333,6 +2355,13 @@ function itemuse($itmn,&$data=NULL) {
}
elseif
(
strpos
(
$arbsk
,
'Z'
)
!==
false
){
$log
.=
'<span class="yellow">该防具太单薄以至于不能使用针线包。</span><br>你感到一阵蛋疼菊紧,你的蛋疼度增加了<span class="yellow">233</span>点。<br>'
;
}
else
{
if
(
$clbpara
[
'BGMBrand'
]
==
'rimefire'
){
$check
=
diceroll
(
20
);
if
(
$check
>
17
){
$log
.=
"<span class=
\"
orange
\"
>你突然脑海中浮现了一位青年彻夜优化装甲的英姿,<br>,手上的针线打得更快了!<br></span>"
;
$arbe
+=
$check
;
}
}
$arbe
+=
(
rand
(
0
,
2
)
+
$itme
);
$log
.=
"用<span class=
\"
yellow
\"
>
$itm
</span>给防具打了补丁,<span class=
\"
yellow
\"
>
$arb
</span>的防御力变成了<span class=
\"
yellow
\"
>
$arbe
</span>。<br>"
;
$itms
--
;
...
...
@@ -3408,6 +3437,9 @@ function itemuse($itmn,&$data=NULL) {
$itm
=
$itmk
=
$itmsk
=
''
;
$itme
=
$itms
=
0
;
}
elseif
(
$itm
==
'【歌单】红暮'
){
//Songlists. They change your BGM, but more importantly...
//They place a Brand on your character named BGMBrand in $clbpara.
//It will have various hidden effects, search for BGMBrand for details.
$log
.=
"你打开了手上的音乐播放器,里面传出了这样的声音:<br>
<span class=
\"
ltcrimson
\"
>“你的选择很不错,我这里为你准备了一些劲爆的摇滚乐。<br>
一定能让你在这场战斗中热血沸腾的。”——红暮<br><br></span>
...
...
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