Shop Expander
Shop expander aims to solve a problem encountered by many players using multiple large mods.
Town NPCs have a limited amount of free shop inventory space.
When multiple different mods add items to a single vanilla NPC’s shop, it can overflow, causing any additional items to not show up.
The issue is further compounded by the fact that some items might be added to the same shop by multiple different mods, resulting in wasted slots.
This mod solves the problem, by modifying tModLoader’s shop setup process.
It provides each mod with a new empty inventory to put items in, then combines the inventories.
This new Expanded shop is then divided into pages for displaying.
As a bonus, you also get a full 28 slot empty page for the buyback buffer.
For more game-play info visit the mod’s home page.
Changelog:
v1.8.1
– Fixed issue with some mod calls being broken. Thank you elytrafae for reporting.
v1.8.0
– Added translation for Buyback(missing Chinese localization for it). Thank you Alino4kaHvoshch
v1.7.0
– Added Chinese localization. Thank you Er1c-WYH
v1.6.0
– Added Russian localization. Thank you alinahvoshch
v1.5.0
– Add config option to disable paging for specific NPCs
v1.4.1:
– Fix empty shops
v1.4.0:
– Add `AddNpcTypeToIgnoreList` Call api that tells ShopExpander to ignore ALL shops from a specific npc
– `Mod.Call("AddNpcTypeToIgnoreList", int npcType)`
– Add `AddNpcShopToIgnoreList` Call api that tells ShopExpander to ignore ONE shop from a specific npc
– `Mod.Call("AddNpcShopToIgnoreList", int npcType, string shopName)`
v1.3.0:
– Fix for 1.4.4
– Remove following Call apis
– SetProvisionSize – You can add as many items as you want if the mod is enabled
– SetModifier – Not needed anymore. Now mod order dependent(just like vanilla)
– SetNoDistinct – Duplicate cleanup is not done anymore
– SetVanillaNoCopy – Unused
– AddLegacyMultipageSetupMethods – switch to ‘AddPageFromArray’ Call
v1.2.6:
– Fix buyback buffer
v1.2.5:
– Revert to v1.2.0
v1.2.4:
– Maybe fix issues caused by previous version.
v1.2.3:
– Fix attempt #2 for vanilla painter shop overflow bug.
– Increase default allowed shop size to 80.
v1.2.2:
– Increased default allowed shop size to 60(vanilla is 40) in an attempt to fix vanilla painter shop issues.
Also allows mods to be more liberal with adding items without needing mod calls.
v1.2.0
– Bug fixes
– Internal refactor
– New cross mod api
– Allow mods to add custom shop pages
– Switch from Harmony to MonoMod
v1.1.2
– Fixed multiplayer issues
v1.1.1
– Better error handling and other bug fixes
– Fixed overzealous duplicate remover
Developed By DRKV and Exterminator