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. |
| 1 | As 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`. |
| 2 | The 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`. |