rekterakathom / Overthrow

A dynamic and persistent revolution platform for Arma 3
https://steamcommunity.com/sharedfiles/filedetails/?id=2824471652
GNU General Public License v2.0
12 stars 9 forks source link

Improve shop item discovery #43

Closed Tuupertunut closed 1 year ago

Tuupertunut commented 1 year ago

Before: When searching for items to sell in a shop, only direct children of certain 5 classes and their children (2 levels deep) were searched. This made adding new items to shops hard and there were already some items that should be there but weren't.

Also uniforms, helmets, weapon attachments and detonators were priced using the weapon pricing logic.

After: Now all items are searched. Items are defined as those where BIS_fnc_itemType returns Item. In vanilla Arma 3 the only difference is that binoculars (and NVGs after PR #42) may now be found in shop inventories. With mods such as RHS however, this may have a huge effect on shop inventory.

Uniforms, helmets, weapon attachments and detonators are now priced correctly using their own pricing logics.