Skip to content

Commit

Permalink
Change: more WIP on asymmetric covered coil carriers
Browse files Browse the repository at this point in the history
  • Loading branch information
andythenorth committed Feb 13, 2024
1 parent 8e32b3a commit fc54f44
Show file tree
Hide file tree
Showing 7 changed files with 29 additions and 9 deletions.
20 changes: 20 additions & 0 deletions src/gestalt_graphics/graphics_constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,26 @@
142: 30,
143: 168,
}
covered_coil_car_asymmetric_body_recolour_map = {
136: 5,
137: 6,
138: 7,
139: 20,
140: 21,
141: 22,
142: 23,
143: 14,
}
covered_coil_car_asymmetric_body_recolour_map_weathered = {
136: 33,
137: 34,
138: 7,
139: 36,
140: 21,
141: 22,
142: 23,
143: 39,
}
v_barrel_silo_car_livery_recolour_maps = {
136: CC1,
137: CC1 + 1,
Expand Down
Binary file modified src/graphics/pony/coil_car_covered_asymmetric_pony_gen_4B.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/graphics/pony/coil_car_covered_asymmetric_pony_gen_4C.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 4 additions & 3 deletions src/train.py
Original file line number Diff line number Diff line change
Expand Up @@ -3166,7 +3166,8 @@ def __init__(self, **kwargs):
self.use_named_buyable_variant_group = "wagon_group_coil_cars"
self._joker = True
# Graphics configuration
weathered_variants = {"unweathered": graphics_constants.body_recolour_CC1}
weathered_variants = {"unweathered": graphics_constants.covered_coil_car_asymmetric_body_recolour_map,
"weathered": graphics_constants.covered_coil_car_asymmetric_body_recolour_map_weathered}
self.gestalt_graphics = GestaltGraphicsVisibleCargo(
weathered_variants=weathered_variants,
liveries=[
Expand All @@ -3177,16 +3178,16 @@ def __init__(self, **kwargs):
"RANDOM_FROM_CONSIST_LIVERIES_2"
],
global_constants.freight_wagon_liveries[
"RANDOM_FROM_CONSIST_LIVERIES_3"
"RANDOM_FROM_CONSIST_LIVERIES_7"
],
global_constants.freight_wagon_liveries[
"COMPANY_COLOUR_USE_WEATHERING"
],
global_constants.freight_wagon_liveries[
"COMPLEMENT_COMPANY_COLOUR_USE_WEATHERING"
],
global_constants.freight_wagon_liveries["FREIGHT_RUBY"],
global_constants.freight_wagon_liveries["FREIGHT_BAUXITE"],
global_constants.freight_wagon_liveries["FREIGHT_GREY"],
],
piece="coil",
has_cover=True,
Expand Down
11 changes: 5 additions & 6 deletions src/vehicles/coil_cars_covered_asymmetric.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,24 +25,23 @@ def main():
)

consist.add_unit(type=CoilCarAsymmetric, chassis="4_axle_filled_32px")
"""

consist = CoilCarCoveredAsymmetricConsist(
roster_id="pony",
base_numeric_id=12570,
base_numeric_id=13430,
gen=5,
subtype="B",
sprites_complete=True,
sprites_complete=False,
)

consist.add_unit(type=CoilCarAsymmetric, chassis="4_axle_1cc_filled_24px")

consist = CoilCarCoveredAsymmetricConsist(
roster_id="pony",
base_numeric_id=12580,
base_numeric_id=15730,
gen=5,
subtype="C",
sprites_complete=True,
sprites_complete=False,
)

consist.add_unit(type=CoilCarAsymmetric, chassis="4_axle_1cc_filled_32px")
"""

0 comments on commit fc54f44

Please sign in to comment.