… | |
… | |
249 | } |
249 | } |
250 | |
250 | |
251 | |
251 | |
252 | package Jeweler::CauldronHandler; |
252 | package Jeweler::CauldronHandler; |
253 | |
253 | |
254 | use strict; |
254 | use common::sense; |
255 | |
255 | |
256 | =head2 CauldronHandler |
256 | =head2 CauldronHandler |
257 | |
257 | |
258 | The Jeweler::CauldronHandler package, that helps you with handling the |
258 | The Jeweler::CauldronHandler package, that helps you with handling the |
259 | cauldron stuff. Can also be used for other skills. |
259 | cauldron stuff. Can also be used for other skills. |
… | |
… | |
367 | =back |
367 | =back |
368 | |
368 | |
369 | =cut |
369 | =cut |
370 | |
370 | |
371 | package Jeweler::Ingredients; |
371 | package Jeweler::Ingredients; |
|
|
372 | |
|
|
373 | use common::sense; |
|
|
374 | |
372 | use Storable qw/dclone/; |
375 | use Storable qw/dclone/; |
373 | use strict; |
|
|
374 | |
376 | |
375 | =head2 Ingredients |
377 | =head2 Ingredients |
376 | |
378 | |
377 | This class handles the ingredients. |
379 | This class handles the ingredients. |
378 | |
380 | |
… | |
… | |
624 | } |
626 | } |
625 | } |
627 | } |
626 | } |
628 | } |
627 | |
629 | |
628 | package Jeweler::Object; |
630 | package Jeweler::Object; |
629 | use strict; |
631 | |
|
|
632 | use common::sense; |
630 | use POSIX; |
633 | use POSIX; |
631 | use List::Util qw/max min sum/; |
634 | use List::Util qw/max min sum/; |
632 | |
635 | |
633 | sub new { |
636 | sub new { |
634 | my ($class, %arg) = @_; |
637 | my ($class, %arg) = @_; |
… | |
… | |
1106 | $cost->{gem} += ceil $sumvalue * $stat_split->[4] / max 1, $diarch->value; |
1109 | $cost->{gem} += ceil $sumvalue * $stat_split->[4] / max 1, $diarch->value; |
1107 | } |
1110 | } |
1108 | |
1111 | |
1109 | package Jeweler::Util; |
1112 | package Jeweler::Util; |
1110 | |
1113 | |
1111 | use strict; |
1114 | use common::sense; |
1112 | |
1115 | |
1113 | =head2 Util |
1116 | =head2 Util |
1114 | |
1117 | |
1115 | Some utility functions for the Jeweler skill. |
1118 | Some utility functions for the Jeweler skill. |
1116 | |
1119 | |