TRACTOR AND HARVESTER 315 HP PURCHASE LIMIT - v1.1.0.0

INSTALL
1. Copy FS25_Tractor315Limit.zip into your FarmingSimulator2025 mods folder,
   replacing the previous version of that ZIP. Keep the same filename.
   On this computer the game profile was found at:
   D:\Users\Owner\Documents\My Games\FarmingSimulator2025
   Use the mods directory configured for your game if you have changed it.
2. Leave the ZIP zipped. Enable "Tractor and Harvester 315 HP Purchase Limit"
   when loading a save.
3. In multiplayer, install the same ZIP on the server/host and every client.
   Multiplayer hooks are included but have not been tested in a running session.

RULE
Small, medium and large tractors, combines and forage harvesters are limited
to 315 advertised shop HP when purchased.
Exactly 315 is allowed; anything greater is blocked. The selected motor option
is checked, so a vehicle with both smaller and larger engines can still be
purchased with an eligible engine. Standard new and used purchases are checked.
The shop displays "Purchase not allowed" with the rating and the limit.
No Vehicle Years mod is required; this is a separate, independently written mod.

SCOPE
Leasing, vehicles already owned, workshop engine upgrades, other equipment
categories, and free mission/reward vehicles are not restricted. This is a
purchase rule, not an ownership or engine-upgrade cap.
Custom vehicles must use the normal tractorsS / tractorsM / tractorsL /
harvesters (combines) / forageHarvesters category
and correct shop horsepower metadata. Runtime tuning/boost is not measured.
If neither the selected engine nor the base shop specification supplies a valid
horsepower value, the purchase is blocked with an explanatory notice.
The server-side fallback reports the game's normal failed-purchase result if a
third-party shop bypasses the standard UI. The specific 315 HP popup is supplied
by the standard shop hooks. Other mods that replace purchase functions entirely
may require compatibility work.
This Lua script mod is intended for PC/Mac.

TEST STATUS
Lua 5.1: 67 mocked behavior assertions passed, including the 315 boundary,
engine selections, notices, used purchases, callback forwarding and exemptions.
Also checked 196 engine ratings from 75 installed base-game tractor, combine
and forage harvester XMLs: 122 allowed, 74 blocked.
modDesc XML and ZIP structure validated.
The installed game reports FS25 1.25.1.0. Public SDK code and GIANTS documentation
were used to check interfaces. This build has NOT been tested inside the game;
the GUI, actual money changes, purchase completion and multiplayer still need
an in-game check. Automated tests simulate game APIs, not the game engine.

QUICK IN-GAME CHECK (use a test save)
- Buy a tractor below 315 HP: purchase should succeed.
- Try a tractor above 315 HP: notice should appear; no charge or vehicle spawn.
- Change motor options across the limit and retry.
- Try a used tractor above the limit.
- Try combines and forage harvesters above 315 HP: purchases should be blocked.
- Try combines and forage harvesters at or below 315 HP: should be allowed.
- Buy a header or other attachment: should be unaffected.
- Lease a high-powered tractor: should be unaffected.
- Repeat as a multiplayer client if using a server.
If a test fails, retain FarmingSimulator2025/log.txt and the tractor/mod name,
selected engine, and whether the attempt was new, used, or multiplayer.

TECHNICAL REFERENCES
GIANTS FS25 BuyVehicleData documentation:
https://gdn.giants-software.com/documentation_scripting_fs25.php?category=75&class=608&version=script
GIANTS motor configuration horsepower field:
https://gdn.giants-software.com/documentation_scripting_fs25.php?category=15&class=178&version=script
The supplied Vehicle Years archive was inspected only as a structural reference.
Its Lua code, year database, and artwork are not included in this mod.
