Skip to content

Commit

Permalink
Merge branch 'main' of github.com:ahyangyi/openttd-newgrfs
Browse files Browse the repository at this point in the history
  • Loading branch information
ahyangyi committed Oct 30, 2023
2 parents 0a0c231 + 049e861 commit eaacb16
Show file tree
Hide file tree
Showing 13 changed files with 6 additions and 14 deletions.
1 change: 0 additions & 1 deletion agrf/lib/cargo.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import grf
import struct


class Cargo(grf.SpriteGenerator):
Expand Down
2 changes: 1 addition & 1 deletion industry/aegis_gen.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ def main():
economy = meta_economy.get_economy(variation)
try:
validate(economy)
except AssertionError as e:
except AssertionError:
print(f"Economy: {meta_economy.name}")
for k, v in variation.items():
print(f"{k}: {v}")
Expand Down
4 changes: 2 additions & 2 deletions industry/docgen/economy.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ def gen_economy_doc(all_economies, string_manager):
choices_text.append(f"{preset}")
else:
choices_text.append(f"[{preset}]({meta_economy.name}_{preset_desc}.html)")
choices_text = " \| ".join(choices_text)
choices_text = " \\| ".join(choices_text)
print(
f"""{choices_text}
Expand All @@ -98,6 +98,6 @@ def gen_economy_doc(all_economies, string_manager):
f"[{choice}]({meta_economy.name}_{variation_desc[:i]}{j}{variation_desc[i+1:]}.html)"
)
print(
f"{param}: " + " \| ".join(choices_text) + "\n",
f"{param}: " + " \\| ".join(choices_text) + "\n",
file=f,
)
1 change: 0 additions & 1 deletion industry/economies/firs_arctic.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
fertiliser,
fish,
food,
goods,
mail,
paper,
passengers,
Expand Down
2 changes: 0 additions & 2 deletions industry/economies/firs_temperate.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,6 @@
metal_workshop,
orchard_and_piggery,
port,
power_station,
sawmill,
scrap_yard,
steel_mill,
stockyard,
Expand Down
2 changes: 1 addition & 1 deletion industry/industries/forest/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import grf
from industry.lib.industry import AIndustry, SplitDefinition, transcribe, symmetrize
from industry.lib.industry import AIndustry, SplitDefinition, transcribe
from .enormous import enormous_set
from .huge import huge_set
from .large import large_set
Expand Down
1 change: 0 additions & 1 deletion industry/lib/cargo.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import grf
import struct
from agrf.lib.cargo import Cargo
from cargos import cargos as cargo_table
Expand Down
2 changes: 2 additions & 0 deletions industry/lib/validator/yeti.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,5 @@ def check_yeti(economy):

if economy.parameters["WORKFORCE"] == "YETI":
assert len(conf.boosters) == 2
else:
assert len(conf.boosters) == 3
1 change: 0 additions & 1 deletion road/road_types/main_asphalt.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
from road.lib import ARoadType
from road.lib.graphics.underlay import get_spritesheet
from datetime import date
import grf


the_road_type = ARoadType(
Expand Down
1 change: 0 additions & 1 deletion road/road_types/main_concrete.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
from road.lib import ARoadType
from road.lib.graphics.underlay import get_spritesheet
from datetime import date
import grf


the_road_type = ARoadType(
Expand Down
1 change: 0 additions & 1 deletion road/road_types/motorway.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
from road.lib import ARoadType
from road.lib.graphics.underlay import get_spritesheet
from datetime import date
import grf


the_road_type = ARoadType(
Expand Down
1 change: 0 additions & 1 deletion road/road_types/slate_block.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
from road.lib import ARoadType
from road.lib.graphics.underlay import get_spritesheet
from datetime import date
import grf


the_road_type = ARoadType(
Expand Down
1 change: 0 additions & 1 deletion road/road_types/urban_expressway_asphalt.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
from road.lib import ARoadType
from road.lib.graphics.underlay import get_spritesheet
from datetime import date
import grf


the_road_type = ARoadType(
Expand Down

0 comments on commit eaacb16

Please sign in to comment.