Drain Weapons affecting one Power Plant only

Registered by AlexB

Instead of draining the entire power of the victim's house, only the affected power plant is shut down.

[TechnoType]Drain.Local= (boolean, defaults to no)
Whether this unit drains only the local power from its target building, or whether this building does not bring down the entire power of the owning player. If any of the draining unit or the building drained have this set to yes, only the local power is drained. If both have this set to no, then the victim player's entire power is drained.

[TechnoType]Drain.Amount= (integer, defaults to 0)
The amount of power being drained from a power plant of the victim player. Requires Drain.Local on either the draining unit or the drained building.

If positive, this is the maximum amount of power drained. If negative, this is the minimum amount of power drained. The default value is the victim buildings Power=, then the drainer's Drain.Amount is applied, and finally the drained building's Drain.Amount.

For example: draining a Power Plant with Power=500 and Drain.Amount=0 using a Floating Disk. With Drain.Amount=-1000 on the disk, it will drain 1000, with Drain.Amount=0 it will drain the 500 the building produces, and with Drain.Amount=200 on the disk it will drain 200.

If the building would have Drain.Amount=-600, it would never drain less than 600. If the building had Drain.Amount=800, it would never drain more than 800.

Blueprint information

Status:
Complete
Approver:
AlexB
Priority:
Medium
Drafter:
AlexB
Direction:
Approved
Assignee:
AlexB
Definition:
Approved
Series goal:
None
Implementation:
Implemented
Milestone target:
milestone icon 0.6
Started by
AlexB
Completed by
AlexB

Related branches

Sprints

Whiteboard

It would be interesting if this worked like StarCraft 2 pylons. Waitin gor some Ares' developer to reply -Parasite03

No, that's a totally different feature. It was requested long ago (bug 895557), but was chosen not to be implemented. -AlexB

As of 14.81.1107, all those tags, both on the attacker and victim structure, appear to work as they should (at least as afar as vs AI games are concerned). Didn't test vs other player, nor did the AI use it against me. Global power drain still works fine. - mevitar

(?)

Work Items

This blueprint contains Public information 
Everyone can see this information.

Subscribers

No subscribers.