Skip to content

Commit

Permalink
Add: Support town_production_effect and town_production_multiplier. (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
PeterN authored Feb 8, 2024
1 parent f0c1c05 commit 9b8a23f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
2 changes: 2 additions & 0 deletions nml/actions/action0properties.py
Original file line number Diff line number Diff line change
Expand Up @@ -1263,6 +1263,8 @@ def check_accept(acp):
"units_of_cargo": {"num": 0x1B, "size": 2, "string": 0xDC},
"items_of_cargo": {"num": 0x1C, "size": 2, "string": 0xDC},
"capacity_multiplier": {"num": 0x1D, "size": 2, "unit_conversion": 0x100},
"town_production_effect": {"num": 0x1E, "size": 1},
"town_production_multiplier": {"num": 0x1F, "size": 2, "unit_conversion": 0x100},
}
# fmt: on

Expand Down
5 changes: 5 additions & 0 deletions nml/global_constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -907,6 +907,11 @@ def constant_number(name, info, pos):
"TOWNGROWTH_FOOD" : 0x0B,
"TOWNGROWTH_NONE" : 0xFF,

# Town production effect on cargo
"TOWNPRODUCTION_PASSENGERS" : 0x00,
"TOWNPRODUCTION_MAIL" : 0x02,
"TOWNPRODUCTION_NONE" : 0xFF,

# Cargo callbacks
"CARGO_CB_PROFIT" : 0x01,
"CARGO_CB_STATION_RATING" : 0x02,
Expand Down

0 comments on commit 9b8a23f

Please sign in to comment.