Capitalism v220.127.116.11 Mirror Note: Requires Mod Helpers This mod makes town NPCs stingy and adhere to the rule of supply & demand. As such, popular items will have their prices marked up. Also, don't let your vendor townsfolk die. Dying is expensive. Formula computing for item price markup If a tax collector is present, this price is further marked up by 2%. Config settings available in "My Documents/Terraria/ModLoader/Mod Configs/Capitalism Config.json". Source code available. API now available. Installation Requires tModLoader (0.10). Copy the above .tmod file to your 'Documents/My Games/Terraria/ModLoader/Mods' folder to play. Possible future additions Selling items decreases their value (need to figure out how to implement this adequately). Assorted favor or disfavor conditions for pricing. Credit and loans! Changelog v18.104.22.168 Updated to MH v22.214.171.124 (with conventions) Switched from snake case to camel case Changed uses of WorldHelpers.GetUniqueIdWithSeed to GetUniqueId v1.4.2 Updated to Mod Helpers v2.0.2 Added MP player load bug failsafe v1.4.1 Added Mod.Call API Added small bits of polish Updated net code to use PacketProtocol Possible fix for player issues Set world ids to use new convention Assorted internal freshness refactoring Updated to HH v1.4.18 v126.96.36.199 Added mod icon Added support for Hamstar Helpers v1.2.0 issue report Minor internal refactoring Added API v188.8.131.52 Refactored internal code to newer standard v1.3.3 Updated for TML 0.10 Offloaded utility/helper code to Hamstar's Helpers mod (now a dependency) Numerous fixes and tweaks v184.108.40.206 Added config setting 'Enabled' (allows disabling the mod instead of unloading it) Added shop prices markup % indicators as item tooltips v1.3.1 (Minor?) logic correction for bulk purchase detection v1.3.0 New formula for item markup (b=base value, t=total purchases): b + ( (b * t)^0.8 ) / 50 Fixed semi-critical bulk purchases bug v1.2.2 Altered some default config values Changed markup formula (b=base value, t=total purchases, s=total spendings): b + ( b * t * 0.02 * (0.996 ^ ((t/4) + (s/10000))) ) v1.2.0 Updated config file location. Cleaned up some code. Smoothed out price markup decay for expensive items. Added price markups for female townsfolk during a blood moon. Added price reduction for lovestruck townsfolk of the opposite gender. Added price markup for stinky players. v1.1.6 Fixed config reloading between game sessions. v1.1.5 Added failsafes. v1.1.2-4 Fixed multiplayer bug. v1.1.1 Modified the formula to the following (v=item's base value, t=total purchases): v + (v * t * 0.1 * (0.996 ^ t)) More fixes. v1.0.8-9 Fixed possible crash. Fixed item buybacks erroneously adding to item markup. v1.0.3-7 Fixed crashes. Support my mods!