Comment 0 for bug 895230

Revision history for this message
modder666 (modder666) wrote :

If there would be a way to add more than one PowersUnit entry for a building, breaking the current limitation of only one a side. Maybe even rewrite the logic a bit?

[Building]
PowersUnit=ROBO,GTNK

[ROBO]
PoweredUnit=yes ;enables the logic and needs additional tagwork to have it function properly
PoweredUnit.Building=Building ;just to attach units to buildings
PoweredUnit.NegativeStructure=Building2 ;disables the vehicle if it's built
PoweredUnit.ExtraPower=200 ;can be set to require extra power to keep units online, defaults to zero?

[GTNK]
PoweredUnit=yes ;enables logic
PoweredUnit.Building=Building2 ;same as before
PoweredUnit.PowerCost=-5 ;each unit costs this many power points

And anything else you could think of that might make the logic a bit more flexible. Notes adding onto this could be helpful.