Skip to content

Commit 352379c

Browse files
committed
add 2 more industry object flags
1 parent 9ae6691 commit 352379c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Dat/Objects/Industry/IndustryObjectFlags.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ public enum IndustryObjectFlags : uint32_t
2222
NotRotatable = 1 << 15,
2323
CanBeFoundedByPlayer = 1 << 16,
2424
RequiresAllCargo = 1 << 17,
25-
unk_18 = 1 << 18,
26-
unk_19 = 1 << 19,
25+
CanIncreaseProduction = 1 << 18,
26+
CanDecreaseProduction = 1 << 19,
2727
RequiresElectricityPylons = 1 << 20,
2828
HasShadows = 1 << 21,
2929
unk_22 = 1 << 22,

Tests/LoadSaveTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -383,7 +383,7 @@ void assertFunc(ILocoObject obj, IndustryObject struc) => Assert.Multiple(() =>
383383
Assert.That(struc.BuildCostFactor, Is.EqualTo(400), nameof(struc.BuildCostFactor));
384384
Assert.That(struc.CostIndex, Is.EqualTo(1), nameof(struc.CostIndex));
385385
Assert.That(struc.DesignedYear, Is.EqualTo(0), nameof(struc.DesignedYear));
386-
Assert.That(struc.Flags, Is.EqualTo(IndustryObjectFlags.BuiltOnLowGround | IndustryObjectFlags.BuiltAwayFromTown | IndustryObjectFlags.unk_18 | IndustryObjectFlags.unk_19), nameof(struc.Flags));
386+
Assert.That(struc.Flags, Is.EqualTo(IndustryObjectFlags.BuiltOnLowGround | IndustryObjectFlags.BuiltAwayFromTown | IndustryObjectFlags.CanIncreaseProduction | IndustryObjectFlags.CanDecreaseProduction), nameof(struc.Flags));
387387
Assert.That(struc.InitialProductionRate[0].Min, Is.EqualTo(8));
388388
Assert.That(struc.InitialProductionRate[0].Max, Is.EqualTo(12));
389389
Assert.That(struc.InitialProductionRate[1].Min, Is.EqualTo(0));

0 commit comments

Comments
 (0)