Skip to content

Commit

Permalink
prevent combination of seeded cts (#349)
Browse files Browse the repository at this point in the history
  • Loading branch information
MikeJeffers committed Jun 19, 2021
1 parent 4d7a1d9 commit a0744a8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Perpetuum/Services/ProductionEngine/PBSFacilities.cs
Original file line number Diff line number Diff line change
Expand Up @@ -674,6 +674,9 @@ public ProductionInProgress StartCPRGForge(Character character, long sourceEid,
sourceCalibration.ED.CategoryFlags.IsCategory(CategoryFlags.cf_random_calibration_programs).ThrowIfTrue(ErrorCodes.MissionItemCantBeForged);
targetCalibration.ED.CategoryFlags.IsCategory(CategoryFlags.cf_random_calibration_programs).ThrowIfTrue(ErrorCodes.MissionItemCantBeForged);

//OPP: prevent combination of Shop-provided CTs - will inflate number of runs
sourceCalibration.ED.CategoryFlags.IsCategory(CategoryFlags.cf_dynamic_cprg).ThrowIfTrue(ErrorCodes.MissionItemCantBeForged);
targetCalibration.ED.CategoryFlags.IsCategory(CategoryFlags.cf_dynamic_cprg).ThrowIfTrue(ErrorCodes.MissionItemCantBeForged);

sourceCalibration.CheckTargetForForgeAndThrowIfFailed(targetCalibration);

Expand Down

0 comments on commit a0744a8

Please sign in to comment.