Skip to content

Commit

Permalink
Check for non-default sensor/ecm stats like with repair
Browse files Browse the repository at this point in the history
Will allow, for example, Nexus to use the NavGunSensor again for manufactured units through research tricks.
  • Loading branch information
KJeff01 committed Nov 18, 2023
1 parent 819da14 commit 9b9a4e3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/design.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2870,8 +2870,8 @@ bool intValidTemplate(DROID_TEMPLATE *psTempl, const char *newName, bool complai

// Check no mixing of systems and weapons
if (psTempl->numWeaps != 0 &&
(psTempl->asParts[COMP_SENSOR] ||
psTempl->asParts[COMP_ECM] ||
((psTempl->asParts[COMP_SENSOR] && psTempl->asParts[COMP_SENSOR] != aDefaultSensor[player]) ||
(psTempl->asParts[COMP_ECM] && psTempl->asParts[COMP_ECM] != aDefaultECM[player]) ||
(psTempl->asParts[COMP_REPAIRUNIT] && psTempl->asParts[COMP_REPAIRUNIT] != aDefaultRepair[player]) ||
psTempl->asParts[COMP_CONSTRUCT]))
{
Expand Down

0 comments on commit 9b9a4e3

Please sign in to comment.