
Better Context Actions v1.1.0.0

Mod-Network is recieving some updates. Thank you for your patiences ;)
Dukefarming
120.41 KB
Applies USA tax brackets to farm income every quarter. How It Works in Game Every three in-game periods (e.g., months), the mod checks each farm’s balance. Farms with positive balances pay taxes based on the bracket system, and the money is deducted. In multiplayer, the server calculates and distributes tax updates to clients, who apply the changes and notify players via a popup if it’s their farm. The mod logs actions (e.g., "Farm 1 paid $2066") for transparency and debugging. Purpose This mod adds a layer of realism and challenge to the game by simulating taxation, encouraging players to manage finances more strategically. It’s designed to integrate seamlessly with the game’s existing farm management and multiplayer systems. Core Functionality Tax Calculation: The mod defines a set of tax brackets with increasing rates, similar to real-world progressive tax systems: 10% for balances up to $2,900 12% for balances up to $11,787.50 22% for balances up to $25,131.25 24% for balances up to $47,987.50 32% for balances up to $60,931.25 35% for balances up to $152,337.50 37% for balances above $152,337.50 The calculateTax function computes the tax by applying these rates incrementally to portions of a farm's balance. For example, if a farm has $15,000: $2,900 × 0.10 = $290 ($11,787.50 - $2,900) × 0.12 = $1,066.50 ($15,000 - $11,787.50) × 0.22 = $709.50 Total tax = $2,066 (rounded down). Quarterly Tax Processing: Taxes are processed every third period (quarterly), detected via the periodChanged function. The processQuarterlyTax function iterates through all farms managed by the game, calculates the tax based on each farm’s balance, deducts it, and logs the transaction.
Comments:
Login to place a comment: Login
gamerboy13
01 Mar 2025
Great job on the mod! The attention to financial realism adds an interesting layer to the game. Consider streamlining tax notifications to be less frequent, especially in larger multiplayer sessions, as too many popups can disrupt the pacing. Looking forward to more updates!
React
CameronWrench
28 Feb 2025
It'd be great to see this mod shared around social media distance— I’m sure other players would appreciate it!
React
Reese
27 Feb 2025
This mod adds a great level of realism by incorporating taxes. It challenges strategic financial management?which makes gameplay engaging. It could improve with clearer in-game explanation for players new to farming economics.
React
ZacharyGajic
27 Feb 2025
Thanks for the mod! Love the added challenge from tax management; it really spices up the game and keeps finances in check. It's fantastic to see new layers of strategy being introduced!
React
ZacharyGajic
27 Feb 2025
thanks hope it works well