IDamageDistribution - yeelp/Distinct-Damage-Descriptions GitHub Wiki

An IDamageDistribution is a CraftTweaker representation of DDD's Damage Distributution.

Importing the package

It might be required for you to import the package if you encounter any issues (like casting an Array), so better be safe than sorry and add the import

import mods.ddd.distributions.IDamageDistribution;

Extending

IDamageDistribution extends IDistribution. This means all functions available to IDistributions are available to IDamageDistributions.

How to Get One

Currently, the only way to get an IDamageDistribution is to call the distribution ZenGetter on an IDDDDamageType.

<dddtype:poison>.distribution;

Methods

ZenMethods

IDDDBaseMap distribute(float);

  • Distributes a float representing the damage across the weighted categories represented in this IDamageDistribution
  • Returns an IDDDBaseMap containing the result of the distribution.