Commit 7081b04d authored by hisuinohoshi's avatar hisuinohoshi

fix

修正:
灵力武器系数显示浮动有误的问题;
来源为合成产物的道具在部分页面不能正常显示tooltip的问题;
位于页面边缘的道具tooltip显示不全的问题;
一些情况下空想梦境首页布局变丑的问题;
parent 45b16bf4
...@@ -365,16 +365,18 @@ background-image: url("../../img/footer_line.gif"); ...@@ -365,16 +365,18 @@ background-image: url("../../img/footer_line.gif");
/* tooltip样式 摆脱title了! */ /* tooltip样式 摆脱title了! */
span[tooltip] { span[tooltip] {
position: relative; position: relative;
overflow: auto;
} }
span[tooltip]:hover:before { span[tooltip]:hover:before {
content: attr(tooltip); content: attr(tooltip);
overflow-x:hidden;overflow-y:auto; padding: 3px; overflow: auto; padding: 5px;
font: bold 10pt "微软雅黑" serif; color: white; font: bold 10pt "微软雅黑" serif; color: white;
white-space:pre-line; white-space:pre-line;
text-shadow:3px 3px 3px #3b3535; text-align: center; text-fill-color: white; -webkit-text-fill-color: white; 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); background-size: 0; background-clip: border-box; background-color: rgba(198, 114, 199, 0.8);
top: 20px; left: -5px; border-radius: 2px; top: attr(tooltip); left: attr(tooltip); border-radius: 2px; z-index: 20;
width: 160px; max-width: 160px; z-index: 3; position: absolute; z-index: 5; transform: translate(-5px, 20px);
width: 160px; max-width: 160px; position: fixed;
} }
/* 下拉菜单样式 */ /* 下拉菜单样式 */
......
...@@ -190,10 +190,7 @@ function get_item_place($which) ...@@ -190,10 +190,7 @@ function get_item_place($which)
$result.="{$area}禁起在商店中出售({$price}元) \r"; $result.="{$area}禁起在商店中出售({$price}元) \r";
} }
} }
include_once config('mixitem',$gamecfg); include config('mixitem',$gamecfg);
global $mixinfo;
if(!empty($mixinfo))
{
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.' ')
...@@ -202,10 +199,7 @@ function get_item_place($which) ...@@ -202,10 +199,7 @@ function get_item_place($which)
break; break;
} }
} }
} include config('vnmixitem',$gamecfg);
include_once config('vnmixitem',$gamecfg);
if(!empty($vn_mixinfo))
{
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.' ')
...@@ -218,7 +212,6 @@ function get_item_place($which) ...@@ -218,7 +212,6 @@ function get_item_place($which)
break; break;
} }
} }
}
$file=config('synitem',$gamecfg); $file=config('synitem',$gamecfg);
$synlist = openfile($file); $synlist = openfile($file);
foreach($synlist as $lst) foreach($synlist as $lst)
......
...@@ -680,11 +680,12 @@ ...@@ -680,11 +680,12 @@
//获取理论消耗体力最大值: //获取理论消耗体力最大值:
$sp_cost_max = $sp_cost_r*$pa['wepe']; $sp_cost_max = $sp_cost_r*$pa['wepe'];
//获取实际消耗体力: //获取实际消耗体力:
$sp_cost = min(ceil($sp_cost_max),$pa['sp']-1); $sp_cost = min($sp_cost_max,$pa['sp']-1);
$log .= "消耗{$sp_cost}点体力,"; $log_sp_cost = round($sp_cost);
$log .= "消耗{$log_sp_cost}点体力,";
} }
//获取威力系数:NPC固定为50% //获取威力系数: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); $dmg_p[]= round($factor,2);
$pa['sp'] -= $sp_cost; $pa['sp'] -= $sp_cost;
......
...@@ -18,10 +18,6 @@ ...@@ -18,10 +18,6 @@
<td class="b1">$stuff_tips[4]</td> <td class="b1">$stuff_tips[4]</td>
<td class="b1" width="25px"></td> <td class="b1" width="25px"></td>
<td class="b1">$result_tips[0]</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" width="45px">编辑</td>
<td class="b1">$log_tips[2]</td> <td class="b1">$log_tips[2]</td>
</tr> </tr>
...@@ -36,10 +32,6 @@ ...@@ -36,10 +32,6 @@
<td class="b3"><!--{if isset($cinfo['stuff'][4])}-->$cinfo['stuff'][4]<!--{else}-->-<!--{/if}--></td> <td class="b3"><!--{if isset($cinfo['stuff'][4])}-->$cinfo['stuff'][4]<!--{else}-->-<!--{/if}--></td>
<td class="b3"></td> <td class="b3"></td>
<td class="b3">$cinfo['result'][0]</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"> <td class="b3">
<!--{if ($cinfo['name']==$udata['username']||$udata['groupid']>=$vnmix_editor_group||$udata['username']==$gamefounder) && $cinfo['status']!=1}--> <!--{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"> <form method="post" action="vn_postitem.php" name="vn_postitem" onsubmit="vn_postitem.php" style="margin: 0px">
......
...@@ -57,6 +57,9 @@ if($vnmode=='none') ...@@ -57,6 +57,9 @@ if($vnmode=='none')
else $temp_carr[$cid]['spkinfo'] = parse_itm_desc($sk,'sk'); 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'];
} }
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment