… | |
… | |
860 | * what the converter wants, this will not do anything. |
860 | * what the converter wants, this will not do anything. |
861 | */ |
861 | */ |
862 | int |
862 | int |
863 | convert_item (object *item, object *converter) |
863 | convert_item (object *item, object *converter) |
864 | { |
864 | { |
865 | sint64 nr, price_in; |
865 | sint64 nr = 0, price_in; |
866 | |
866 | |
867 | if (item->flag [FLAG_UNPAID]) |
867 | if (item->flag [FLAG_UNPAID]) |
868 | return 0; |
868 | return 0; |
869 | |
869 | |
870 | shstr conv_from = converter->slaying; |
870 | shstr conv_from = converter->slaying; |
871 | archetype *conv_to = converter->other_arch; |
871 | archetype *conv_to = converter->other_arch; |
872 | sint64 need = converter->stats.food; |
872 | sint64 need = converter->stats.food; |
873 | sint64 give = converter->stats.sp; |
873 | sint64 give = converter->stats.sp; |
874 | |
874 | |