massif-press / cc-lcp-editor

A tool for producing Lancer Content Packages for use with COMP/CON
9 stars 9 forks source link

Mods showing up as Systems, and using Systems editor #17

Closed Bluhman closed 3 years ago

Bluhman commented 3 years ago

Describe the bug When editing an existing lcp, Weapon Mods in the lcp show up as systems instead of mods, meaning they cannot be properly edited. The reproduction rate of this isn't 100%, and might be based either on how the input's field schema is interpreted.

To Reproduce Steps to reproduce the behavior:

  1. Import an LCP with mods in it.
  2. Go to the manufacturer editor area, and open up the Licenses and Equipment section of a manufacturer that has a mod associated with it.
  3. Notice how the element on the UI renders in dark green, rather than cyan. Click on this mod.
  4. Notice how the editor opens the Systems editor rather than the Mod editor.

Expected behavior Mods should always open the mod editor, so that fields associated with mods (weapon/size restrictions, bonuses, etc) can be edited.

Screenshots The JSON formatting of the mod, in mods.json image

How it appears in the editor: image

The editor tab that opens: image

Bluhman commented 3 years ago

If I attempt to save this mod using the systems editor, Bug #3 occurs as well (and they both show up as Systems rather than Mods.)