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
13 stars 6 forks source link

Quick cargo amount access and validation. #241

Closed WhistleWiz closed 6 months ago

WhistleWiz commented 6 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.