Battle Brothers
0 of 0

File information

Last updated

Original upload

Created by

Leonion

Uploaded by

Leonion

Virus scan

Safe to use

About this mod

Mark item types for sale. Then sell all loot in 1 click every time. No more playing click simulator.

Requirements
Permissions and credits
The mod adds the following features:
- you can now see the value/durability ratio for all armor and weapons in such items' top left corner. Basically, all items with ratio > 6 are worth repairing even under moderately "stressful" economic conditions (the formula of profitability is basically 300 * ratio * sell_modifier > tools_cost; when sell_modifier is 15% and tools are worth 250, the ratio is 5.5);
- in your inventory screen you can now see a new repair button to the right from filter buttons: with only 1 click on this button you will mark all relevant items in your inventory with ratio > 7 for repair;
- holding SHIFT and clicking RMB on any item in your inventory will permanently mark all items of this kind "for sale" (i.e. you only need to click on 1 short bow and from now on all short bows in your inventory will always be marked for sale; worry not about unintentionally selling named gear: e.g. a regular billhook and a named billhook are technically 2 different types of weapons; however, be careful with quivers - quivers of different size are considered to be the same item), clicking again will remove the mark, the mark is the coin at the top left corner;
- in the trade window you can now see a new "sell all" button under the filter buttons: with only 1 click on this button you will sell all items that you marked "for sale" (there are 2 exceptions: (1)slots 1-9 are ignored so you can still safely store a couple of wooden sticks or spare kite shields there and sell the rest and (2) items with ratio 10+ will only be sold when in full condition);

If you wish to edit my arbitrarily set criteria, search in the following files for the following lines:
(1) "7" (the minimum ratio which an item has to have to be automatically marked for repair): \scripts\!mods_preload\mod_ltt.nut => search for if (dratio > 7)
(2) "9" (the number of first inventory slots that are ignored by "sell all" button): \scripts\!mods_preload\mod_ilm_legends.nut => search for if (this.Stash.getItemAtIndex(i).item == null || i < 9)
(3) "10" (not fully repaired items with ratio 10+ are ignored by "sell all" button): : \scripts\!mods_preload\mod_ilm_legends.nut => search for else if (item.getCondition() < item.getConditionMax() && dratio > 30)

Since I mostly lost interest in Vanilla and Endur1el took over the development of the Vanilla version of the mod, the support of the Vanilla version was discontinued (the last archive version is for BB 1.3.0.25).

The Legends version has mostly the same functionality, except for the "repair all worthy items" button (it would be pretty useless in
Legends).
The current version is based on Legends 15_0_0_13 (should still work on 15.0.0.19, but it's the last ILM version for Legends as I discontinued support for non-armorsmith edition).
Armorsmith Edition.

It does require script hooks (credits to AdamMil01).