forked from mirrors/0ad
722578fdcd
Stop listening to OnTrainingFinished and OnStructureBuild messages but use OnOwnershipChanged messages. This fixes the defeat when only promoted/upgrades/regi-hero units remain. Add foundations to the conquest lists and make them visible on the minimap. Patch By: temple Differential Revision: https://code.wildfiregames.com/D1022 This was SVN commit r20471.
6 lines
230 B
JavaScript
6 lines
230 B
JavaScript
{
|
|
let cmpTrigger = Engine.QueryInterface(SYSTEM_ENTITY, IID_Trigger);
|
|
cmpTrigger.conquestClassFilter = "Structure";
|
|
cmpTrigger.conquestDefeatReason = markForTranslation("%(player)s has been defeated (lost all structures).");
|
|
}
|