$line) { $tmp = explode(",", $line); $spelllist[$tmp[6]] = $tmp; } ksort($spelllist); // create form ?>
Select Damage Amplifier Enhancement
Auto (avail to caster level)
None
Manipulation I (+10%)
Manipulation II (+20%)
Manipulation III (+30%)
Manipulation IV (+40%)
Select Damage Amplifier Item
none
lesser (+10%)
normal (+20%)
improved (+30%)
greater (+40%)
superior (+50%)
Select Critical Amplifier Enhancement
Auto (avail to caster level)
None
Lineage of Deadly I (+.25)
Lineage of Deadly II (+.5)
Lineage of Deadly III (+.75)
Select Critical Amplifier Item
none
minor (+0.25)
lesser (+0)
normal (+0.25)
greater (+0.25)
superior (+0.5)
call($spelllist[$tmpSpell][0], $spelllist[$tmpSpell][1], $spelllist[$tmpSpell][2], $spelllist[$tmpSpell][3], $spelllist[$tmpSpell][4], $spelllist[$tmpSpell][5], $spelllist[$tmpSpell][6], $spelllist[$tmpSpell][7], $spelllist[$tmpSpell][8]); switch ($tmpDAT) { case 1.1: $tmpDAT_Out = "Lesser "; break; case 1.2: $tmpDAT_Out = "Normal "; break; case 1.3: $tmpDAT_Out = "Improved "; break; case 1.4: $tmpDAT_Out = "Greater "; break; case 1.5: $tmpDAT_Out = "Superior "; break; default: $tmpDAT_Out = ""; } switch ($tmpCATcat) { case 1: $tmpCAT_Out = "Minor "; $tmpCAT = 0.25; break; case 2: $tmpCAT_Out = "Lesser "; $tmpCAT = 0; break; case 3: $tmpCAT_Out = "Normal "; $tmpCAT = 0.25; break; case 4: $tmpCAT_Out = "Greater "; $tmpCAT = 0.25; break; case 5: $tmpCAT_Out = "Superior "; $tmpCAT = 0.5; break; default: $tmpCAT_Out = ""; $tmpCAT = 0; } $spell->setbonus($tmpsda, $tmpsca, $tmpDAT_Out, $tmpDAT, $tmpCAT_Out, $tmpCAT); if ($tmpSType == " Calculate Spell Damage ") { $spell->base(); } if ($tmpSType == " Calculate Damage per Spellpoint ") { $spell->dps(); } if ($tmpSType == " Calculate Avg Damage per Spellpoint ") { $spell->avgsp(); } } ?>