Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add: Support town_production_effect and town_production_multiplier. #318

Merged
merged 1 commit into from
Feb 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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