Skip to content

Commit

Permalink
(Aegis) Add cargo-data in docs
Browse files Browse the repository at this point in the history
  • Loading branch information
ahyangyi committed Nov 13, 2023
1 parent 39d3e52 commit e14f479
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions industry/docgen/economy.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,8 @@ def gen_economy_doc(all_economies, string_manager):
"""
# Cargos
| Cargo | Class | Capacity Multiplier | Weight |
|-------|-------|---------------------|--------|""",
| Cargo | Class | Capacity Multiplier | Weight | Penalty1 | Penalty2 | Base Price |
|-------|-------|---------------------|--------|----------|----------|------------|""",
file=f,
)
for cargo in economy.cargos:
Expand All @@ -81,7 +81,7 @@ def gen_economy_doc(all_economies, string_manager):
cargolink = lambda x: f"[{x.name(string_manager)}](../cargos/{x.label.decode()}.html)"

print(
f"| {cargolink(cargo)} | {cargo_class(cargo.cargo_class)} | {cargo.capacity_multiplier / 0x100} | {cargo.weight / 16} |",
f"| {cargolink(cargo)} | {cargo_class(cargo.cargo_class)} | {cargo.capacity_multiplier / 0x100} | {cargo.weight / 16} | {cargo.penalty1} | {cargo.penalty2} | {cargo.base_price} |",
file=f,
)

Expand Down

0 comments on commit e14f479

Please sign in to comment.