Changes between Initial Version and Version 1 of Ticket #3769, comment 14


Ignore:
Timestamp:
Feb 14, 2016, 5:34:55 PM (8 years ago)
Author:
fatherbushido

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #3769, comment 14

    initial v1  
    1 In GetResourcesCostsFromTemplate, i set owner as an optional argument as suggest Sanderd17.
    2 For future reader :
    3 It needs more investigations, but we guess that perhaps GetResourceCosts and GetResourcesCostsFromTemplate could be merged.
     1As discussed in :[http://irclogs.wildfiregames.com/2016-02-14-QuakeNet-%230ad-dev.log irc], it's better to get Costs from templates instead of entity. So we edit the previous `GetResourceCosts`.
     2The new function has an optional owner argument. It now gets costs from templates after modifications from aura and technologies with `ApplyValueModificationsToTemplate` instead of getting costs from entity with `ApplyValueModificationsToEntity`.