Commit ca1e61c3 authored by Nemo Ma's avatar Nemo Ma

Fireseed Renewal Vol.1

Changed Mechanic: Changed the ``kind`` of Fireseed Items to be a separate one.
Reimplemented all needed functions.
Altered resources related to this change.
parent 83351d87
......@@ -2582,7 +2582,7 @@ $anpcinfo = array
'wepe' => 1,
'weps' => 50,
'itm5' => '◆愈合数据',
'itmk5' => 'HB',
'itmk5' => '🎆H',
'itme5' => 5,
'itms5' => '∞',
),
......@@ -2595,7 +2595,7 @@ $anpcinfo = array
'wepe' => 1,
'weps' => 50,
'itm5' => '◆熟练数据',
'itmk5' => 'VV',
'itmk5' => '🎆V',
'itme5' => 1,
'itms5' => 5,
),
......@@ -2608,7 +2608,7 @@ $anpcinfo = array
'wepe' => 1,
'weps' => 50,
'itm5' => '◆生命数据',
'itmk5' => 'MH',
'itmk5' => '🎆O',
'itme5' => 1,
'itms5' => 10,
),
......@@ -2621,7 +2621,7 @@ $anpcinfo = array
'wepe' => 1,
'weps' => 50,
'itm5' => '◆意念数据',
'itmk5' => 'MD',
'itmk5' => '🎆D',
'itme5' => 1,
'itms5' => 10,
),
......
......@@ -237,61 +237,53 @@ $mixinfo = array
array('class' => 'wf', 'stuff' => array('月符「Silent Serena」','月符「Silent Serena」','火水木金土符『贤者之石』','金符「Metal Fatigue」'),'result' => array('月月火水木金金符『年中无休』(笑)','WF',65500,'∞','rd'),),
array('class' => 'wf', 'stuff' => array('日&月符『Royal Diamond Ring』','梦幻『幻月』','神枪『Spear The Gungnir』','紫奥义『弹幕结界』'),'result' => array('模式『EX』','WF',72000,'∞','crdZ'),),
array('class' => 'fseed', 'stuff' => array('◆篝火','◆篝火','◆篝火'),'result' => array('◆◆篝火','DB',10,1,'a'),),
array('class' => 'fseed', 'stuff' => array('◆埋火','◆埋火','◆埋火'),'result' => array('◆◆埋火','DH',10,1,'B'),),
array('class' => 'fseed', 'stuff' => array('◆永火','◆永火','◆永火'),'result' => array('◆◆永火','DF',10,1,'M'),),
array('class' => 'fseed', 'stuff' => array('◆残火','◆残火','◆残火'),'result' => array('◆◆残火','DA',10,1,'b'),),
array('class' => 'fseed', 'stuff' => array('◆◆篝火','◆◆篝火','◆◆篝火'),'result' => array('◆◆◆篝火','DB',50,1,'a'),),
array('class' => 'fseed', 'stuff' => array('◆◆埋火','◆◆埋火','◆◆埋火'),'result' => array('◆◆◆埋火','DH',50,1,'B'),),
array('class' => 'fseed', 'stuff' => array('◆◆永火','◆◆永火','◆◆永火'),'result' => array('◆◆◆永火','DF',50,1,'M'),),
array('class' => 'fseed', 'stuff' => array('◆◆残火','◆◆残火','◆◆残火'),'result' => array('◆◆◆残火','DA',50,1,'b'),),
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('◆◆熟练数据','VV',35,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',70,1,),),
array('class' => 'fseed', 'stuff' => array('◆意念数据','◆焰火'),'result' => array('◆◆意念数据','MD',50,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('✦愈合数据','HB',50,'∞',),),
array('class' => 'fseed', 'stuff' => array('◆◆◆熟练数据','✦烈焰火'),'result' => array('✦熟练数据','VV',75,1,),),
array('class' => 'fseed', 'stuff' => array('◆◆◆生命数据','✦烈焰火'),'result' => array('✦生命数据','MH',100,1,),),
array('class' => 'fseed', 'stuff' => array('◆◆◆意念数据','✦烈焰火'),'result' => array('✦意念数据','MD',100,1,),),
array('class' => 'fseed', 'stuff' => array('◆愈合数据','◆焰火'),'result' => array('◆◆◆愈合数据','🎆H',60,'∞',),),
array('class' => 'fseed', 'stuff' => array('◆熟练数据','◆焰火'),'result' => array('◆◆◆熟练数据','🎆V',100,1,),),
array('class' => 'fseed', 'stuff' => array('◆生命数据','◆焰火'),'result' => array('◆◆◆生命数据','🎆O',250,1,),),
array('class' => 'fseed', 'stuff' => array('◆意念数据','◆焰火'),'result' => array('◆◆◆意念数据','🎆D',250,1,),),
array('class' => 'fseed', 'stuff' => array('◆焰火','◆焰火','◆火之碎片'),'result' => array('✦烈焰火','A',50,50,'H'),),
array('class' => 'fseed', 'stuff' => array('◆◆◆愈合数据','✦烈焰火'),'result' => array('✦愈合数据','🎆H',120,'∞',),),
array('class' => 'fseed', 'stuff' => array('◆◆◆熟练数据','✦烈焰火'),'result' => array('✦熟练数据','🎆V',75,1,),),
array('class' => 'fseed', 'stuff' => array('◆◆◆生命数据','✦烈焰火'),'result' => array('✦生命数据','🎆O',500,1,),),
array('class' => 'fseed', 'stuff' => array('◆◆◆意念数据','✦烈焰火'),'result' => array('✦意念数据','🎆D',500,1,),),
array('class' => 'fseed', 'stuff' => array('◆焰火','◆焰火','◆焰火','◆火之碎片','◆火之碎片'),'result' => array('★华焰火★','A',200,100,'HZ'),),
array('class' => 'fseed', 'stuff' => array('✦愈合数据','★华焰火★'),'result' => array('★愈合数据★','🎆H',350,'∞',),),
array('class' => 'fseed', 'stuff' => array('✦熟练数据','★华焰火★'),'result' => array('★熟练数据★','🎆V',120,1,),),
array('class' => 'fseed', 'stuff' => array('✦生命数据','★华焰火★'),'result' => array('★生命数据★','🎆O',1000,1,),),
array('class' => 'fseed', 'stuff' => array('✦意念数据','★华焰火★'),'result' => array('★意念数据★','🎆D',1000,1,),),
array('class' => 'fseed', 'stuff' => array('★愈合数据★','☾真焰火☽'),'result' => array('☾愈合数据☽','🎆H',500,'∞',),),
array('class' => 'fseed', 'stuff' => array('★熟练数据★','☾真焰火☽'),'result' => array('☾熟练数据☽','🎆V',2000,1,),),
array('class' => 'fseed', 'stuff' => array('★生命数据★','☾真焰火☽'),'result' => array('☾生命数据☽','🎆O',2000,1,),),
array('class' => 'fseed', 'stuff' => array('★意念数据★','☾真焰火☽'),'result' => array('☾意念数据☽','🎆D',2000,1,),),
array('class' => 'fseed', 'stuff' => array('◆篝火','◆篝火','◆篝火'),'result' => array('◆◆◆篝火','DB',50,1,'a'),),
array('class' => 'fseed', 'stuff' => array('◆埋火','◆埋火','◆埋火'),'result' => array('◆◆◆埋火','DH',50,1,'B'),),
array('class' => 'fseed', 'stuff' => array('◆永火','◆永火','◆永火'),'result' => array('◆◆◆永火','DF',50,1,'M'),),
array('class' => 'fseed', 'stuff' => array('◆残火','◆残火','◆残火'),'result' => array('◆◆◆残火','DA',50,1,'b'),),
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('✦烈永火','DF',50,50,'M'),),
array('class' => 'fseed', 'stuff' => array('◆◆◆残火','✦烈焰火'),'result' => array('✦烈残火','DA',50,50,'b'),),
array('class' => 'fseed', 'stuff' => array('✦烈篝火','✦烈篝火','✦烈篝火'),'result' => array('✦✦烈篝火','DB',100,50,'a'),),
array('class' => 'fseed', 'stuff' => array('✦烈埋火','✦烈埋火','✦烈埋火'),'result' => array('✦✦烈埋火','DH',100,50,'B'),),
array('class' => 'fseed', 'stuff' => array('✦烈永火','✦烈永火','✦烈永火'),'result' => array('✦✦烈永火','DF',100,50,'M'),),
array('class' => 'fseed', 'stuff' => array('✦烈残火','✦烈残火','✦烈残火'),'result' => array('✦✦烈残火','DA',100,50,'b'),),
array('class' => 'fseed', 'stuff' => array('✦烈篝火','✦烈篝火','✦烈篝火'),'result' => array('✦✦✦烈篝火','DB',200,50,'a'),),
array('class' => 'fseed', 'stuff' => array('✦烈埋火','✦烈埋火','✦烈埋火'),'result' => array('✦✦✦烈埋火','DH',200,50,'B'),),
array('class' => 'fseed', 'stuff' => array('✦烈永火','✦烈永火','✦烈永火'),'result' => array('✦✦✦烈永火','DF',200,50,'M'),),
array('class' => 'fseed', 'stuff' => array('✦烈残火','✦烈残火','✦烈残火'),'result' => array('✦✦✦烈残火','DA',200,50,'b'),),
array('class' => 'fseed', 'stuff' => array('✦✦烈篝火','✦✦烈篝火','✦✦烈篝火'),'result' => array('✦✦✦烈篝火','DB',200,50,'a'),),
array('class' => 'fseed', 'stuff' => array('✦✦烈埋火','✦✦烈埋火','✦✦烈埋火'),'result' => array('✦✦✦烈埋火','DH',200,50,'B'),),
array('class' => 'fseed', 'stuff' => array('✦✦烈永火','✦✦烈永火','✦✦烈永火'),'result' => array('✦✦✦烈永火','DF',200,50,'M'),),
array('class' => 'fseed', 'stuff' => array('✦✦烈残火','✦✦烈残火','✦✦烈残火'),'result' => array('✦✦✦烈残火','DA',200,50,'b'),),
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('★熟练数据★','VV',200,1,),),
array('class' => 'fseed', 'stuff' => array('✦生命数据','★华焰火★'),'result' => array('★生命数据★','MH',200,1,),),
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('★华埋火★','DH',200,100,'BZ'),),
array('class' => 'fseed', 'stuff' => array('✦✦✦烈永火','★华焰火★'),'result' => array('★华永火★','DF',200,100,'MZ'),),
array('class' => 'fseed', 'stuff' => array('✦✦✦烈残火','★华焰火★'),'result' => array('★华残火★','DA',200,100,'bZ'),),
array('class' => 'fseed', 'stuff' => array('★华焰火★','◆火之碎片'),'result' => array('☾真焰火☽','A',500,500,'HZ'),),
array('class' => 'fseed', 'stuff' => array('★愈合数据★','☾真焰火☽'),'result' => array('☾愈合数据☽','HB',300,'∞',),),
array('class' => 'fseed', 'stuff' => array('★熟练数据★','☾真焰火☽'),'result' => array('☾熟练数据☽','VV',700,1,),),
array('class' => 'fseed', 'stuff' => array('★生命数据★','☾真焰火☽'),'result' => array('☾生命数据☽','MH',700,1,),),
array('class' => 'fseed', 'stuff' => array('★意念数据★','☾真焰火☽'),'result' => array('☾意念数据☽','MD',700,1,),),
array('class' => 'fseed', 'stuff' => array('★华篝火★','☾真焰火☽'),'result' => array('☾真篝火☽','DB',500,500,'aZ'),),
array('class' => 'fseed', 'stuff' => array('★华埋火★','☾真焰火☽'),'result' => array('☾真埋火☽','DH',500,500,'BZ'),),
array('class' => 'fseed', 'stuff' => array('★华永火★','☾真焰火☽'),'result' => array('☾真永火☽','DF',500,500,'MZ'),),
......
......@@ -2137,7 +2137,7 @@
'wepe' => 1,
'weps' => 50,
'itm5' => '◆愈合数据',
'itmk5' => 'HB',
'itmk5' => '🎆H',
'itme5' => 5,
'itms5' => '∞',
),
......@@ -2152,7 +2152,7 @@
'wepe' => 1,
'weps' => 50,
'itm5' => '◆熟练数据',
'itmk5' => 'VV',
'itmk5' => '🎆V',
'itme5' => 1,
'itms5' => 5,
),
......@@ -2167,7 +2167,7 @@
'wepe' => 1,
'weps' => 50,
'itm5' => '◆生命数据',
'itmk5' => 'MH',
'itmk5' => '🎆O',
'itme5' => 1,
'itms5' => 10,
),
......@@ -2182,7 +2182,7 @@
'wepe' => 1,
'weps' => 50,
'itm5' => '◆意念数据',
'itmk5' => 'MD',
'itmk5' => '🎆D',
'itme5' => 1,
'itms5' => 10,
),
......
......@@ -1059,7 +1059,13 @@ $iteminfo = Array(//注意顺序,AB必须在A的前面,以此类推
'ZA' => '代码漏洞',
'ZB'=> '称号卡',
'Z' => '特殊',#不可合并
'🥚' => '代码片段',
'🥚' => '代码片段',
'🎆H' => '余烬', #愈合数据
'🎆V' => '余烬', #熟练数据
'🎆O' => '余烬', #生命数据
'🎆D' => '余烬', #意念数据
'P🎆' => '余烬', #霍霍完歌魂是不是还要霍霍种火数据(悲
'🎆' => '余烬', # Catch-All
);
$itemspkinfo = Array(
......
......@@ -166,6 +166,12 @@ $tps_ik = Array
'ZB' => Array('class'=>'lime', 'title'=>"在没有决定称号的时候使用该物品,便可获得该对应称号。",),
'ZA' => Array('class'=>'neonyellow', 'title'=>"这个物品中似乎含有让你可以独自脱离幻境的方法……",),
'🥚' => Array('class'=>'purple', 'title'=>"通过提取物品产生的蛋状物品,看起来可以插回其他物品为之强化。",),
'🎆' => Array('class'=>'lime', 'title'=>"神秘存在身上掉落的碎片,似乎和你很匹配。",),
'🎆H' => Array('class'=>'lime', 'title'=>"神秘存在身上掉落的碎片,似乎和你很匹配。",),
'🎆V' => Array('class'=>'lime', 'title'=>"神秘存在身上掉落的碎片,似乎和你很匹配。",),
'🎆O' => Array('class'=>'lime', 'title'=>"神秘存在身上掉落的碎片,似乎和你很匹配。",),
'🎆D' => Array('class'=>'lime', 'title'=>"神秘存在身上掉落的碎片,似乎和你很匹配。",),
'P🎆' => Array('class'=>'lime', 'title'=>"神秘存在身上掉落的碎片,似乎和你狠匹配。",),
);
$tps_isk = Array
......
......@@ -1053,6 +1053,308 @@ function itemuse($itmn,&$data=NULL) {
}else{
$log.="你使用了<span class=\"yellow\">{$itm}</span>,但是没有发现陷阱。<br>";
}
}elseif (strpos ( $itmk, '🎆' ) === 0 ) {
//В ΜΑЛΨ, В ЩΑЁΨ, В ЦΨΨ ОΑЙЙ, В ТИХ ЩДТЖИΜД.
//ХЖ ДЖХЖТ, ЖХΨ ЦЩТΑВΜДЩ ТЖΑΡ, ΜΨЩ. ЩДВХΜЦ. ΡЖХΨ.
//Thanks Chantal for crunching those numbers - I'll make sure I find you something else to crunch on some other time...
# This method concerns 4 of them, and one additional check:
//$hp up, $w[X] up, $mhp up, $def up
# Then, decide on the Rank of the Fireseed Item, this will decide its maximum value:
$rank = 0;
# Those items will always start with either ◆,✦,★,☾, and ☼
if (strpos ( $itm, '◆' ) === 0){
$rank = 1;
}elseif (strpos ( $itm, '✦' ) === 0){
$rank = 2;
}elseif (strpos ( $itm, '★' ) === 0){
$rank = 3;
}elseif (strpos ( $itm, '☾' ) === 0){
$rank = 4;
}elseif (strpos ( $itm, '☼') === 0){
$rank = 5;
}else{
$rank = 0;
}
# Special check for a invalid item (Rank = 0), Just turn it into healing.
if($rank == 0){
$log.="你将<span class=\"yellow\">{$itm}</span>吞下了肚,你感觉焕然一新!<br>";
$hp = $mhp;
$sp = $msp;
}
# Logic for each of the 4 usages.
elseif($itmk == '🎆H'){
# This is healing item, it can heal beyond your $mhp based on its rank.
if ($rank == 1){
$gainmax = round($mhp * 0.51);
}elseif ($rank == 2){
$gainmax = round($mhp * 1.08);
}elseif ($rank == 3){
$gainmax = round($mhp * 2.33);
}elseif ($rank == 4){
$gainmax = round($mhp * 5.73);
}else{
$gainmax = '∞';
}
// Tracking how much HP one can overheal based on its rank.
$clbpara['fireseedMaxHPRecover'] = $gainmax;
if ($gainmax !== '∞'){
// Gain HP and SP - note we don't overheal SP here.
$addsp = $msp - $sp < $itme ? $msp - $sp : $itme;
if($addsp > 0) $sp += $addsp;
else $addsp = 0;
// Calculating overheal HP value.
$addhp = ($mhp + $gainmax) - $hp < $itme ? ($mhp + $gainmax) - $hp : $itme;
if($addhp > 0) $hp += $addhp;
else $addhp = 0;
if ($addhp <= 0){
$log.="你将<span class=\"yellow\">{$itm}</span>吞下了肚。<br>
但是似乎并没有回复生命!<br>
<br>
<span class=\"blueseed\">同时,你还隐约听见了一个声音:<br>
「你可能需要找个纯度更高的代码片段哟~」<br></span>";
$falsify = true;
}else{
$gainless = ($mhp + $gainmax) - $hp;
$log.="你将<span class=\"yellow\">{$itm}</span>吞下了肚。<br>
治愈的代码片段为你恢复了<span class=\"yellow\">$addhp</span>点生命和<span class=\"yellow\">$addsp</span>点体力。<br>
<br>
<br>
<span class=\"blueseed\">同时,你还隐约听见了一个声音:<br>
「你还能获得{$gainless}点临时生命哟~<br>
但临时生命就是临时的,随时都有可能消失哟~」<br></span>";
if($gainless < $itme){
$log.="<br><span class=\"redseed\">这时,有另一把声音插了进来:<br>
「看起来这个纯度的代码片段已经喂不饱你了。<br>
赶快找下一个纯度的代码片段吧!」<br></span>";
}
}
}else{
$addsp = $msp - $sp < $itme ? $msp - $sp : $itme;
if($addsp > 0) $sp += $addsp;
else $addsp = 0;
$addhp = $itme;
$hp += $addhp;
$log.="你将<span class=\"yellow\">{$itm}</span>吞下了肚。<br>
治愈的代码片段为你恢复了<span class=\"yellow\">$addhp</span>点生命和<span class=\"yellow\">$addsp</span>点体力。<br>";
}
}
elseif ($itmk == '🎆V'){
# This is $w[X] up, it simply add to all $w[X] values.
if ($rank == 1){
$gainmax = 201;
}elseif ($rank == 2){
$gainmax = 502;
}elseif ($rank == 3){
$gainmax = 2003;
}elseif ($rank == 4){
$gainmax = 8011;
}else{
$gainmax = '∞';
}
// Tracking how much w value one can gain based on its rank.
$clbpara['fireseedmaxProfGain'] = $gainmax;
if ($gainmax !== '∞'){
// Gain w value
$addw = $itme;
$clbpara['fireseedmaxProfAdd'] += $addw;
if($clbpara['fireseedmaxProfGain'] - $clbpara['fireseedmaxProfAdd'] > 0) {
$wp += $addw;
$wk += $addw;
$wg += $addw;
$wc += $addw;
$wd += $addw;
$wf += $addw;}
else $addw = 0;
if ($addw <= 0){
$log.="你将<span class=\"yellow\">{$itm}</span>吞下了肚。<br>
但是似乎什么都没有发生!<br>
<br>
<br>
<span class=\"blueseed\">同时,你还隐约听见了一个声音:<br>
「你可能需要找个纯度更高的代码片段哟~」<br></span>";
$falsify = true;
}else{
$gainless = $clbpara['fireseedmaxProfGain'] - $clbpara['fireseedmaxProfAdd'];
$log.="你将<span class=\"yellow\">{$itm}</span>吞下了肚。<br>
载有熟练度的代码片段让你获得了<span class=\"yellow\">$addw</span>点全系熟练度!<br>
<br>
<br>
<span class=\"blueseed\">同时,你还隐约听见了一个声音:<br>
「你还能通过这个纯度的代码获得{$gainless}点熟练度哟~」<br></span>";
if($gainless < $itme){
$log.="<br><span class=\"redseed\">这时,有另一把声音插了进来:<br>
「看起来这个纯度的代码片段已经喂不饱你了。<br>
赶快找下一个纯度的代码片段吧!」<br></span>";
}
}
}else{
$addw = $itme;
$wp += $addw;
$wk += $addw;
$wg += $addw;
$wc += $addw;
$wd += $addw;
$wf += $addw;
$log.="你将<span class=\"yellow\">{$itm}</span>吞下了肚。<br>
载有熟练度的代码片段让你获得了<span class=\"yellow\">$addw</span>点全系熟练度!<br>";
}
}
elseif ($itmk == '🎆O'){
# This is $mhp up item, it simply add to that value.
if ($rank == 1){
$gainmax = 1001;
}elseif ($rank == 2){
$gainmax = 3002;
}elseif ($rank == 3){
$gainmax = 5003;
}elseif ($rank == 4){
$gainmax = 8008;
}else{
$gainmax = '∞';
}
// Tracking how much $mhp value one can gain based on its rank.
$clbpara['fireseedmaxHPGain'] = $gainmax;
if ($gainmax !== '∞'){
// Gain $mhp value
$addmhp = $itme;
$clbpara['fireseedmaxHPAdd'] += $addmhp;
if($clbpara['fireseedmaxHPGain'] - $clbpara['fireseedmaxHPAdd'] > 0) $mhp += $addmhp;
else $addmhp = 0;
if ($addmhp <= 0){
$log.="你将<span class=\"yellow\">{$itm}</span>吞下了肚。<br>
但是似乎什么都没有发生!<br>
<br>
<br>
<span class=\"blueseed\">同时,你还隐约听见了一个声音:<br>
「你可能需要找个纯度更高的代码片段哟~」<br></span>";
$falsify = true;
}else{
$gainless = $clbpara['fireseedmaxHPGain'] - $clbpara['fireseedmaxHPAdd'];
$log.="你将<span class=\"yellow\">{$itm}</span>吞下了肚。<br>
载有生命的代码片段让你获得了<span class=\"yellow\">$addmhp</span>点生命最大值!<br>
<br>
<br>
<span class=\"blueseed\">同时,你还隐约听见了一个声音:<br>
「你还能通过这个纯度的代码获得{$gainless}点生命最大值哟~」<br></span>";
if($gainless < $itme){
$log.="<br><span class=\"redseed\">这时,有另一把声音插了进来:<br>
「看起来这个纯度的代码片段已经喂不饱你了。<br>
赶快找下一个纯度的代码片段吧!」<br></span>";
}
}
}else{
$addw = $itme;
$mhp += $addmhp;
$log.="你将<span class=\"yellow\">{$itm}</span>吞下了肚。<br>
载有生命的代码片段让你获得了<span class=\"yellow\">$addmhp</span>点生命最大值!<br>";
}
}
elseif ($itmk == '🎆D'){
# This is $def up item, it simply add to that value.
if ($rank == 1){
$gainmax = 1001;
}elseif ($rank == 2){
$gainmax = 3002;
}elseif ($rank == 3){
$gainmax = 5003;
}elseif ($rank == 4){
$gainmax = 8008;
}else{
$gainmax = '∞';
}
// Tracking how much $def value one can gain based on its rank.
$clbpara['fireseedmaxDefGain'] = $gainmax;
if ($gainmax !== '∞'){
// Gain $def value
$adddef = $itme;
$clbpara['fireseedmaxDefAdd'] += $adddef;
if($clbpara['fireseedmaxDefGain'] - $clbpara['fireseedmaxDefAdd'] > 0) $def += $adddef;
else $adddef = 0;
if ($adddef <= 0){
$log.="你将<span class=\"yellow\">{$itm}</span>吞下了肚。<br>
但是似乎什么都没有发生!<br>
<br>
<br>
<span class=\"blueseed\">同时,你还隐约听见了一个声音:<br>
「你可能需要找个纯度更高的代码片段哟~」<br></span>";
$falsify = true;
}else{
$gainless = $clbpara['fireseedmaxDefGain'] - $clbpara['fireseedmaxDefAdd'];
$log.="你将<span class=\"yellow\">{$itm}</span>吞下了肚。<br>
载有防御数据的代码片段让你获得了<span class=\"yellow\">$adddef</span>点基础防御力!<br>
<br>
<br>
<span class=\"blueseed\">同时,你还隐约听见了一个声音:<br>
「你还能通过这个纯度的代码获得{$gainless}点基础防御力哟~」<br></span>";
if($gainless < $itme){
$log.="<br><span class=\"redseed\">这时,有另一把声音插了进来:<br>
「看起来这个纯度的代码片段已经喂不饱你了。<br>
赶快找下一个纯度的代码片段吧!」<br></span>";
}
}
}else{
$adddef = $itme;
$def += $adddef;
$log.="你将<span class=\"yellow\">{$itm}</span>吞下了肚。<br>
载有防御数据的代码片段让你获得了<span class=\"yellow\">$adddef</span>点基础防御力!<br>";
}
}
else{
$log.="这段代码……要如何使用呢?<br>";
$falsify = true;
}
//Process item decrease.
if ($itms != $nosta) {
$itms --;
if ($itms <= 0) {
$log .= "<span class=\"red\">$itm</span>用光了。<br>";
$itm = $itmk = $itmsk = '';
$itme = $itms = 0;
}
}
# Special check for a poisoned fireseed item, WIP for now.
}elseif($itmk == 'P🎆'){
$log.="这个<span class=\"yellow\">{$itm}</span>有毒!到底是谁干的!<br>";
# For Maximum Funniness, we destroy this item.
$log .= "<span class=\"red\">$itm</span>用光了。<br>";
$itm = $itmk = $itmsk = '';
$itme = $itms = 0;
}elseif (strpos ( $itmk, 'Y' ) === 0 || strpos ( $itmk, 'Z' ) === 0) {
if ($itm == '电池') {
//功能需要修改,改为选择道具使用YE类型道具可充电
......@@ -1070,7 +1372,7 @@ function itemuse($itmn,&$data=NULL) {
if (! $flag) {
$log .= '你没有需要充电的物品。<br>';
}
} elseif ($itm == '群青多面体') {
}elseif ($itm == '群青多面体') {
//global $plsinfo,$nosta,$db,$tablepre;
$result = $db->query("SELECT pid,name,pls FROM {$tablepre}players WHERE type = 14 && hp > 0");
$ndata = array();
......
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