Allow units Aircraft Carrier style attacks to gain veterancy

Registered by Renegade

In stock Yuri's Revenge, any unit that attacks like an Aircraft Carrier (uses a Spawner=yes weapon, launches planes against a target, etc) cannot gain veterancy as the experience for killing units goes to the individual planes, rather than the Carrier.

This should be changed so that
1: Unit A's spawned aircraft kills Unit B- the experience for the kill goes to Unit A, rather than Unit A's spawned aircraft.
2: The veterancy of Unit A's spawned aircraft is inherited from the veterancy of Unit A.

Blueprint information

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

Related branches

Sprints

Whiteboard

Implemented as:
Spawners can now get experience from their spawns' kills. For this to work, both the spawn and the spawner must be Trainable=yes. The following two tags go on the unit that spawns, not the spawns themselves.

[TechnoType]Experience.SpawnOwnerModifier= (float, defaults to 0%)
The experience the unit owning a spawn gains when the spawn kills a unit. This tag has to be set on the spawner, not the spawn.

[TechnoType]Experience.SpawnModifier= (float, defaults to 100%)
The experience the a spawn of this unit gains when the spawn kills a unit. This tag has to be set on the spawner, not the spawn.

If you want to split the experience between spawner and spawns, you can make these values sum up to 100%. This is not required, though.

If a spawner is mind-controlled, both the spawner's and the spawn's experience is multiplied by Experience.MindControlVictimModifier.

(?)

Work Items

This blueprint contains Public information 
Everyone can see this information.

Subscribers

No subscribers.