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
1f57a442
Commit
1f57a442
authored
Feb 18, 2023
by
Nemo Ma
Committed by
GitHub
Feb 18, 2023
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #36 from hikawiier/waaagh
fix
parents
e15cf1a1
7081b04d
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
24 additions
and
33 deletions
+24
-33
gamedata/cache/style_20190718.css
gamedata/cache/style_20190718.css
+5
-3
include/game/itemplace.func.php
include/game/itemplace.func.php
+12
-19
include/game/revattr.func.php
include/game/revattr.func.php
+4
-3
templates/default/vn_records.htm
templates/default/vn_records.htm
+0
-8
vnworld.php
vnworld.php
+3
-0
No files found.
gamedata/cache/style_20190718.css
View file @
1f57a442
...
...
@@ -365,16 +365,18 @@ background-image: url("../../img/footer_line.gif");
/* tooltip样式 摆脱title了! */
span
[
tooltip
]
{
position
:
relative
;
overflow
:
auto
;
}
span
[
tooltip
]
:hover:before
{
content
:
attr
(
tooltip
);
overflow
-x
:
hidden
;
overflow-y
:
auto
;
padding
:
3px
;
overflow
:
auto
;
padding
:
5px
;
font
:
bold
10pt
"微软雅黑"
serif
;
color
:
white
;
white-space
:
pre-line
;
text-shadow
:
3px
3px
3px
#3b3535
;
text-align
:
center
;
text-fill-color
:
white
;
-webkit-text-fill-color
:
white
;
background-size
:
0
;
background-clip
:
border-box
;
background-color
:
rgba
(
198
,
114
,
199
,
0.8
);
top
:
20px
;
left
:
-5px
;
border-radius
:
2px
;
width
:
160px
;
max-width
:
160px
;
z-index
:
3
;
position
:
absolute
;
z-index
:
5
;
top
:
attr
(
tooltip
);
left
:
attr
(
tooltip
);
border-radius
:
2px
;
z-index
:
20
;
transform
:
translate
(
-5px
,
20px
);
width
:
160px
;
max-width
:
160px
;
position
:
fixed
;
}
/* 下拉菜单样式 */
...
...
include/game/itemplace.func.php
View file @
1f57a442
...
...
@@ -190,33 +190,26 @@ function get_item_place($which)
$result
.=
"
{
$area
}
禁起在商店中出售(
{
$price
}
元)
\r
"
;
}
}
include_once
config
(
'mixitem'
,
$gamecfg
);
global
$mixinfo
;
if
(
!
empty
(
$mixinfo
))
include
config
(
'mixitem'
,
$gamecfg
);
foreach
(
$mixinfo
as
$lst
)
{
foreach
(
$mixinfo
as
$lst
)
if
(
$lst
[
'result'
][
0
]
==
$which
||
$lst
[
'result'
][
0
]
==
$which
.
' '
)
{
if
(
$lst
[
'result'
][
0
]
==
$which
||
$lst
[
'result'
][
0
]
==
$which
.
' '
)
{
$result
.=
"通过合成获取
\r
"
;
break
;
}
$result
.=
"通过合成获取
\r
"
;
break
;
}
}
include
_once
config
(
'vnmixitem'
,
$gamecfg
);
if
(
!
empty
(
$vn_mixinfo
)
)
include
config
(
'vnmixitem'
,
$gamecfg
);
foreach
(
$vn_mixinfo
as
$vlst
)
{
foreach
(
$vn_mixinfo
as
$vlst
)
if
(
$vlst
[
'result'
][
0
]
==
$which
||
$vlst
[
'result'
][
0
]
==
$which
.
' '
)
{
if
(
$vlst
[
'result'
][
0
]
==
$which
||
$vlst
[
'result'
][
0
]
==
$which
.
' '
)
$vresult
=
"通过合成获取
\r
"
;
if
(
strpos
(
$result
,
$vresult
)
===
false
)
{
$vresult
=
"通过合成获取
\r
"
;
if
(
strpos
(
$result
,
$vresult
)
===
false
)
{
$result
.=
$vresult
;
}
break
;
$result
.=
$vresult
;
}
break
;
}
}
$file
=
config
(
'synitem'
,
$gamecfg
);
...
...
include/game/revattr.func.php
View file @
1f57a442
...
...
@@ -680,11 +680,12 @@
//获取理论消耗体力最大值:
$sp_cost_max
=
$sp_cost_r
*
$pa
[
'wepe'
];
//获取实际消耗体力:
$sp_cost
=
min
(
ceil
(
$sp_cost_max
),
$pa
[
'sp'
]
-
1
);
$log
.=
"消耗
{
$sp_cost
}
点体力,"
;
$sp_cost
=
min
(
$sp_cost_max
,
$pa
[
'sp'
]
-
1
);
$log_sp_cost
=
round
(
$sp_cost
);
$log
.=
"消耗
{
$log_sp_cost
}
点体力,"
;
}
//获取威力系数:NPC固定为50%
$factor
=
$pa
[
'type'
]
?
0.5
:
0.5
+
(
$sp_cost
/
$sp_cost_max
/
2
);
$factor
=
$pa
[
'type'
]
?
0.5
:
0.5
+
round
((
$sp_cost
/
$sp_cost_max
)
/
2
,
1
);
//获取伤害变化倍率并扣除体力
$dmg_p
[]
=
round
(
$factor
,
2
);
$pa
[
'sp'
]
-=
$sp_cost
;
...
...
templates/default/vn_records.htm
View file @
1f57a442
...
...
@@ -18,10 +18,6 @@
<td
class=
"b1"
>
$stuff_tips[4]
</td>
<td
class=
"b1"
width=
"25px"
></td>
<td
class=
"b1"
>
$result_tips[0]
</td>
<td
class=
"b1"
>
$result_tips[1]
</td>
<td
class=
"b1"
>
$result_tips[2]
</td>
<td
class=
"b1"
>
$result_tips[3]
</td>
<td
class=
"b1"
>
$log_tips[0]
</td>
<td
class=
"b1"
width=
"45px"
>
编辑
</td>
<td
class=
"b1"
>
$log_tips[2]
</td>
</tr>
...
...
@@ -36,10 +32,6 @@
<td
class=
"b3"
>
<!--{if isset($cinfo['stuff'][4])}-->
$cinfo['stuff'][4]
<!--{else}-->
-
<!--{/if}-->
</td>
<td
class=
"b3"
>
→
</td>
<td
class=
"b3"
>
$cinfo['result'][0]
</td>
<td
class=
"b3"
>
$temp_vniteminfo[$cinfo['result'][1]]
</td>
<td
class=
"b3"
>
$cinfo['result'][2]
</td>
<td
class=
"b3"
>
$cinfo['result'][3]
</td>
<td
class=
"b3"
>
<!--{if isset($cinfo['spkinfo'])}-->
$cinfo['spkinfo']
<!--{else}-->
-
<!--{/if}-->
</td>
<td
class=
"b3"
>
<!--{if ($cinfo['name']==$udata['username']||$udata['groupid']>=$vnmix_editor_group||$udata['username']==$gamefounder) && $cinfo['status']!=1}-->
<form
method=
"post"
action=
"vn_postitem.php"
name=
"vn_postitem"
onsubmit=
"vn_postitem.php"
style=
"margin: 0px"
>
...
...
vnworld.php
View file @
1f57a442
...
...
@@ -57,6 +57,9 @@ if($vnmode=='none')
else
$temp_carr
[
$cid
][
'spkinfo'
]
=
parse_itm_desc
(
$sk
,
'sk'
);
}
}
// 汇总合成结果至一段内
$temp_carr
[
$cid
][
'result'
][
0
]
=
$cinfo
[
'result'
][
0
]
.
'/'
.
$temp_vniteminfo
[
$cinfo
[
'result'
][
1
]]
.
'/'
.
$cinfo
[
'result'
][
2
]
.
'/'
.
$cinfo
[
'result'
][
3
];
if
(
isset
(
$temp_carr
[
$cid
][
'spkinfo'
]))
$temp_carr
[
$cid
][
'result'
][
0
]
.=
'/'
.
$temp_carr
[
$cid
][
'spkinfo'
];
}
}
}
...
...
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