mlangsdorf / Cataclysm-DDA

Cataclysm - Dark Days Ahead. A fork/variant of Cataclysm Roguelike by Whales.
http://en.cataclysmdda.com/
Other
1 stars 1 forks source link

Generators and reactors #24

Open mlangsdorf opened 6 years ago

mlangsdorf commented 6 years ago

After fuels as JSON goes in, refactor/extend support for reactors and generators:

  1. Add new E_GENERATOR flag, indicating an engine that isn't connected to the transmission (and thus shouldn't have E_HIGHER_SKILL) and doesn't provide motive power, but can still run alternators. It has a power field, but that's only used to indicate how much alternator load it can handle.
  2. REACTOR flag changes to mean a E_GENERATOR + fuel storage + E_ALTERNATOR + ALTERNATOR in one handy part.
  3. Reactors and generators only provide epower / consume fuel as needed.