Changes between Version 1 and Version 2 of Ticket #5632


Ignore:
Timestamp:
Nov 2, 2019, 5:35:01 PM (5 years ago)
Author:
elexis
Comment:

One can modify resource trickles:

ResourceTrickle.prototype.OnValueModification = function(msg)
{
	if (msg.component != "ResourceTrickle")
		return;

	this.ComputeRates();
};

ResourceTrickle.prototype.ComputeRates = function()
{
	this.rates = {};
	for (let resource in this.template.Rates)
		this.rates[resource] = ApplyValueModificationsToEntity("ResourceTrickle/Rates/"+resource, +this.template.Rates[resource], this.entity);
};

From simulation/data/auras/teambonuses/ptol_player_teambonus.json:

	"modifications": [
		{ "value": "ResourceTrickle/Rates/food", "add": 1.0 }
	],

But you mean intervals as noted on IRC.

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #5632

    • Property Summary Allow auras and technologies to modify resource trickle.Allow auras and technologies to modify resource trickle intervals
  • Ticket #5632 – Description

    v1 v2  
    1 Reported by Polakrity on Phab:D2400 currently one cannot modify resource trickles.
     1Reported by Polakrity on Phab:D2400 currently one cannot modify resource trickle intervals.