ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/maps/perl/bank.ext
(Generate patch)

Comparing deliantra/maps/perl/bank.ext (file contents):
Revision 1.21 by root, Wed Jul 19 22:20:07 2006 UTC vs.
Revision 1.23 by elmex, Mon Aug 14 21:38:59 2006 UTC

42 } else { 42 } else {
43 return $who->name." has no balance." 43 return $who->name." has no balance."
44 unless $balance >= 1; 44 unless $balance >= 1;
45 } 45 }
46 46
47 my $royalties = calc_exchange_rate $balance, "silver", "royalty"; 47 my $account_info = cf::cost_string_from_value ($balance);
48 my $platinum = calc_exchange_rate $royalties - (int $royalties), "royalty", "platina";
49 my $gold = calc_exchange_rate $platinum - (int $platinum), "platina", "gold";
50 my $silver = calc_exchange_rate $gold - (int $gold), "gold", "silver";
51
52 my $account_info =
53 (int $royalties) . " royalties, "
54 . (int $platinum) . " platinum, "
55 . (int $gold) . " gold and about "
56 . (int $silver) ." silver coins.";
57 48
58 return "You have $account_info" 49 return "You have $account_info"
59 unless $is_wiz; 50 unless $is_wiz;
60 51
61 return $who->name." has $account_info"; 52 return $who->name." has $account_info";

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines