From deeaef53d989e145c0ed00dbd05152c5cd9a8866 Mon Sep 17 00:00:00 2001 From: Andy Date: Sun, 17 Nov 2024 22:31:22 +0000 Subject: [PATCH] Change: add vehicle 'refit' callback (cb 0x163) --- nml/actions/action3_callbacks.py | 1 + 1 file changed, 1 insertion(+) diff --git a/nml/actions/action3_callbacks.py b/nml/actions/action3_callbacks.py index 2ac9753a..bbb6a670 100644 --- a/nml/actions/action3_callbacks.py +++ b/nml/actions/action3_callbacks.py @@ -40,6 +40,7 @@ 'sound_effect' : {'type': 'cb', 'num': 0x33, 'flag_bit': 7}, 'refit_cost' : {'type': 'cb', 'num': 0x15E, 'purchase': 1}, 'name' : {'type': 'cb', 'num': 0x161, 'flag_bit': 8, 'purchase': 2}, + 'refit' : {'type': 'cb', 'num': 0x163, "purchase": 2}, } # Function to convert vehicle length to the actual property value, which is (8 - length)