Jump to content

Capture Points Aura


Recommended Posts

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.Max

Would be good to make possible for aura and technologies.

Edited by wowgetoffyourcellphone
Link to comment
Share on other sites

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 by niektb
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...