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
3ab7f7a4
Commit
3ab7f7a4
authored
Jun 04, 2022
by
Nemo Ma
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
calc error fix
parent
9ad7c1d1
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
61 additions
and
10 deletions
+61
-10
gamedata/cache/addnpc_1.php
gamedata/cache/addnpc_1.php
+4
-0
gamedata/cache/mixitem_1.php
gamedata/cache/mixitem_1.php
+9
-9
include/game/item.func.php
include/game/item.func.php
+48
-1
No files found.
gamedata/cache/addnpc_1.php
View file @
3ab7f7a4
...
@@ -1215,6 +1215,10 @@ $anpcinfo = array
...
@@ -1215,6 +1215,10 @@ $anpcinfo = array
'itme5'
=>
9999
,
'itme5'
=>
9999
,
'itms5'
=>
1
,
'itms5'
=>
1
,
'itmsk5'
=>
'Z'
,
'itmsk5'
=>
'Z'
,
'itm6'
=>
'✦种火聚集装置✦'
,
'itmk6'
=>
'Y'
,
'itme6'
=>
1
,
'itms6'
=>
1
,
),
),
),
),
),
),
...
...
gamedata/cache/mixitem_1.php
View file @
3ab7f7a4
...
@@ -227,17 +227,17 @@ $mixinfo = array
...
@@ -227,17 +227,17 @@ $mixinfo = array
array
(
'class'
=>
'fseed'
,
'stuff'
=>
array
(
'◆愈合数据'
,
'◆焰火'
),
'result'
=>
array
(
'◆◆愈合数据'
,
'HB'
,
10
,
'∞'
,),),
array
(
'class'
=>
'fseed'
,
'stuff'
=>
array
(
'◆愈合数据'
,
'◆焰火'
),
'result'
=>
array
(
'◆◆愈合数据'
,
'HB'
,
10
,
'∞'
,),),
array
(
'class'
=>
'fseed'
,
'stuff'
=>
array
(
'◆◆愈合数据'
,
'◆焰火'
),
'result'
=>
array
(
'◆◆◆愈合数据'
,
'HB'
,
20
,
'∞'
,),),
array
(
'class'
=>
'fseed'
,
'stuff'
=>
array
(
'◆◆愈合数据'
,
'◆焰火'
),
'result'
=>
array
(
'◆◆◆愈合数据'
,
'HB'
,
20
,
'∞'
,),),
array
(
'class'
=>
'fseed'
,
'stuff'
=>
array
(
'◆熟练数据'
,
'◆焰火'
),
'result'
=>
array
(
'◆◆熟练数据'
,
'VV'
,
35
,
5
,),),
array
(
'class'
=>
'fseed'
,
'stuff'
=>
array
(
'◆熟练数据'
,
'◆焰火'
),
'result'
=>
array
(
'◆◆熟练数据'
,
'VV'
,
35
,
5
,),),
array
(
'class'
=>
'fseed'
,
'stuff'
=>
array
(
'◆◆熟练数据'
,
'◆焰火'
),
'result'
=>
array
(
'◆◆◆熟练数据'
,
'VV'
,
70
,
5
,),),
array
(
'class'
=>
'fseed'
,
'stuff'
=>
array
(
'◆◆熟练数据'
,
'◆焰火'
),
'result'
=>
array
(
'◆◆◆熟练数据'
,
'VV'
,
70
,
1
,),),
array
(
'class'
=>
'fseed'
,
'stuff'
=>
array
(
'◆生命数据'
,
'◆焰火'
),
'result'
=>
array
(
'◆◆生命数据'
,
'MH'
,
50
,
5
,),),
array
(
'class'
=>
'fseed'
,
'stuff'
=>
array
(
'◆生命数据'
,
'◆焰火'
),
'result'
=>
array
(
'◆◆生命数据'
,
'MH'
,
50
,
5
,),),
array
(
'class'
=>
'fseed'
,
'stuff'
=>
array
(
'◆◆生命数据'
,
'◆焰火'
),
'result'
=>
array
(
'◆◆◆生命数据'
,
'MH'
,
70
,
5
,),),
array
(
'class'
=>
'fseed'
,
'stuff'
=>
array
(
'◆◆生命数据'
,
'◆焰火'
),
'result'
=>
array
(
'◆◆◆生命数据'
,
'MH'
,
70
,
1
,),),
array
(
'class'
=>
'fseed'
,
'stuff'
=>
array
(
'◆意念数据'
,
'◆焰火'
),
'result'
=>
array
(
'◆◆意念数据'
,
'MD'
,
50
,
5
,),),
array
(
'class'
=>
'fseed'
,
'stuff'
=>
array
(
'◆意念数据'
,
'◆焰火'
),
'result'
=>
array
(
'◆◆意念数据'
,
'MD'
,
50
,
5
,),),
array
(
'class'
=>
'fseed'
,
'stuff'
=>
array
(
'◆◆意念数据'
,
'◆焰火'
),
'result'
=>
array
(
'◆◆◆意念数据'
,
'MD'
,
70
,
5
,),),
array
(
'class'
=>
'fseed'
,
'stuff'
=>
array
(
'◆◆意念数据'
,
'◆焰火'
),
'result'
=>
array
(
'◆◆◆意念数据'
,
'MD'
,
70
,
1
,),),
array
(
'class'
=>
'fseed'
,
'stuff'
=>
array
(
'◆焰火'
,
'◆焰火'
,
'◆焰火'
,
'◆火之碎片'
),
'result'
=>
array
(
'✦烈焰火'
,
'A'
,
50
,
50
,
'H'
),),
array
(
'class'
=>
'fseed'
,
'stuff'
=>
array
(
'◆焰火'
,
'◆焰火'
,
'◆焰火'
,
'◆火之碎片'
),
'result'
=>
array
(
'✦烈焰火'
,
'A'
,
50
,
50
,
'H'
),),
array
(
'class'
=>
'fseed'
,
'stuff'
=>
array
(
'◆◆◆愈合数据'
,
'✦烈焰火'
),
'result'
=>
array
(
'✦愈合数据'
,
'HB'
,
50
,
'∞'
,),),
array
(
'class'
=>
'fseed'
,
'stuff'
=>
array
(
'◆◆◆愈合数据'
,
'✦烈焰火'
),
'result'
=>
array
(
'✦愈合数据'
,
'HB'
,
50
,
'∞'
,),),
array
(
'class'
=>
'fseed'
,
'stuff'
=>
array
(
'◆◆◆熟练数据'
,
'✦烈焰火'
),
'result'
=>
array
(
'✦熟练数据'
,
'VV'
,
75
,
5
,),),
array
(
'class'
=>
'fseed'
,
'stuff'
=>
array
(
'◆◆◆熟练数据'
,
'✦烈焰火'
),
'result'
=>
array
(
'✦熟练数据'
,
'VV'
,
75
,
1
,),),
array
(
'class'
=>
'fseed'
,
'stuff'
=>
array
(
'◆◆◆生命数据'
,
'✦烈焰火'
),
'result'
=>
array
(
'✦生命数据'
,
'MH'
,
100
,
5
,),),
array
(
'class'
=>
'fseed'
,
'stuff'
=>
array
(
'◆◆◆生命数据'
,
'✦烈焰火'
),
'result'
=>
array
(
'✦生命数据'
,
'MH'
,
100
,
1
,),),
array
(
'class'
=>
'fseed'
,
'stuff'
=>
array
(
'◆◆◆意念数据'
,
'✦烈焰火'
),
'result'
=>
array
(
'✦意念数据'
,
'MD'
,
100
,
5
,),),
array
(
'class'
=>
'fseed'
,
'stuff'
=>
array
(
'◆◆◆意念数据'
,
'✦烈焰火'
),
'result'
=>
array
(
'✦意念数据'
,
'MD'
,
100
,
1
,),),
array
(
'class'
=>
'fseed'
,
'stuff'
=>
array
(
'◆◆◆篝火'
,
'✦烈焰火'
),
'result'
=>
array
(
'✦烈篝火'
,
'DB'
,
50
,
50
,
'a'
),),
array
(
'class'
=>
'fseed'
,
'stuff'
=>
array
(
'◆◆◆篝火'
,
'✦烈焰火'
),
'result'
=>
array
(
'✦烈篝火'
,
'DB'
,
50
,
50
,
'a'
),),
array
(
'class'
=>
'fseed'
,
'stuff'
=>
array
(
'◆◆◆埋火'
,
'✦烈焰火'
),
'result'
=>
array
(
'✦烈埋火'
,
'DH'
,
50
,
50
,
'B'
),),
array
(
'class'
=>
'fseed'
,
'stuff'
=>
array
(
'◆◆◆埋火'
,
'✦烈焰火'
),
'result'
=>
array
(
'✦烈埋火'
,
'DH'
,
50
,
50
,
'B'
),),
...
@@ -256,9 +256,9 @@ $mixinfo = array
...
@@ -256,9 +256,9 @@ $mixinfo = array
array
(
'class'
=>
'fseed'
,
'stuff'
=>
array
(
'✦烈焰火'
,
'✦烈焰火'
,
'◆火之碎片'
),
'result'
=>
array
(
'★华焰火★'
,
'A'
,
200
,
100
,
'HZ'
),),
array
(
'class'
=>
'fseed'
,
'stuff'
=>
array
(
'✦烈焰火'
,
'✦烈焰火'
,
'◆火之碎片'
),
'result'
=>
array
(
'★华焰火★'
,
'A'
,
200
,
100
,
'HZ'
),),
array
(
'class'
=>
'fseed'
,
'stuff'
=>
array
(
'✦愈合数据'
,
'★华焰火★'
),
'result'
=>
array
(
'★愈合数据★'
,
'HB'
,
100
,
'∞'
,),),
array
(
'class'
=>
'fseed'
,
'stuff'
=>
array
(
'✦愈合数据'
,
'★华焰火★'
),
'result'
=>
array
(
'★愈合数据★'
,
'HB'
,
100
,
'∞'
,),),
array
(
'class'
=>
'fseed'
,
'stuff'
=>
array
(
'✦熟练数据'
,
'★华焰火★'
),
'result'
=>
array
(
'★熟练数据★'
,
'VV'
,
200
,
2
,),),
array
(
'class'
=>
'fseed'
,
'stuff'
=>
array
(
'✦熟练数据'
,
'★华焰火★'
),
'result'
=>
array
(
'★熟练数据★'
,
'VV'
,
200
,
1
,),),
array
(
'class'
=>
'fseed'
,
'stuff'
=>
array
(
'✦生命数据'
,
'★华焰火★'
),
'result'
=>
array
(
'★生命数据★'
,
'MH'
,
200
,
2
,),),
array
(
'class'
=>
'fseed'
,
'stuff'
=>
array
(
'✦生命数据'
,
'★华焰火★'
),
'result'
=>
array
(
'★生命数据★'
,
'MH'
,
200
,
1
,),),
array
(
'class'
=>
'fseed'
,
'stuff'
=>
array
(
'✦意念数据'
,
'★华焰火★'
),
'result'
=>
array
(
'★意念数据★'
,
'MD'
,
200
,
2
,),),
array
(
'class'
=>
'fseed'
,
'stuff'
=>
array
(
'✦意念数据'
,
'★华焰火★'
),
'result'
=>
array
(
'★意念数据★'
,
'MD'
,
200
,
1
,),),
array
(
'class'
=>
'fseed'
,
'stuff'
=>
array
(
'✦✦✦烈篝火'
,
'★华焰火★'
),
'result'
=>
array
(
'★华篝火★'
,
'DB'
,
200
,
100
,
'aZ'
),),
array
(
'class'
=>
'fseed'
,
'stuff'
=>
array
(
'✦✦✦烈篝火'
,
'★华焰火★'
),
'result'
=>
array
(
'★华篝火★'
,
'DB'
,
200
,
100
,
'aZ'
),),
array
(
'class'
=>
'fseed'
,
'stuff'
=>
array
(
'✦✦✦烈埋火'
,
'★华焰火★'
),
'result'
=>
array
(
'★华埋火★'
,
'DH'
,
200
,
100
,
'BZ'
),),
array
(
'class'
=>
'fseed'
,
'stuff'
=>
array
(
'✦✦✦烈埋火'
,
'★华焰火★'
),
'result'
=>
array
(
'★华埋火★'
,
'DH'
,
200
,
100
,
'BZ'
),),
array
(
'class'
=>
'fseed'
,
'stuff'
=>
array
(
'✦✦✦烈永火'
,
'★华焰火★'
),
'result'
=>
array
(
'★华永火★'
,
'DF'
,
200
,
100
,
'MZ'
),),
array
(
'class'
=>
'fseed'
,
'stuff'
=>
array
(
'✦✦✦烈永火'
,
'★华焰火★'
),
'result'
=>
array
(
'★华永火★'
,
'DF'
,
200
,
100
,
'MZ'
),),
...
...
include/game/item.func.php
View file @
3ab7f7a4
...
@@ -1072,7 +1072,54 @@ function itemuse($itmn) {
...
@@ -1072,7 +1072,54 @@ function itemuse($itmn) {
addnews
(
$now
,
'wthchange'
,
$name
,
$weather
);
addnews
(
$now
,
'wthchange'
,
$name
,
$weather
);
$log
.=
"你转动了几下天候棒。<br>天气突然转变成了<span class=
\"
red b
\"
>
$wthinfo[$weather]
</span>!<br>"
;
$log
.=
"你转动了几下天候棒。<br>天气突然转变成了<span class=
\"
red b
\"
>
$wthinfo[$weather]
</span>!<br>"
;
$itms
--
;
$itms
--
;
}
elseif
(
$itm
==
'天然呆四面的奖赏'
)
{
global
$wep
,
$wepk
,
$wepe
,
$weps
,
$wepsk
;
if
(
!
$weps
||
!
$wepe
)
{
$log
.=
'请先装备武器。<br>'
;
return
;
}
if
(
strpos
(
$wepsk
,
'j'
)
!==
false
){
$log
.=
'多重武器不能改造。<br>'
;
return
;
}
if
(
strpos
(
$wepsk
,
'O'
)
!==
false
){
$log
.=
'进化武器不能改造。<br>'
;
return
;
}
$log
.=
"使用了<span class='yellow'>天然呆四面的奖赏</span>。<br>"
;
$log
.=
"你召唤了<span class='lime'>天然呆四面</span>对你的武器进行改造!<br>"
;
addnews
(
$now
,
'newwep'
,
$name
,
$itm
,
$wep
);
$dice
=
rand
(
0
,
99
);
if
(
$dice
<
70
)
{
$log
.=
"<span class='lime'>天然呆四面</span>把你的武器弄坏了!<br>"
;
$log
.=
"你的武器变成了一块废铁!<br>"
;
$log
.=
"<span class='lime'>“不小心把你的武器弄坏了,还真是对不起呢……<br>"
;
$wep
=
"一块废铁"
;
$wepk
=
"WP"
;
$wepe
=
1
;
$weps
=
1
;
$wepsk
=
""
;
$log
.=
"那么…… 给你点补偿吧,请务必收下。”<br></span>"
;
$itm
=
""
;
$itmk
=
""
;
$itme
=
0
;
$itms
=
0
;
$itmsk
=
""
;
$dice2
=
rand
(
0
,
99
);
global
$itm0
,
$itmk0
,
$itme0
,
$itms0
,
$itmsk0
;
$itm0
=
'四面亲手制作的■DeathNote■'
;
$itmk0
=
'Y'
;
$itme0
=
1
;
$itms0
=
1
;
$itmsk0
=
'z'
;
include_once
GAME_ROOT
.
'./include/game/itemmain.func.php'
;
itemget
();
}
else
if
(
$dice
<
90
)
{
$log
.=
"<span class='lime'>天然呆四面</span>把玩了一会儿你的武器。<br>"
;
$log
.=
"你的武器的耐久似乎稍微多了一点。<br>"
;
if
(
strpos
(
$wep
,
'-改'
)
===
false
)
$wep
=
$wep
.
'-改'
;
$weps
+=
ceil
(
$wepe
/
200
);
$itm
=
""
;
$itmk
=
""
;
$itme
=
0
;
$itms
=
0
;
$itmsk
=
""
;
}
else
{
$log
.=
"<span class='lime'>天然呆四面</span>把玩了一会儿你的武器。<br>"
;
$log
.=
"你的武器似乎稍微变强了一点。<br>"
;
if
(
strpos
(
$wep
,
'-改'
)
===
false
)
$wep
=
$wep
.
'-改'
;
$wepe
+=
ceil
(
$wepe
/
200
);
$itm
=
""
;
$itmk
=
""
;
$itme
=
0
;
$itms
=
0
;
$itmsk
=
""
;
}
}
elseif
(
$itm
==
'武器师安雅的奖赏'
)
{
}
elseif
(
$itm
==
'武器师安雅的奖赏'
)
{
global
$wep
,
$wepk
,
$wepe
,
$weps
,
$wepsk
,
$wp
,
$wk
,
$wg
,
$wc
,
$wd
,
$wf
;
global
$wep
,
$wepk
,
$wepe
,
$weps
,
$wepsk
,
$wp
,
$wk
,
$wg
,
$wc
,
$wd
,
$wf
;
if
(
!
$weps
||
!
$wepe
)
{
if
(
!
$weps
||
!
$wepe
)
{
...
...
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