wowgetoffyourcellphone Posted June 5, 2015 Report Share Posted June 5, 2015 (edited) Want to give a capture points aura to Temple of Vesta. This is code: <Auras> <Aura1> <Type>range</Type> <Radius>60</Radius> <Affects>Structure</Affects> <Modifications> <Health.Max> <Multiply>1.25</Multiply> </Health.Max> </Modifications> <AuraName>"Eternal Fire" Aura</AuraName> <AuraDescription>Structures +25% Health within 60 meters of the Temple of Vesta.</AuraDescription> </Aura1> <Fealty> <Type>range</Type> <Radius>60</Radius> <Affects>Structure</Affects> <Modifications> <Capturable.CapturePoints> <Multiply>2</Multiply> </Capturable.CapturePoints> </Modifications> <AuraName>"Fealty" Aura</AuraName> <AuraDescription>Structures +100% Capture Points within 60 meters of the Temple of Vesta.</AuraDescription> </Fealty> </Auras>The capture points aura does not work. Error:WARNING: JavaScript warning: simulation/components/Capturable.js line 232 reference to undefined property this.template.MaxWould be good to make possible for aura and technologies. Edited June 5, 2015 by wowgetoffyourcellphone Quote Link to comment Share on other sites More sharing options...
niektb Posted June 5, 2015 Report Share Posted June 5, 2015 (edited) The warning happens here:this.maxCp = ApplyValueModificationsToEntity("Capturable/Max", +this.template.Max, this.entity);But when looking at the Schema it seems that there is no Max property:Capturable.prototype.Schema = "<element name='CapturePoints' a:help='Maximum capture points'>" + "<ref name='positiveDecimal'/>" + "</element>" + "<element name='RegenRate' a:help='Number of capture are regenerated per second in favour of the owner'>" + "<ref name='nonNegativeDecimal'/>" + "</element>" + "<element name='GarrisonRegenRate' a:help='Number of capture are regenerated per second and per garrisoned unit in favour of the owner'>" + "<ref name='nonNegativeDecimal'/>" + "</element>";So we talk about a bug here rather than a missing feature. I think it should work when you replace Max with CapturePoints so that line 232 looks like this (haven't tested it though):this.maxCp = ApplyValueModificationsToEntity("Capturable/CapturePoints", +this.template.CapturePoints, this.entity); Edited June 5, 2015 by niektb Quote Link to comment Share on other sites More sharing options...
sanderd17 Posted June 5, 2015 Report Share Posted June 5, 2015 Should be fixed now. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.