Jump to content

What happened to Aura requiredTechnologies


Recommended Posts

I am trying to get a technology to enable an aura in the project @wowgetoffyourcellphone and I are working on.

I see in (https://code.wildfiregames.com/D962?id=3889#change-h6zNMxpe2m5x) that a technology could enable an aura.

However it looks like this no longer works:

https://code.wildfiregames.com/source/0ad/browse/ps/trunk/binaries/data/mods/public/globalscripts/Templates.js#:~:text=rP24290-,/**,},-rP18733

https://code.wildfiregames.com/D4093#:~:text=// Auras don't have,.reqs)

Am I missing something, or was this capability lost in the efforts to reorganize aura and technology simulation? Any ideas on what it would take to bring it back?

At the same time, we have got this which seems to indicate auras do support required technologies:

https://code.wildfiregames.com/source/0ad/browse/ps/trunk/binaries/data/mods/public/simulation/components/Auras.js#:~:text=Auras.prototype.CanApply,}%3B

Edited by real_tabasco_sauce
Link to comment
Share on other sites

<p class="warning">WARNING: there is a required technology</p>
<p class="warning">WARNING: there is a required technology</p>
<p class="warning">WARNING: false</p>
<p class="warning">WARNING: there is a required technology</p>
<p class="warning">WARNING: true</p>

Ok, so it does work, its just the tooltips that are not accounted for. So I think the solution at least for now is to just use some text to indicate that a tech is needed for the aura to take effect.

  • Like 1
Link to comment
Share on other sites

9 hours ago, real_tabasco_sauce said:

Haha no, I'd like to think that.

It was actually working after all, its just the Aura tooltip is there whether or not the aura is actually in effect.

Right, the aura is already there in the unit's UI, it's just activated by the tech. So, there's no "bug" here per se, the tooltip code needs extended or something.

  • Like 1
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...