Skip to content

Commit

Permalink
Codechange: updated Polar Fox
Browse files Browse the repository at this point in the history
  • Loading branch information
andythenorth committed Dec 8, 2024
1 parent b9e22cf commit 4da570e
Show file tree
Hide file tree
Showing 7 changed files with 7,743 additions and 7,293 deletions.
14 changes: 7 additions & 7 deletions src/polar_fox/cargo_classes/cargo_class_constants.nml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
// extra nml constants for Polar Fox 2024 cargo class names that substitute legacy NML class names
const CC_OPEN_BULK = CC_BULK; // bit number for reference 4
const CC_COVERED_BULK = CC_COVERED; // bit number for reference 9
const CC_POWDER_BULK = CC_POWDERIZED; // bit number for reference 11
const CC_LIQUID_BULK = CC_LIQUID; // bit number for reference 6
const CC_GAS_BULK = CC_HAZARDOUS; // bit number for reference 8
const CC_FLATBED = CC_OVERSIZED; // bit number for reference 10
const CC_WEIRD = CC_NON_POURABLE; // bit number for reference 12
const CC_OPEN_BULK = 4; // remaps legacy NML class: CC_BULK
const CC_COVERED_BULK = 9; // remaps legacy NML class: CC_COVERED
const CC_POWDER_BULK = 11; // remaps legacy NML class: CC_POWDERIZED
const CC_LIQUID_BULK = 6; // remaps legacy NML class: CC_LIQUID
const CC_GAS_BULK = 8; // remaps legacy NML class: CC_HAZARDOUS
const CC_FLATBED = 10; // remaps legacy NML class: CC_OVERSIZED
const CC_WEIRD = 12; // remaps legacy NML class: CC_NON_POURABLE
2 changes: 1 addition & 1 deletion src/polar_fox/cargo_classes/cargo_classes_FIRS.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ cargo_class_description = ["Passengers."]
cargo_grf_advice = ["Generally this only applies to specific Passengers cargo (cargo label PASS)."]
cargo_class_taxonomy_tags = ["Non-Freight", "Passengers"]
fallback_to_piece_goods = false
vehicle_grf_advice = []
vehicle_grf_advice = ["Passenger vehicles are simple and just set CC_PASSENGERS."]
vehicle_set_as_allow = true
vehicle_set_as_disallow = false

Expand Down
2 changes: 1 addition & 1 deletion src/polar_fox/cargo_classes/nml_cargo_class_constants.pt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<tal:cargo_class_nodes repeat="cargo_class_node cargo_class_scheme.cargo_classes_taxonomy.items()">
<tal:cargo_class define="cargo_class_node_id cargo_class_node[0]; cargo_class cargo_class_node[1];">
<tal:block condition="cargo_class_node_id != cargo_class.nml_cargo_class_name">
const ${cargo_class_node_id} = ${cargo_class.nml_cargo_class_name}; // bit number for reference ${cargo_class.bit_number}
const ${cargo_class_node_id} = ${cargo_class.bit_number}; // remaps legacy NML class: ${cargo_class.nml_cargo_class_name}
</tal:block>
</tal:cargo_class>
</tal:cargo_class_nodes>
3,921 changes: 2,073 additions & 1,848 deletions src/polar_fox/docs/frax.html

Large diffs are not rendered by default.

Loading

0 comments on commit 4da570e

Please sign in to comment.