Commit 58650d2e authored by hisuinohoshi's avatar hisuinohoshi

update eeelements

变化:
- 元素大师现在可以在单次元素合成时投入多份同种类元素(可以合重枪了!);
- 元素大师现在可以在丢弃界面勾选提炼框,并直接提炼背包内的道具;
- 元素大师的笔记本经费终于被批下来了!现在可以在元素合成界面左侧看到元素特征、与成功合成过的、或通过提炼/提示纸条得到过提示的合成配方;
- 添加了熟练书的主特征组合配方;
- 现在元素大师每次尝试合成基本上会获得一些经验值;
- 元素大师的生命强化技能:每等级+3→每等级+4;
- 节制、预言功能不再需要等级解锁;

修正:
- 结局成就判定过程中,传入的玩家数据为空时会引发的问题;
- 提炼快捷键还是C的问题(现在是A了,但是好像没有C好按);

开发相关:
- 元素大师不再生成缓存文件,相关内容会在初始化时保存在gamevars内,在游戏结束时自动重置;
parent be8e15e9
......@@ -157,16 +157,14 @@ if($hp > 0){
if(($club == 20 && $itemcmd == 'itemmix') || ($club != 20 && ($itemcmd == 'elementmix' || $itemcmd == 'elementbag'))){
$log .= "你的手突然掐住了你的头左右摇摆!<br><span class='yellow'>“你还想要干什么,啊?你还想要干什么!!”</span><br>看来你的手和脑子之间起了一点小摩擦。<br><br>";
$mode = 'command';
}else {
if($club == 20){
global $elements_info;
include_once GAME_ROOT.'./include/game/elementmix.func.php';
$emax = get_emix_itme_max();
foreach($elements_info as $e_key=>$e_info) ${'etaginfo'.$e_key} ="<span tooltip=\"".print_elements_tags($e_key)."\">";
}
elseif($itemcmd == 'itemmix'){
} else {
if($itemcmd == 'itemmix' || $itemcmd == 'elementmix'){
$main = 'itemmix_tips';
}
if($club == 20){
include_once GAME_ROOT.'./include/game/elementmix.calc.php';
$emax = emix_calc_maxenum();
}
$mode = $itemcmd;
}
} elseif($command == 'song') {
......@@ -328,7 +326,6 @@ if($hp > 0){
} elseif($command == 'itemmove') {
itemmove($from,$to);
} elseif(strpos($command,'split_itm') === 0) {
//把道具分解为元素 在数据库里注销道具的流程已经在discover()里走完了
$split_item = substr($command,9);
include_once GAME_ROOT . './include/game/elementmix.func.php';
split_item_to_elements($split_item);
......@@ -367,31 +364,10 @@ if($hp > 0){
else itemmix_rev($mixlist);
}
} elseif($command == 'elementmix') {
if($club == 20){
$e_mixlist = Array();
foreach($elements_info as $e_key=>$e_info){
global ${'element'.$e_key};
$m_e_key = $e_key + 1;//这样就不用污染原本的js了
if(isset(${'emitm'.$e_key.'_num'})) ${'emitm'.$e_key.'_num'} = round( ${'emitm'.$e_key.'_num'});
if(${'mitm'.$m_e_key}>=0 && ${'element'.$e_key} && ${'emitm'.$e_key.'_num'}>0 && ${'emitm'.$e_key.'_num'}<=${'element'.$e_key}){
$e_mixlist[$e_key] = ${'emitm'.$e_key.'_num'}; //打入参与合成的元素编号与数量
}
}
if(count($e_mixlist)>0){
$er = ($lvl>=15 && $emitme_r && $change_emr>0) ? $emitme_r : NULL;
$emr = ($lvl>=5 && $emitme_max_r && $change_emax>0) ? $emitme_max_r : NULL;
include_once GAME_ROOT.'./include/game/elementmix.func.php';
element_mix($e_mixlist,$emr,$er);
}
else{$log.="至少要放入一份元素。<br>";}
}
else {$log.="你挠了挠头,没搞懂自己到底要干什么。<br>";}
$mode='command';
} elseif($command == 'elementbag') {
if($club == 20){
include_once GAME_ROOT.'./include/game/elementmix.func.php';
print_elements_info();
}
include_once GAME_ROOT.'./include/game/elementmix.func.php';
$itmemax = $change_emax ? (int)$emixitmemax : 100;
$itmer = $change_emr ? (int)$emixitmer : 55;
elements_mix_prepare($emixlist,$emixnums,$itmemax,$itmer);
$mode='command';
} elseif($command == 'itemencase') {
if(strpos($arbsk,'^')!==false && $arbs && $arbe){
......
......@@ -119,6 +119,7 @@ $cskills = Array
'effect' => Array(
0 => Array( 'hp' => '+=::3', 'mhp' => '+=::3',),
12 => Array( 'hp' => '+=::6', 'mhp' => '+=::6',),
20 => Array( 'hp' => '+=::4', 'mhp' => '+=::4',),
),
),
's_ad' => Array
......
......@@ -4,16 +4,6 @@
/********元素大师配置文件********/
//wei shenme hui zheyang ne....
global $no_type_to_e_list,$no_itm_to_e_list,$no_itmk_to_e_list,$no_itmsk_to_e_list,$no_emix_circulation;
global $split_itm_fix,$split_spitm_fix,$split_spcorpse_fix;
global $split_corpse_lvl_r,$split_default_itmk_r,$split_itmk_r,$split_default_itmsk_fix,$split_itmsk_fix;
global $temp_etags;
global $max_emix_itme_start,$max_emix_itme_up;
global $emix_list,$random_emix_list,$dommix_list,$submix_list,$random_submix_list,$itmk_to_itmsk_tags;
global $emix_luck_info,$emix_tips_arr,$emix_name_brackets_arr,$emix_name_prefix_arr,$emix_name_meta_arr,$emix_name_tail_arr;
global $emix_slip;
//过滤选项:
//不可以被拆解的NPC类型
$no_type_to_e_list = Array();
......@@ -184,31 +174,71 @@
(
//dom => 主要特征(类别) sub => 次要特征(属性)
//max_d(s)_tags => 仅在研究模式开启的情况下生效,用于限定元素随机生成的标签上限
0 => Array('dom' => Array('WD','DF'), 'sub' => Array('d','D','R','z'), 'max_d_tags'=>2, 'max_s_tags'=>4,), //亮晶晶
0 => Array('dom' => Array('WD','DF'), 'sub' => Array('d','D','H','z'), 'max_d_tags'=>2, 'max_s_tags'=>4,), //亮晶晶
1 => Array('dom' => Array('WG','DA'), 'sub' => Array('u','G','U','c'), 'max_d_tags'=>2, 'max_s_tags'=>4,), //暖洋洋
2 => Array('dom' => Array('WC','DH'), 'sub' => Array('i','C','I','M'), 'max_d_tags'=>2, 'max_s_tags'=>4,), //冷冰冰
3 => Array('dom' => Array('WK','HS'), 'sub' => Array('p','K','q','H'), 'max_d_tags'=>2, 'max_s_tags'=>4,), //郁萌萌
4 => Array('dom' => Array('WP','HH'), 'sub' => Array('e','P','E','x'), 'max_d_tags'=>2, 'max_s_tags'=>4,), //昼闪闪
5 => Array('dom' => Array('WF','DB'), 'sub' => Array('w','F','W','S'), 'max_d_tags'=>2, 'max_s_tags'=>4,), //夜静静
);
$flip_d_tag = Array
(
'WD' => 0,
'DF' => 0,
'WG' => 1,
'DA' => 1,
'WC' => 2,
'DH' => 2,
'WK' => 3,
'HS' => 3,
'WP' => 4,
'HH' => 4,
'WF' => 5,
'DB' => 5,
);
$flip_s_tag = Array
(
'd' => 0,
'D' => 0,
'R' => 0,
'z' => 0,
'u' => 1,
'G' => 1,
'U' => 1,
'c' => 1,
'i' => 2,
'C' => 2,
'I' => 2,
'M' => 2,
'p' => 3,
'K' => 3,
'q' => 3,
'H' => 3,
'e' => 4,
'P' => 4,
'E' => 4,
'x' => 4,
'w' => 5,
'F' => 5,
'W' => 5,
'S' => 5,
);
//合成出的道具效果上限值(0级时):
$max_emix_itme_start = 45;
//每等级能够提升的道具效果上限(具体计算方法在get_emix_itme_max()内)
$max_emix_itme_up = 29;
//固定合成配方:投入固定数量元素 输出指定结果
$emix_list = Array
# 固定结果配方:按照指定顺序投入arr[1]份arr[0]元素
$emix_fixlist = Array
(
//子弹杯里伏特加加冰 兑小可可乐
Array('stuff'=>Array(1=>58,5=>18),'result'=>Array('大卫·马丁内斯','HB',58,18,'p'),),
//移动PC:亮晶晶20、昼闪闪20
Array('stuff'=>Array(0=>20,4=>20),'result'=>Array('移动PC','EE',5,1,'z'),),
//UG:投入全种类元素各1份
Array('stuff'=>Array(0=>1,1=>1,2=>1,3=>1,4=>1,5=>1,),'result'=>Array('Untainted Glory','A',1,1,'Z'),),
//仪水镜:投入全种类元素各7份
Array('stuff'=>Array(0=>7,1=>7,2=>7,3=>7,4=>7,5=>7,),'result'=>Array('仪水镜','Y',1,1,),),
# 移动PC:亮晶晶20、昼闪闪20
Array('stuff'=>Array(0=>Array(0,20),1=>Array(4,20)),'result'=>Array('移动PC','EE',5,1,'z'),),
# UG:投入全种类元素各1份
Array('stuff'=>Array(0=>Array(0,1),1=>Array(1,1),2=>Array(2,1),3=>Array(3,1),4=>Array(4,1),5=>Array(5,1)),'result'=>Array('Untainted Glory','A',1,1,'Z'),),
# 仪水镜:投入全种类元素各7份
Array('stuff'=>Array(0=>Array(0,7),1=>Array(1,7),2=>Array(2,7),3=>Array(3,7),4=>Array(4,7),5=>Array(5,7)),'result'=>Array('仪水镜','Y',1,1,''),),
);
//随机的固定合成配方(?):需要的素材随机 输出的结果固定 //随机指的是在每局生成临时配置文件时决定 不是完全随机
$random_emix_list = Array
# 素材随机的固定结果配方
$rand_emix_fixlist = Array
(
//'stuff'=> 键名=>随机元素在数组中的自然排序的位置 键值=> 'r_x-y' 的格式等同于 rand(x,y)
//'class'=>'hidden' 不会被提示纸条揭露的配方
......@@ -230,33 +260,35 @@
//obbs:满足条件时有obbs%的概率组合,不设置即为100%组合;random:开启研究模式的情况下,随机为此配方生成random个合成条件。
$dommix_list = array
(
Array('stuff'=>Array('WG','WG','WG','WC','WD'),'result'=>'WJ','obbs'=>15,), //3射+1投+1爆=重枪(15%概率)
Array('stuff'=>Array('WG','WK'),'result'=>'WGK','obbs'=>77,), //射+斩=枪刃
Array('stuff'=>Array('WC','WF'),'result'=>'WCF','obbs'=>77,), //投+符=符札
Array('stuff'=>Array('WC','WP'),'result'=>'WCP','obbs'=>77,), //投+殴=重物
Array('stuff'=>Array('WF','WK'),'result'=>'WFK','obbs'=>77,), //符+斩=魔刃……?
Array('stuff'=>Array('WK','WF'),'result'=>'WKF','obbs'=>77,), //斩+符=灵刃
Array('stuff'=>Array('WK','WP'),'result'=>'WKP','obbs'=>77,), //斩+殴=重剑
Array('stuff'=>Array('WF','WK','DA'),'result'=>'WFK','obbs'=>77,), //符+斩=魔刃……?等等……?只能再加个DA凑数了
Array('stuff'=>Array('WD','WG'),'result'=>'WDG','obbs'=>77,), //爆+射=巨炮
Array('stuff'=>Array('WD','WF'),'result'=>'WDF','obbs'=>77,), //爆+符=落魂
Array('stuff'=>Array('WD','DF','WD'),'result'=>'VD'),
Array('stuff'=>Array('WG','DA','WG'),'result'=>'VG'),
Array('stuff'=>Array('WC','DH','WC'),'result'=>'VC'),
Array('stuff'=>Array('WK','HS','WK'),'result'=>'VK'),
Array('stuff'=>Array('WP','HH','WP'),'result'=>'VP'),
Array('stuff'=>Array('WF','DB','WF'),'result'=>'VF'),
Array('stuff'=>Array('HH','HS'),'result'=>'HB','obbs'=>77,), //回命+回体=命体回复
Array('stuff'=>Array('HH','WF'),'result'=>'HM','obbs'=>77,), //回命+灵=歌魂增加
Array('stuff'=>Array('HS','WD'),'result'=>'HT','obbs'=>77,), //回体+爆=歌魂恢复
Array('stuff'=>Array('HH','WG'),'result'=>'MH','obbs'=>15,), //回命+射=生命强化
Array('stuff'=>Array('HS','WC'),'result'=>'MS','obbs'=>60,), //回体+投=体力强化
Array('stuff'=>Array('WG','WG'),'result'=>'WJ','obbs'=>30,), //射+射=重枪(30%概率)
//我认为这里应该有一个配方 可以合出有毒补给或者地雷(
);
//次要特征组合配方:将次要特征转化为道具属性时,检查是否满足组合条件。两个配方存在重复元素时,排在前面的会优先生成。
# 次要特征组合配方:将次要特征转化为道具属性时,检查是否满足组合条件。两个配方存在重复元素时,排在前面的会优先生成。
$submix_list = array
(
Array('stuff'=>Array('x','z'),'result'=>'Z','obbs'=>13), //奇迹+天然=菁英
//Array('stuff'=>Array('u','i'),'result'=>'d','obbs'=>Array('default'=>30,'WD'=>98,'WDG'=>75,'WDF'=>75),), //火+冻=爆炸
//Array('stuff'=>Array('i','e'),'result'=>'d','obbs'=>Array('default'=>30,'WD'=>98,'WDG'=>75,'WDF'=>75),), //冻+电=爆炸
//Array('stuff'=>Array('w','i'),'result'=>'d','obbs'=>Array('default'=>30,'WD'=>98,'WDG'=>75,'WDF'=>75),), //音+冻=爆炸
//冴冴来发挥奇思妙想吧
Array('stuff'=>Array('u','x','z'),'result'=>'f','obbs'=>33),
Array('stuff'=>Array('i','x','z'),'result'=>'k','obbs'=>33),
);
//随机的次要特征组合配方 注意:指定属性(sk_*)一定要放到最前面
//可能会生成重复配方,但是也无所谓~
# 随机的次要特征组合配方 注意:指定属性(sk_*)一定要放到最前面
$random_submix_list = Array
(
//连击:随机1个价值在20以上,1个价值在30以上的次要特征
......@@ -264,12 +296,16 @@
//冲击:随机1个价值在20以上特征+1个随机“攻击”标签特征
Array('stuff'=>Array(0=>'tags_W',1=>'v_20'),'result'=>'N','obbs'=>50),
//贯穿:重击辅助+随机2个价值在30以上的次要特征
Array('stuff'=>Array(0=>'sk_c',1=>'v_30',2=>'v_30'),'result'=>'n','obbs'=>66),
Array('stuff'=>Array(0=>'c',1=>'v_30',2=>'v_30'),'result'=>'n','obbs'=>66),
//破格:陷阱探测+随机2个价值在30以上的次要特征
Array('stuff'=>Array(0=>'M',1=>'v_30',2=>'v_30'),'result'=>'n','obbs'=>66),
//属性防御:随机1个价值在30以上+2个随机“防御”标签特征
Array('stuff'=>Array(0=>'v_30',1=>'tags_D',2=>'tags_D'),'result'=>'a','obbs'=>50),
//全系防御:随机2个价值在30以上的次要特征+1个随机“防御”标签特征
Array('stuff'=>Array(0=>'v_30',1=>'v_30',2=>'tags_D'),'result'=>'A','obbs'=>50),
);
# 可重复生成的次要特征
$repeat_subtags = Array('u','i','e','w','p');
//合成结果-名字:
$emix_luck_info = Array(-2 => '自己要倒大霉了QAQ……',1 => '这次合成的结果应该没什么特别之处。', 2=>'这次合成的结果还算不错。', 3=>'这次合成的结果似乎相当不错!' ,4=>'有什么大好事要发生了!');
......
......@@ -1340,6 +1340,15 @@ $elements_info = Array
4 => $sparkle.'<span class="mtgwhite">昼闪闪</span>'.$sparkle,
5 => $sparkle.'<span class="mtgblack">夜静静</span>'.$sparkle,
);
$r_elements_info = Array
(
0 =>'<span class="mtgcolorless">亮晶晶</span>',
1 =>'<span class="mtgred">暖洋洋</span>',
2 =>'<span class="mtgblue">冷冰冰</span>',
3 =>'<span class="mtggreen">郁萌萌</span>',
4 =>'<span class="mtgwhite">昼闪闪</span>',
5 =>'<span class="mtgblack">夜静静</span>',
);
//NPC在躲避禁区、追杀玩家时不会进入的危险区(默认:无月之影、SCP、雏菊、英灵殿)
$deepzones = Array(0,32,33,34);
//安全箱位置
......
......@@ -734,14 +734,14 @@ function check_mixitem_achievement_rev($nn,$item)
//新版结局成就检测机制:加入团队胜利兼容
//function check_end_achievement_rev($w,$m)
function check_end_achievement_rev($w,$m,$data='')
function check_end_achievement_rev($w,$m,$data=NULL)
{
global $now,$validtime,$starttime,$gamecfg,$name,$db,$tablepre;
include_once GAME_ROOT.'./include/game/titles.func.php';
$done = 0;
$atotal = Array();
$data['clbpara'] = get_clbpara($data['clbpara']);
if(!empty($data['clbpara']) && !is_array($data['clbpara'])) $data['clbpara'] = get_clbpara($data['clbpara']);
//16. 最后幸存成就
if ($m==2)
......
This diff is collapsed.
This diff is collapsed.
......@@ -1918,12 +1918,14 @@ function itemuse($itmn,&$data=NULL) {
//社团变更
changeclub(20,$pdata);
//获取初始元素与第一条配方
$dice = rand(0,5);
//global ${'element'.$dice},$clbpara;
${'element'.$dice} += 200+$dice;
$dice = rand(0,5); $dice2 = rand(0,1); $dice3 = rand(0,3);
${'element'.$dice} += 500+$dice;
$clbpara['elements'] = Array();
$clbpara['elements']['tags'] = Array($dice => Array('dom' => Array(0 => 1),'sub' => Array(0 => 1)));
$clbpara['elements']['info']['d']['d1'] = 1;
//初始化元素合成缓存文件
include_once GAME_ROOT.'./include/game/elementmix.func.php';
create_emix_cache_file();
emix_spawn_info();
}
elseif ($itme == 21){ //灵子梦魇特殊处理
$log .="再等等吧……<br>";
......@@ -1986,7 +1988,7 @@ function itemuse($itmn,&$data=NULL) {
}
//初始化元素合成缓存文件
include_once GAME_ROOT.'./include/game/elementmix.func.php';
create_emix_cache_file();
emix_spawn_info();
} elseif ($itm == '测试用元素大师社团卡'){
//-----------------------//
//这是一张测试用卡 冴冴可以挑一些用得上的放在使用社团卡后执行的事件里
......@@ -2026,7 +2028,7 @@ function itemuse($itmn,&$data=NULL) {
${'element'.$dice} += 200+$dice;
//初始化元素合成缓存文件
include_once GAME_ROOT.'./include/game/elementmix.func.php';
create_emix_cache_file();
emix_spawn_info();
//销毁道具
$itm = $itmk = $itmsk = '';
$itme = $itms = 0;
......@@ -2185,28 +2187,25 @@ function itemuse($itmn,&$data=NULL) {
if($club == 20 && strpos($itmk,'Y')===0 && strpos($itm,'提示纸条')!==false)
{
$log.="<br>就在你读完内容打算把纸条收起来时,你愕然发现纸条背面竟然还有字!<br><br>";
include_once config('elementmix',$gamecfg);
include config('elementmix',$gamecfg);
$log.= $emix_slip[array_rand($emix_slip)];
//除商店纸条外:提供一条元素特征(TODO)、或一条固定配方、或一条随机属性组合
$log .= "<br><span class='yellow'>附:见面有缘,再送你一条提示吧:<br>“将带有";
include_once GAME_ROOT.'./include/game/elementmix.func.php';
if(!preg_match('/(A|B|C|D)/',$itm))
{
//野生纸条:给随机属性组合提示
$s_list = merge_random_emix_list(1); $s_id = array_rand($s_list);
$s_result = $itemspkinfo[$random_submix_list[$s_id]['result']];
}
else
{
//商店纸条:给固定属性组合提示
$s_list = $submix_list; $s_id = array_rand($s_list);
$s_result = $itemspkinfo[$s_list[$s_id]['result']];
$submix_list = array_merge_recursive($submix_list,$gamevars['rand_emixsubres']);
}
foreach($s_list[$s_id]['stuff'] as $skey) $log .= "【$itemspkinfo[$skey]】";
$s_id = array_rand($submix_list);
$s_result = $itemspkinfo[$submix_list[$s_id]['result']];
foreach($submix_list[$s_id]['stuff'] as $skey) $log .= "【$itemspkinfo[$skey]】";
$log .= "特征的元素组合起来,就有机会组合出【{$s_result}】属性。”</span><br>";
//阅后即焚
$log .="<br>……说这么多鬼记得住啊!<br>你思考了一下,决定把{$itm}吃进肚子里,以便慢慢消化其中的知识。<br>";
$itms--;
# 将提示给到的次要特征组合加入笔记内
if(empty($clbpara['elements']['info']['sd']['sd'.$s_id]))
$clbpara['elements']['info']['sd']['sd'.$s_id] = 1;
}
if (($itms <= 0) && ($itm)) {
......
......@@ -446,6 +446,40 @@ function getEmitmeR(type=0) {
}
}
function AddElementsToList(ekey,enums)
{
var list = $('emixlist').value;
var nums = $('emixnums').value ;
var desc = $('emixinfo').innerHTML;
var keyarr = list.length>0 ? list.split('+') : [];
var numsarr = nums.length>0 ? nums.split('+') : [];
var descarr = desc.length>0 ? desc.split('') : [];
if(enums <= 0)
{
window.alert("至少要投入1份元素!");
return;
}
if(($('maxe' + ekey + 'num').value - enums) < 0)
{
window.alert("输入了超过了库存的数量。");
return;
}
if(keyarr.length >= 6)
{
window.alert("最多可分六次投入");
return;
}
$('maxe' + ekey + 'num').value -= enums;
$('e' + ekey + 'num').value = $('maxe' + ekey + 'num').value;
keyarr.push(ekey);
numsarr.push(enums);
descarr.push(enums + '' + $('edesc' + ekey).innerHTML);
$('emixlist').value = keyarr.join('+');
$('emixnums').value = numsarr.join('+');
$('emixinfo').innerHTML = descarr.join('');
$('emixinfotop').style.display = 'block';
}
function changeVolume(cv){
var v = $('gamebgm').volume;
v = v+cv;
......
......@@ -52,13 +52,11 @@
<!-- 第 -1 行:社团提示相关-->
<!--{if $club==19}-->
<span class="lime">报应点数:<span id="anum">$rp</span></span><br>
<!--{elseif $club==20}-->
<a onclick="$('mode').value='itemmain';$('command').value='elementbag';postCmd('gamecmd','command.php');this.disabled=true;"><span class="sparkle">{$sparkle}元素口袋{$sparkle}</span></a><br>
<!--{/if}-->
<!-- 第 1 行 : 包裹相关-->
<!--{if $club==20}-->
<input type="button" class="cmdbutton" id="elementmix" name="elementmix" value="元素合成" onclick="$('command').value='itemmain';$('subcmd').name='itemcmd';$('subcmd').value='elementmix';postCmd('gamecmd','command.php');this.disabled=true;">
<input type="button" class="cmdbutton" id="elementmix" name="elementmix" value="元素口袋" onclick="$('command').value='itemmain';$('subcmd').name='itemcmd';$('subcmd').value='elementmix';postCmd('gamecmd','command.php');this.disabled=true;">
<!--{else}-->
<input type="button" class="cmdbutton" id="itemmix" name="itemmix" value="道具合成" onclick="$('command').value='itemmain';$('subcmd').name='itemcmd';$('subcmd').value='itemmix';postCmd('gamecmd','command.php');this.disabled=true;">
<!--{/if}-->
......
<!-- 元素名 -->
<div style="display: none;">
<!--{loop range(0,5) $ekey}-->
<span id="edesc$ekey">$elements_info[$ekey]</span>
<!--{/loop}-->
</div>
<!-- 元素选取模块 -->
<input type="hidden" id="emixlist" name="emixlist" value="">
<input type="hidden" id="emixnums" name="emixnums" value="">
<!-- 主界面 -->
你在你的小口袋里翻找起来……<br>
打算组合哪些元素?<br>
<input type="hidden" id="emax" name="emax" value="$emax">
<input type="hidden" name="mode" value="itemmain">
<input type="hidden" name="command" id="command" value="menu">
<br>
<!--元素选取模块-->
<div id="emixinfotop" style="display: none;"><span class="yellow">【已投入】</span></div>
<div id="emixinfo"></div>
<br>
<style>
div.emixpage input{
max-width: 55px;
margin-right: 5px; margin-bottom: 3px;
}
</style>
<div class="emixpage">
<!--{if $element0}-->
<input type="checkbox" id="mitm1" name="mitm1" value="-1"><a onclick="$('mitm1').click();" href="javascript:void(0);">$etaginfo0 $elements_info[0] 放入:</span></a>
<input type="number" style="width:50px" name="emitm0_num" value="$element0" min="0" max="$element0" oninput="if(value>$element0)value=$element0;if(value<0)value=0" /><br>
<input type="button" value="投入" onclick="AddElementsToList(0,$('e0num').value);">$elements_info[0]
<input type="hidden" id="maxe0num" value="$element0">
<input type="number" id="e0num" value="$element0" min="0" max="$element0" oninput="if(value>$element0)value=$element0;if(value<0)value=0" /><br>
<!--{/if}-->
<!--{if $element1}-->
<input type="checkbox" id="mitm2" name="mitm2" value="-1"><a onclick="$('mitm2').click();" href="javascript:void(0);">$etaginfo1 $elements_info[1] 放入:</span></a>
<input type="number" style="width:50px" name="emitm1_num" value="$element1" min="0" max="$element1" oninput="if(value>$element1)value=$element1;if(value<0)value=0" /><br>
<input type="button" value="投入" onclick="AddElementsToList(1,$('e1num').value);">$elements_info[1]
<input type="hidden" id="maxe1num" value="$element1">
<input type="number" id="e1num" value="$element1" min="0" max="$element1" oninput="if(value>$element1)value=$element1;if(value<0)value=0" /><br>
<!--{/if}-->
<!--{if $element2}-->
<input type="checkbox" id="mitm3" name="mitm3" value="-1"><a onclick="$('mitm3').click();" href="javascript:void(0);">$etaginfo2 $elements_info[2] 放入:</span></a>
<input type="number" style="width:50px" name="emitm2_num" value="$element2" min="0" max="$element2" oninput="if(value>$element2)value=$element2;if(value<0)value=0" /><br>
<input type="button" value="投入" onclick="AddElementsToList(2,$('e2num').value);">$elements_info[2]
<input type="hidden" id="maxe2num" value="$element2">
<input type="number" id="e2num" value="$element2" min="0" max="$element2" oninput="if(value>$element2)value=$element2;if(value<0)value=0" /><br>
<!--{/if}-->
<!--{if $element3}-->
<input type="checkbox" id="mitm4" name="mitm4" value="-1"><a onclick="$('mitm4').click();" href="javascript:void(0);">$etaginfo3 $elements_info[3] 放入:</span></a>
<input type="number" style="width:50px" name="emitm3_num" value="$element3" min="0" max="$element3" oninput="if(value>$element3)value=$element3;if(value<0)value=0" /><br>
<input type="button" value="投入" onclick="AddElementsToList(3,$('e3num').value);">$elements_info[3]
<input type="hidden" id="maxe3num" value="$element3">
<input type="number" id="e3num" value="$element3" min="0" max="$element3" oninput="if(value>$element3)value=$element3;if(value<0)value=0" /><br>
<!--{/if}-->
<!--{if $element4}-->
<input type="checkbox" id="mitm5" name="mitm5" value="-1"><a onclick="$('mitm5').click();" href="javascript:void(0);">$etaginfo4 $elements_info[4] 放入:</span></a>
<input type="number" style="width:50px" name="emitm4_num" value="$element4" min="0" max="$element4" oninput="if(value>$element4)value=$element4;if(value<0)value=0" /><br>
<input type="button" value="投入" onclick="AddElementsToList(4,$('e4num').value);">$elements_info[4]
<input type="hidden" id="maxe4num" value="$element4">
<input type="number" id="e4num" value="$element4" min="0" max="$element4" oninput="if(value>$element4)value=$element4;if(value<0)value=0" /><br>
<!--{/if}-->
<!--{if $element5}-->
<input type="checkbox" id="mitm6" name="mitm6" value="-1"><a onclick="$('mitm6').click();" href="javascript:void(0);">$etaginfo5 $elements_info[5] 放入:</span></a>
<input type="number" style="width:50px" name="emitm5_num" value="$element5" min="0" max="$element5" oninput="if(value>$element5)value=$element5;if(value<0)value=0" /><br>
<input type="button" value="投入" onclick="AddElementsToList(5,$('e5num').value);">$elements_info[5]
<input type="hidden" id="maxe5num" value="$element5">
<input type="number" id="e5num" value="$element5" min="0" max="$element5" oninput="if(value>$element5)value=$element5;if(value<0)value=0" /><br>
<!--{/if}-->
</div>
<br>
<!--自带:通过投入元素数量的奇偶决定道具类别-->
<span class="yellow">&nbsp;&nbsp;【数术】</span><br>
&nbsp; › 投入份数<span class="lime">最多(±10)</span>的一种或多种元素<br>
<span class="yellow" >【数术】</span><br>
› 投入份数<span class="lime">最多(±10)</span>的一种或多种元素<br>
会成为<span class="lime">主元素</span>,影响合成结果的<span class="lime">类型</span><br>
&nbsp; › 投入的主元素为<span class="redseed"></span>|<span class="blueseed"></span>数份时,元素会展<br>
› 投入的主元素为<span class="redseed"></span>|<span class="blueseed"></span>数份时,元素会展<br>
<span class="redseed">第一</span>|<span class="blueseed">第二</span>个主特征。<br>
<br>
<!--5级后解锁:最大生成效果调节-->
<!--{if $lvl>=5}-->
<span class="yellow">&nbsp;&nbsp;【节制】</span><span class="grey">(勾选启用)</span><input type="checkbox" id="change_emax" name="change_emax" value="-1"><br>
&nbsp; › 你可以主动限制元素合成结果的<span class="lime">效耐上限</span><br>
&nbsp; › 当前:生成道具的效果+耐久上限<span class="yellow"><span id="s_emitme_max" name="s_emitme_max">$emax</span></span><br>
&nbsp;<input type="range" class="range" style="width:220px" id="emitme_max_r" name="emitme_max_r" min="1" max="100" value="100" onchange="getEmitmeR(1)"><br>
<!-- 最大生成效果调节 -->
<span class="yellow">【节制】</span><span class="grey">(勾选启用)</span><input type="checkbox" id="change_emax" name="change_emax" value="0"><br>
› 你可以主动限制元素合成结果的<span class="lime">效耐上限</span><br>
› 当前:生成道具的效果+耐久上限<span class="yellow"><span id="s_emitme_max" name="s_emitme_max">$emax</span></span><br>
<input type="range" class="range" style="width:220px" id="emitme_max_r" name="emixitmemax" min="1" max="100" value="100" onchange="getEmitmeR(1)"><br>
<br>
<!--{else}-->
<span class="grey">&nbsp;&nbsp;【节制】(5级后解锁):<br>
&nbsp; › 解锁后可以限制元素合成的<span class="lime">效耐上限</span><br></span>
<!-- 效果、耐久比例调节 -->
<span class="yellow">【预言】</span><span class="grey">(勾选启用)</span><input type="checkbox" id="change_emr" name="change_emr" value="0"><br>
› 你能够干涉元素合成结果的<span class="lime">效耐占比</span><br>
› 当前:效果占比<span class="yellow"><span id="s_emitme_r" name="s_emitme_r">55</span>%】</span>耐久占比<span class="yellow"><span id="s_emitms_r" name="s_emitms_r">45</span>%】</span><br>
<input type="range" class="range" style="width:220px" id="emitme_r" name="emixitmer" min="2" max="98" value="55" onchange="getEmitmeR(0)"><br>
<span id="sr_warning" name="sr_warning" class="red"></span>
<br>
<!--{/if}-->
<!--15级后解锁:效果、耐久比例调节-->
<!--{if $lvl>=15}-->
<span class="yellow">&nbsp;&nbsp;【预言】</span><span class="grey">(勾选启用)</span><input type="checkbox" id="change_emr" name="change_emr" value="-1"><br>
&nbsp; › 你能够干涉元素合成结果的<span class="lime">效耐占比</span><br>
&nbsp; › 当前:效果占比<span class="yellow"><span id="s_emitme_r" name="s_emitme_r">55</span>%】</span>&nbsp;耐久占比<span class="yellow"><span id="s_emitms_r" name="s_emitms_r">45</span>%】</span><br>
&nbsp;<input type="range" class="range" style="width:220px" id="emitme_r" name="emitme_r" min="2" max="98" value="55" onchange="getEmitmeR(0)"><br>
&nbsp; <span id="sr_warning" name="sr_warning" class="red"></span>
<br>
<!--{else}-->
<span class="grey">&nbsp;&nbsp;【预言】(15级后解锁):<br>
&nbsp; › 解锁后能够干涉元素合成结果的<span class="lime">效耐占比</span><br>
&nbsp; › 当前:效果、耐久占比会在<span class="lime">2%~98%</span>间浮动。</span><br>
<br>
<!--{/if}-->
<input type="button" class="cmdbutton" id="zz" name="submit" value="[Z]提交" onclick="$('command').value='elementmix';itemmixchooser();postCmd('gamecmd','command.php');this.disabled=true;">
<input type="button" class="cmdbutton" id="zz" name="submit" value="[Z]提交" onclick="itemmixchooser();$('command').value='elementmix';postCmd('gamecmd','command.php');this.disabled=true;">
<input type="button" class="cmdbutton" id="x" name="submit" value="[X]放弃" onclick="postCmd('gamecmd','command.php');this.disabled=true;">
\ No newline at end of file
......@@ -1853,7 +1853,9 @@ NPC也会发出重击和必杀技,请随时小心。</p>
</td>
<td class="b3">
<span>可以通过打碎道具或尸体提炼元素,<br>
并消耗元素来无中生有制造物品</span>
并消耗元素来无中生有制造物品,<br>
每次尝试制造物品时都能获得经验,只要结果不是特别糟糕……
</span>
</td>
<td class="b3">
<span>
......
你想丢掉什么?<br><br>
<input type="hidden" name="mode" value="itemmain">
<input type="radio" name="command" id="menu" value="menu" checked><a onclick=sl('menu'); href="javascript:void(0);" >返回</a><br><br>
<input type="radio" name="command" id="menu" value="menu" checked><a onclick=sl('menu'); href="javascript:void(0);" >返回</a>
<!--{if $club==20}-->
<input type="checkbox" id="split" onchange="if($('split').checked){$('zz').value='[Z]确定并提炼';for (var i=1; i<=6; i++){ $('itm' + i).value = $('itm' + i).value.replace('dropitm','split_itm');}}else{$('zz').value='[Z]确定并丢弃';for(var i=1; i<=6; i++){$('itm' + i).value = $('itm' + i).value.replace('split_itm','dropitm');}}"><a onclick=$('split').click(); href="javascript:void(0);" >提炼道具</a>
<!--{/if}-->
<br><br>
<!--{if $itms1}-->
<input type="radio" name="command" id="itm1" value="dropitm1"><a onclick=sl('itm1'); href="javascript:void(0);" >$itm1/$itme1/$itms1 </a><br>
<!--{/if}-->
......
......@@ -7,7 +7,7 @@
<input type="hidden" id="command" name="command" value="itemget">
<input type="button" class="cmdbutton" id="zz" name="itemget" value="[Z]拾取" onclick="postCmd('gamecmd','command.php');this.disabled=true;">
<!--{if $club==20}-->
&nbsp;&nbsp;<input type="button" id="cc" class="cmdbutton" name="split_itm" value="[A]提炼" onclick="$('command').value='split_itm0';postCmd('gamecmd','command.php');this.disabled=true;">
&nbsp;&nbsp;<input type="button" id="aa" class="cmdbutton" name="split_itm" value="[A]提炼" onclick="$('command').value='split_itm0';postCmd('gamecmd','command.php');this.disabled=true;">
<!--{/if}-->
<br><br>
<input type="button" class="cmdbutton" id="xx" name="dropitm0" value="[X]丢弃" onclick="$('command').value='dropitm0';postCmd('gamecmd','command.php');this.disabled=true;">
\ No newline at end of file
<div style="width:720px">
<div class="b1" style="height:20px"><span>合成笔记</span></div>
<div class="b3" style="min-height:380px;display: flex;position:relative;justify-content: center;">
<div style="min-width: 500px;max-width:700px;max-height:400px;text-align:left;word-break:break-all;overflow:auto;">
<!--{eval include_once GAME_ROOT.'./include/game/itemplace.func.php';$mixhint = init_itemmix_tips();}-->
<form method="post" id="maincmd" name="maincmd">
<input type="hidden" name="itemindex" id="itemindex" value="">
{$mixhint}
</form>
<!--{if $itemcmd == 'itemmix'}-->
<div style="width:720px">
<div class="b1" style="height:20px"><span>合成笔记</span></div>
<div class="b3" style="min-height:380px;display: flex;position:relative;justify-content: center;">
<div style="min-width: 500px;max-width:700px;max-height:400px;text-align:left;word-break:break-all;overflow:auto;">
<!--{eval include_once GAME_ROOT.'./include/game/itemplace.func.php';$mixhint = init_itemmix_tips();}-->
<form method="post" id="maincmd" name="maincmd">
<input type="hidden" name="itemindex" id="itemindex" value="">
{$mixhint}
</form>
</div>
</div>
</div>
</div>
<!--{if !empty($itemindex)}-->
<!--{eval include_once GAME_ROOT.'./include/game/itemplace.func.php';$mixhint2 = init_itemmix_tips($itemindex);}-->
<dialog id="itemmix_tips" style="min-width: fit-content; min-height: fit-content;max-width: 400px;max-height: 600px;">
<div id="tipsinfo">
<div class="b3" style="mdisplay: flex;position:relative;justify-content: center;">
<div style="text-align:left;word-break:break-all;overflow:auto;">
{$mixhint2}
<!--{if !empty($itemindex)}-->
<!--{eval include_once GAME_ROOT.'./include/game/itemplace.func.php';$mixhint2 = init_itemmix_tips($itemindex);}-->
<dialog id="itemmix_tips" style="min-width: fit-content; min-height: fit-content;max-width: 400px;max-height: 600px;">
<div id="tipsinfo">
<div class="b3" style="mdisplay: flex;position:relative;justify-content: center;">
<div style="text-align:left;word-break:break-all;overflow:auto;">
{$mixhint2}
</div>
</div>
</div>
<img class="dialog-background" src="img/profile.gif" onclick="closeDialog($('itemmix_tips'));this.disabled=true;">
</dialog>
<!--{/if}-->
<!--{elseif $itemcmd == 'elementmix'}-->
<style>
table.infotable {
float: left;
margin-top: 10px;
position:relative;
text-align: center;
border-radius: 3px;
border:2px solid rgba(225, 124, 226, 0.25);
}
table.infotable td,
table.infotable th {
width: 55px;
text-align: center;
border:1px solid rgba(225, 124, 226, 0.4);
}
</style>
<div style="width:740px">
<div class="b1" style="height:20px"><span>元素笔记</span></div>
<div class="b3" style="min-height:380px;display: flex;position:relative;justify-content: center;">
<div style="min-width: 500px;max-width:720px;max-height:400px;text-align:left;word-break:break-all;overflow:auto;">
<!--{eval include_once GAME_ROOT.'./include/game/elementmix.func.php';$smhint = emix_init_elements_info($pdata);}-->
<!--{loop Array('element0','element1','element2','element3','element4','element5') $ekey $enum}-->
<table cellspacing="0" cellpadding="0" class="infotable">
<tr>
<TD colspan="2" class="b1" style="width: 110px; height: 24px;">{$elements_info[$ekey]}</TD>
</tr>
<tr class="map" height="28">
<td colspan="2">
<span class="">{$pdata[$enum]}</span>
</td>
</tr>
<tr class="map" height="24">
<td colspan="2">
<!--{eval $domdesc_0 = emix_init_elements_tags($ekey,'dom',0,$pdata)}-->
{$domdesc_0}
</td>
</tr>
<tr class="map" height="24">
<td colspan="2">
<!--{eval $domdesc_1 = emix_init_elements_tags($ekey,'dom',1,$pdata)}-->
{$domdesc_1}
</td>
</tr>
<tr class="map" height="24">
<td>
<!--{eval $subdesc_0 = emix_init_elements_tags($ekey,'sub',0,$pdata)}-->
{$subdesc_0}
</td>
<td>
<!--{eval $subdesc_1 = emix_init_elements_tags($ekey,'sub',1,$pdata)}-->
{$subdesc_1}
</td>
</tr>
<tr class="map" height="24">
<td>
<!--{eval $subdesc_2 = emix_init_elements_tags($ekey,'sub',2,$pdata)}-->
{$subdesc_2}
</td>
<td>
<!--{eval $subdesc_3 = emix_init_elements_tags($ekey,'sub',3,$pdata)}-->
{$subdesc_3}
</td>
</tr>
</table>
<!--{/loop}-->
<br>
<hr style="clear:both; border: 1px solid rgba(225, 124, 226, 0.25);">
<div style="display: block;word-break:break-all;overflow:auto;">
{$smhint}
</div>
</div>
</div>
</div>
<img class="dialog-background" src="img/profile.gif" onclick="closeDialog($('itemmix_tips'));this.disabled=true;">
</dialog>
<!--{/if}-->
\ No newline at end of file
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