Skip to content

Commit

Permalink
(rv) Update model
Browse files Browse the repository at this point in the history
  • Loading branch information
ahyangyi committed Dec 6, 2023
1 parent 37c2a21 commit 80a9b0d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 18 deletions.
20 changes: 2 additions & 18 deletions road_vehicle/vehicles/lorries/yellowriver.py
Original file line number Diff line number Diff line change
@@ -1,27 +1,11 @@
from datetime import date
from road_vehicle.lib import ALorry, BiasPlyTire
from road_vehicle.lib.graphics.autowolf import AutoWolf
from road_vehicle.lib.graphics.voxel import LazyVoxel, LazyAlternatives, LazySwitch
from road_vehicle.lib.graphics.voxel import LazyVoxel
from agrf.variant import AVariant
import cargos
from agrf.graphics.recolour import *

lowside = LazyVoxel("freedom").compose("road_vehicle/voxels/parts/open.vox", "open")

empty = lowside.produce_empty("empty")
coal = lowside.compose("road_vehicle/voxels/parts/cargo/coal.vox", "coal")

lowside_switch = LazySwitch(
ranges={
cargos.cargos.index(k): LazyAlternatives(
(empty, lowside.compose("road_vehicle/voxels/parts/cargo/coal.vox", v.name, colour_map=v))
)
for k, v in cargos.coal_remaps.items()
},
default=LazyAlternatives((empty, coal)),
code="cargo_type_in_veh",
)

variant = AVariant(
id=0x2300,
name="Yellow River Truck",
Expand All @@ -41,5 +25,5 @@
tire=BiasPlyTire(11, 20),
refittable_cargo_classes=cargos.OPEN_CARGO_CLASSES,
real_class=ALorry,
graphics_helper=AutoWolf(lowside_switch, flags=("noflipY",)),
graphics_helper=AutoWolf(LazyVoxel("yellowriver"), flags=("noflipY",)),
)
Binary file modified road_vehicle/voxels/yellowriver.vox
Binary file not shown.

0 comments on commit 80a9b0d

Please sign in to comment.