The title pretty much sums it up, I'd like some tags to be added to the building reactions to allow those buildings (when properly connected) to produce a variable amount of power.
To wit:
- [PRODUCES_POWER:X] The reaction causes the building to start building
- [POWER_PRESSURE:X:Y:Z] An optional tag that takes in account breakdowns. At X ticks the building's description will contain "making an unsettling noise", at Y ticks it will be described as "shuddering violently" or "smoking" and at Z ticks it will go "critical" and deconstruct itself. (Preferably, in a violent dwarf injuring fashion comparable to a cave-in.)
- [CEASE_POWER] ( Or [CUT_POWER]) The reaction stops its host building from producing power.
- [DRAINS_PRESSURE:X:Y]Decreases the building's POWER_PRESSURE by X over Y ticks. 0 is instant.
- [REQUIRES_MECHS] Reaction requires the building to contain at least one mechanism.
I shouldn't think that it'd be too much trouble... And it'll allow all kinds of cool generators. ( Imagine, if you will, a Steam generator, or a Dwarven generator. )
Using the Steam generator as an example. ( Didn't do it syntactically correct, because I'm in a bit of a hurry.
[REACTION:BOIL_WATER]
Takes water in a bucket and boils it into pressurized steam. Consumes fuel.
[PRODUCES_POWER:200] -Provides 200 power to connected mechanisms.
[POWER_PRESSURE:10000:15000:25000] - Goes critical at 25000 ticks.
[REQUIRES_MECHS]
[REACTION:VENT_STEAM]
[DRAINS_PRESSURE:1000:100] -Drains 1000 ticks worth of pressure over 100 ticks.
[REACTION:EXTINGUISH_BOILER]
[CEASE_POWER] - The generator stops producing power and building pressure.
Also, less for the sake of practicality and more for the sake of fun... This custom building tag:
[RELEASES_MAT_ON_CRITICAL:X:<STATE>:<TYPE>:<MATERIAL>] where X is the radius of the release from the center tile of the former building
For example [RELEASES_MAT_ON_CRITICAL:3:GAS:INORGANIC:WATER] would theoretically release a 3*3 cloud of steam on the break-down of the steam generator, centered on the former center tile of the former steam engine.