rendered paste body foreach( $this->weapons as $weapon ) {
if( $weapon['hand'] == $this->WeaponHand['Off'] ) {
$dw_penalty = 50;
if( $talent->get_modifier( "dw" ) != NULL ) {
// clean up later
$dw_penalty = ( $dw_penalty + ( $dw_penalty * $talent->get_modifier( "dw" ) ) ) / 100;
}
$weapon['max'] = ceil( ( $weapon['max'] + ( $this->attackpower / 14 * $weapon['speed'] ) ) * $dw_penalty );
$weapon['min'] = floor( ( $weapon['min'] + ( $this->attackpower / 14 * $weapon['speed'] ) ) * $dw_penalty );
} else {
$weapon['max'] += ceil( $this->attackpower / 14 * $weapon['speed'] );
$weapon['min'] += floor( $this->attackpower / 14 * $weapon['speed'] );
}
$weapons[] = $weapon;
}