derail-valley-modding / custom-car-loader

A Derail Valley mod that allows the addition of new cars and locomotive types to the game.
https://nexusmods.com/derailvalley/mods/324
MIT License
14 stars 6 forks source link

Quick cargo amount access and validation. #241

Closed WhistleWiz closed 8 months ago

WhistleWiz commented 8 months ago

This was supposed to be part of the cargo amount fix, but that requires substantially more work. The patch that was the start of it is commented out so it does not affect the game, but was kept in case it can be used later.

Validation was added to the cargo entries to warn on duplicates, since only the first entry is added.