Skip to content

GainChannels ​

Inherits: RefCounted

The names of the gain channels the toolkit asks about (StatsComponent.modify_gain(channel, amount)), so a stat can change what an entity gets without any system knowing which stat that is. A dev can use any other name from their own code. See docs/systems/entity-stats.md, section 24.2.

Constants ​

  • String EXPERIENCE = "experience" - Experience points the player receives
  • String CURRENCY = "currency" - Currency (gold) received from rewards: gold find
  • String LOOT_QUANTITY = "loot_quantity" - The quantity of every item stack of loot a killer gets (a fraction is a chance of one more)
  • String LOOT_RARITY = "loot_rarity" - Magic find: a percentage that raises the weight of the rarer-than-average entries of a loot table. Use "add" effects
  • String THREAT = "threat" - The threat a hit generates
  • String RESOURCE = "resource" - The resource an ability gains for its user (Rage, Combo ...)
  • String STATUS_DURATION = "status_duration" - The duration of a status effect put on this entity (tenacity: a percentage decrease shortens stuns)
  • String EFFECT_DURATION = "effect_duration" - The duration of the timed effects this entity puts on others or on itself (a buff or a debuff that lasts 20 % longer)
  • String SHIELD_STRENGTH = "shield_strength" - The size of the shields this entity puts up (Absorb Shield effects): shield power
  • String MULTISTRIKE_DAMAGE = "multistrike_damage" - The damage of the extra hits of a multistrike, as a percentage of the hit (the percentage of the damage effect, plus what the stats of the attacker add)
  • String RESOURCE_DRAIN_TAKEN = "resource_drain_taken" - How much resource others drain from this entity (a drain effect on its mana): a percentage decrease is resistance to mana burn