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
c36a0718
Commit
c36a0718
authored
Jul 25, 2023
by
hisuinohoshi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
horizon phase o.21
zhang lang bie bu chu lai
parent
9c5b98df
Changes
6
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
1173 additions
and
1077 deletions
+1173
-1077
gamedata/cache/itmlist_1.php
gamedata/cache/itmlist_1.php
+1132
-1060
gamedata/cache/mixitem_1.php
gamedata/cache/mixitem_1.php
+1
-0
gamedata/cache/npc_1.php
gamedata/cache/npc_1.php
+4
-1
include/game/depot.func.php
include/game/depot.func.php
+1
-1
include/game/item.func.php
include/game/item.func.php
+28
-8
include/state.func.php
include/state.func.php
+7
-7
No files found.
gamedata/cache/itmlist_1.php
View file @
c36a0718
This diff is collapsed.
Click to expand it.
gamedata/cache/mixitem_1.php
View file @
c36a0718
...
@@ -118,6 +118,7 @@ $mixinfo = array
...
@@ -118,6 +118,7 @@ $mixinfo = array
array
(
'class'
=>
'item'
,
'stuff'
=>
array
(
'手机'
,
'笔记本电脑'
),
'result'
=>
array
(
'移动PC'
,
'EE'
,
1
,
1
,),),
array
(
'class'
=>
'item'
,
'stuff'
=>
array
(
'手机'
,
'笔记本电脑'
),
'result'
=>
array
(
'移动PC'
,
'EE'
,
1
,
1
,),),
array
(
'class'
=>
'item'
,
'stuff'
=>
array
(
'高压线圈'
,
'原型武器G'
,
'原型武器C'
,
'某种机械设备'
),
'result'
=>
array
(
'电磁发射装置'
,
'X'
,
1
,
1
,
''
),),
array
(
'class'
=>
'item'
,
'stuff'
=>
array
(
'高压线圈'
,
'原型武器G'
,
'原型武器C'
,
'某种机械设备'
),
'result'
=>
array
(
'电磁发射装置'
,
'X'
,
1
,
1
,
''
),),
//array('class' => 'item', 'stuff' => array('风见 幽香的ID卡','坂持 金发的ID卡','御坂 美琴的ID卡'),'result' => array('游戏解除钥匙','Y',1,1,),),
//array('class' => 'item', 'stuff' => array('风见 幽香的ID卡','坂持 金发的ID卡','御坂 美琴的ID卡'),'result' => array('游戏解除钥匙','Y',1,1,),),
array
(
'class'
=>
'item'
,
'stuff'
=>
array
(
'数据……碎片'
,
'全息幻象的自律回路'
),
'result'
=>
array
(
'调制解调器'
,
'Y'
,
1
,
1
,
''
),),
array
(
'class'
=>
'item'
,
'stuff'
=>
array
(
'社员专用的ID卡'
,
'社员专用的ID卡'
,
'社员专用的ID卡'
),
'result'
=>
array
(
'游戏解除钥匙'
,
'Y'
,
1
,
1
,
'v'
),),
array
(
'class'
=>
'item'
,
'stuff'
=>
array
(
'社员专用的ID卡'
,
'社员专用的ID卡'
,
'社员专用的ID卡'
),
'result'
=>
array
(
'游戏解除钥匙'
,
'Y'
,
1
,
1
,
'v'
),),
array
(
'class'
=>
'item'
,
'stuff'
=>
array
(
'冰炎钥匙·炎'
,
'冰炎钥匙·冰'
),
'result'
=>
array
(
'游戏解除钥匙'
,
'Y'
,
1
,
1
,
'Zv'
),),
array
(
'class'
=>
'item'
,
'stuff'
=>
array
(
'冰炎钥匙·炎'
,
'冰炎钥匙·冰'
),
'result'
=>
array
(
'游戏解除钥匙'
,
'Y'
,
1
,
1
,
'Zv'
),),
array
(
'class'
=>
'item'
,
'stuff'
=>
array
(
'★荆棘式电子地雷★'
,
'★阔剑地雷★'
,
'★全图不唯一的野生巨大香蕉★'
),
'result'
=>
array
(
'★一发逆转神话★'
,
'TNc'
,
1
,
1
,
'x'
),),
array
(
'class'
=>
'item'
,
'stuff'
=>
array
(
'★荆棘式电子地雷★'
,
'★阔剑地雷★'
,
'★全图不唯一的野生巨大香蕉★'
),
'result'
=>
array
(
'★一发逆转神话★'
,
'TNc'
,
1
,
1
,
'x'
),),
...
...
gamedata/cache/npc_1.php
View file @
c36a0718
...
@@ -1289,6 +1289,7 @@
...
@@ -1289,6 +1289,7 @@
8
=>
array
8
=>
array
(
(
'name'
=>
'Yoshiko-G'
,
'name'
=>
'Yoshiko-G'
,
'horizon'
=>
1
,
'gd'
=>
'f'
,
'gd'
=>
'f'
,
'def'
=>
30250
,
'def'
=>
30250
,
'icon'
=>
4
,
'icon'
=>
4
,
...
@@ -1310,13 +1311,14 @@
...
@@ -1310,13 +1311,14 @@
'skill'
=>
600
,
'skill'
=>
600
,
'wep'
=>
'光翼型近接支援残酷戦闘機'
,
'wep'
=>
'光翼型近接支援残酷戦闘機'
,
'wepk'
=>
'WG'
,
'wepk'
=>
'WG'
,
'wepe'
=>
500
,
'wepe'
=>
500
0
,
'weps'
=>
999
,
'weps'
=>
999
,
'wepsk'
=>
'nre'
,
'wepsk'
=>
'nre'
,
),
),
9
=>
array
9
=>
array
(
(
'name'
=>
'lemon'
,
'name'
=>
'lemon'
,
'horizon'
=>
1
,
'gd'
=>
'r'
,
'gd'
=>
'r'
,
'icon'
=>
0
,
'icon'
=>
0
,
'club'
=>
98
,
'club'
=>
98
,
...
@@ -1481,6 +1483,7 @@
...
@@ -1481,6 +1483,7 @@
1
=>
array
1
=>
array
(
(
'name'
=>
'星莲船四面BOSS'
,
'name'
=>
'星莲船四面BOSS'
,
'horizon'
=>
1
,
'gd'
=>
'm'
,
'gd'
=>
'm'
,
'icon'
=>
4
,
'icon'
=>
4
,
'club'
=>
10
,
'club'
=>
10
,
...
...
include/game/depot.func.php
View file @
c36a0718
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
}
}
global
$can_lootdepot_type
;
global
$can_lootdepot_type
;
//个人仓库最多可以储存的道具数量 0=不限制
//个人仓库最多可以储存的道具数量 0=不限制
$max_saveitem_num
=
0
;
$max_saveitem_num
=
6
;
//储存每件道具的手续费
//储存每件道具的手续费
$saveitem_cost
=
20
;
$saveitem_cost
=
20
;
//取出道具的手续费
//取出道具的手续费
...
...
include/game/item.func.php
View file @
c36a0718
...
@@ -1641,14 +1641,14 @@ function itemuse($itmn,&$data=NULL) {
...
@@ -1641,14 +1641,14 @@ function itemuse($itmn,&$data=NULL) {
include_once
GAME_ROOT
.
'./include/system.func.php'
;
include_once
GAME_ROOT
.
'./include/system.func.php'
;
$log
.=
'嗯……?只有碎片也能用吗?<br>好像将一小部分NPC部署进了游戏内……<br>'
;
$log
.=
'嗯……?只有碎片也能用吗?<br>好像将一小部分NPC部署进了游戏内……<br>'
;
//思念体 4*3
//思念体 4*3
addnpc
(
2
,
0
,
4
);
addnpc
(
2
,
0
,
2
);
addnpc
(
2
,
1
,
4
);
addnpc
(
2
,
1
,
2
);
addnpc
(
2
,
2
,
4
);
addnpc
(
2
,
2
,
2
);
addnpc
(
2
,
3
,
4
);
addnpc
(
2
,
3
,
2
);
addnpc
(
2
,
4
,
4
);
addnpc
(
2
,
4
,
2
);
addnpc
(
2
,
5
,
4
);
addnpc
(
2
,
5
,
2
);
addnpc
(
2
,
6
,
4
);
addnpc
(
2
,
6
,
2
);
addnpc
(
2
,
7
,
4
);
addnpc
(
2
,
7
,
2
);
addnews
(
$now
,
'key0'
,
$name
,
$nick
);
addnews
(
$now
,
'key0'
,
$name
,
$nick
);
$itms
--
;
$itms
--
;
if
(
$itms
<=
0
)
destory_single_item
(
$data
,
$itmn
,
1
);
if
(
$itms
<=
0
)
destory_single_item
(
$data
,
$itmn
,
1
);
...
@@ -2239,6 +2239,26 @@ function itemuse($itmn,&$data=NULL) {
...
@@ -2239,6 +2239,26 @@ function itemuse($itmn,&$data=NULL) {
$log
.=
"宝石在你的手上发出异样的光芒,似乎有个奇怪的女声在你耳边说道<span class=
\"
yellow
\"
>
\"
我是从天界来的凯丽
\"
</span>."
;
$log
.=
"宝石在你的手上发出异样的光芒,似乎有个奇怪的女声在你耳边说道<span class=
\"
yellow
\"
>
\"
我是从天界来的凯丽
\"
</span>."
;
}
}
return
;
return
;
}
elseif
(
$itm
==
'调制解调器'
){
if
(
!
empty
(
$gamevars
[
'apis'
]))
{
$log
.=
'你将这件长得很像猫的东西放在了地上……目送它慢悠悠地爬走了。<br>'
;
if
(
$gamevars
[
'api'
]
<
$gamevars
[
'apis'
])
{
$gamevars
[
'api'
]
++
;
save_gameinfo
();
$log
.=
'<span class="yellow">好像有什么东西恢复了!</span><br>'
;
}
else
{
$log
.=
'<span class="yellow">但是什么也没有发生!</span><br>'
;
}
$itms
--
;
}
else
{
$log
.=
'这件长得很像猫的东西该怎么用呢?<br>'
;
}
}
elseif
(
$itm
==
'水果刀'
)
{
}
elseif
(
$itm
==
'水果刀'
)
{
$flag
=
false
;
$flag
=
false
;
...
...
include/state.func.php
View file @
c36a0718
...
@@ -835,11 +835,13 @@
...
@@ -835,11 +835,13 @@
function
calculate_rest_upsp
(
$rtime
,
&
$pa
)
function
calculate_rest_upsp
(
$rtime
,
&
$pa
)
{
{
global
$sleep_time
,
$db
,
$tablepre
,
$log
;
global
$sleep_time
,
$db
,
$tablepre
,
$log
;
# 治疗姿态下恢复速率变为3倍
# 治疗姿态下恢复速率变为3倍
if
(
$pa
[
'pose'
]
==
5
)
$rtime
*=
3
;
if
(
$pa
[
'pose'
]
==
5
)
$rtime
*=
3
;
$upsp
=
round
(
$pa
[
'msp'
]
*
$rtime
/
$sleep_time
/
100
);
$upsp
=
round
(
$pa
[
'msp'
]
*
$rtime
/
$sleep_time
/
100
);
# 灵子姿态下,恢复速率受种火数量加成
if
(
$pa
[
'pose'
]
==
8
&&
$pa
[
'sp'
]
<
$pa
[
'msp'
])
# 灵子视界下,恢复速率受种火数量加成
if
(
$pa
[
'horizon'
]
&&
$pa
[
'sp'
]
<
$pa
[
'msp'
])
{
{
$result
=
$db
->
query
(
"SELECT pid FROM
{
$tablepre
}
players WHERE type=92 AND pls=
{
$pa
[
'pls'
]
}
AND hp>0 "
);
$result
=
$db
->
query
(
"SELECT pid FROM
{
$tablepre
}
players WHERE type=92 AND pls=
{
$pa
[
'pls'
]
}
AND hp>0 "
);
$nums
=
$db
->
num_rows
(
$result
);
$nums
=
$db
->
num_rows
(
$result
);
...
@@ -857,11 +859,9 @@
...
@@ -857,11 +859,9 @@
# 治疗姿态下恢复速率变为3倍
# 治疗姿态下恢复速率变为3倍
if
(
$pa
[
'pose'
]
==
5
)
$rtime
*=
3
;
if
(
$pa
[
'pose'
]
==
5
)
$rtime
*=
3
;
$uphp
=
round
(
$pa
[
'mhp'
]
*
$rtime
/
$heal_time
/
100
);
$uphp
=
round
(
$pa
[
'mhp'
]
*
$rtime
/
$heal_time
/
100
);
/*if (strpos ($pa['inf'], 'b' ) !== false) {
$uphp = round ( $uphp / 2 );
# 灵子视界下,恢复速率受种火数量加成
}*/
if
(
$pa
[
'horizon'
]
&&
$pa
[
'hp'
]
<
$pa
[
'mhp'
])
# 灵子姿态下,恢复速率受种火数量加成
if
(
$pa
[
'pose'
]
==
8
&&
$pa
[
'hp'
]
<
$pa
[
'mhp'
])
{
{
$result
=
$db
->
query
(
"SELECT pid FROM
{
$tablepre
}
players WHERE type=92 AND pls=
{
$pa
[
'pls'
]
}
AND hp>0 "
);
$result
=
$db
->
query
(
"SELECT pid FROM
{
$tablepre
}
players WHERE type=92 AND pls=
{
$pa
[
'pls'
]
}
AND hp>0 "
);
$nums
=
$db
->
num_rows
(
$result
);
$nums
=
$db
->
num_rows
(
$result
);
...
...
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