Prerequisite Groups to accept any unit type

Registered by Renegade on 2011-12-04

Linked to Issue 265 (creation of additional Prerequisite Groups)

Would be nice if the Prerequisite Groups (PrerequisitePower=, etc) could take any BuildingType or VehicleType (any unit type would be better but VehicleTypes are the most important because you can have a vehicle that deploys into a building and are considered by the player to be one and the same)

This, of course, would have the side-effect of doing away with the need for PrerequisiteProcAlternate (although the existence of this flag in itself suggests that allowing Prerequisite Groups to take VehicleTypes is a lot harder to implement).

Blueprint information

Status:
Complete
Approver:
AlexB
Priority:
Low
Drafter:
AlexB
Direction:
Approved
Assignee:
AlexB
Definition:
Approved
Series goal:
Accepted for 0.b
Implementation:
Implemented
Milestone target:
milestone icon 0.b
Started by
AlexB on 2016-01-12
Completed by
AlexB on 2016-03-15

Related branches

Sprints

Whiteboard

[General]PrerequisiteXAlternate= (list of TechnoTypes)
A list of TechnoTypes that satisfy this requirement. X is the key from GenericPrerequisites, first char upper case, lower case otherwise. Supports more than one item.

Because of design limitations, the General section has to be used, as alternate names under GenericPrerequisites would create a new group instead.

The tag mentioned above now does not only work with UnitTypes. It works for InfantryTypes or AircraftTypes as well.

BuildingTypes should not be used, as there's no support for building upgrades, and also another counter is used to check whether the object is present, so the behavior would be different.

Whenever units change owner, are killed, put, or discovered, the construction options will be rechecked. Units in transporters count as present. Attacking a unit with a temporal weapon does not recheck anything (consistent with temporal-attacking buildings like GATECH).

----
Confired here: http://www.ppmforums.com/viewtopic.php?p=540155#540155

(?)

Work Items

This blueprint contains Public information 
Everyone can see this information.

Subscribers

No subscribers.