my $eff = class extends NDIRC::Command {
use ND::Include;
method execute($c,$msg) {
my $eff = class extends NDIRC::Command {
use ND::Include;
method execute($c,$msg) {
-SELECT name,t1,t2,t3,"type",damage
+SELECT ship,t1,t2,t3,"type",damage
,metal+crystal+eonium AS cost
,init,"class",guns,race,eres,armor
,metal+crystal+eonium AS cost
,init,"class",guns,race,eres,armor
my $text = prettyValue($amount)." $feud $name ($s->{init}:$value) :";
for my $tn ('t1','t2','t3'){
next unless defined ($self->target($s,$tn));
$text .= " <b><c03>" . $self->target($s,$tn) . "</c></b>: ";
my $st = $self->query(q{
my $text = prettyValue($amount)." $feud $name ($s->{init}:$value) :";
for my $tn ('t1','t2','t3'){
next unless defined ($self->target($s,$tn));
$text .= " <b><c03>" . $self->target($s,$tn) . "</c></b>: ";
my $st = $self->query(q{
-SELECT name,"class","type",armor
+SELECT ship,"class","type",armor
while (my $t = $st->fetchrow_hashref()){
my $number = $self->calcEff($s,$t,$tn,$amount);
$value = prettyValue($number*$t->{cost}/100);
while (my $t = $st->fetchrow_hashref()){
my $number = $self->calcEff($s,$t,$tn,$amount);
$value = prettyValue($number*$t->{cost}/100);
$c = 13 if $type eq 'Steal';
return "<c$c>$string</c>";
}
method amount ($s,$t,$tn,$amount) {
$c = 13 if $type eq 'Steal';
return "<c$c>$string</c>";
}
method amount ($s,$t,$tn,$amount) {
}
method amount ($s,$t,$tn,$amount) {
}
method amount ($s,$t,$tn,$amount) {
($amount*100/(100 - $s->{eres})/$t->{guns})
: ($amount*$s->{armor}/$t->{damage});
$number /= 0.60 if $tn eq 't2';
($amount*100/(100 - $s->{eres})/$t->{guns})
: ($amount*$s->{armor}/$t->{damage});
$number /= 0.60 if $tn eq 't2';