citymania-org / grf-py

A Python framework for making NewGRFs for OpenTTD
GNU General Public License v2.0
14 stars 3 forks source link

Fix: station availability should be a purchase callback #34

Open ahyangyi opened 2 months ago

ldpl commented 1 day ago

are you sure about this? nml seems to have it as a default https://github.com/OpenTTD/nml/blob/a139540406bdae9281e43277d8f435a0b362bd39/nml/actions/action3_callbacks.py#L141

ldpl commented 1 day ago

Openttd does seem to call it in purchase branch though. Also, I tried to test it but couldn't get it working either way xD

ahyangyi commented 16 hours ago

I remember that I had to make it a purchase callback to get it working. But I want to take some time to test it again, considering that NML also does it the other way.