Chain Factory by DiegoVargas

Comparisons
Super quick and dirty code to mess around with ramping element chains. Usage: ATK IndividualHits SkillMod TotalChainHits Eg. Vaan with 744 ATK divides into 8 hits, with a 2.7 skill mod having a mirrored DW pair of 30 hits. ./dirty.pl 744 8 2.7 30

$c_atk = $ARGV[0] / $ARGV[1]; $s_mod = $ARGV[2]; $t_hit = $ARGV[3];
 * 1) !/usr/bin/perl

$echain = 0; $e_atk = $c_atk * (1 * $echain * 0.3); for ($i = 0; $i < $t_hit; $i++) { if($echain < 11) { $echain++ } $e_atk = $e_atk + ( $c_atk * (1 + $echain * 0.3) );

printf "%f\n", $e_atk; }