Module:NoitaUtils/doc

This module exists to support functionality of various templates used on the wiki.

Usage
Invoke functions from this module like so:

getEnemyGoldValue
Calculates the amount of gold an enemy will drop based on their in-game HP values.

Parameters

 * - the numeric HP value of the enemy in-game.

Example
Enemy HP: 100; Gold:

getUIDamageValue
Calculates the UI value for damage from the internal damage numbers in the XML / lua.

Parameters

 * - the internal numeric damage value from the lua/xml file.

Example
Internal Damage: 1.0; UI Damage:

getUIHealthValue
Calculates the UI value for HP from the internal HP values in the XML / lua.

Parameters

 * - the internal numeric hp value from the lua/xml file.

Example
Internal HP: 1.7; UI HP:

getTimeValue
Calculates the time value in seconds from an input value in frames.

Parameters

 * - the internal numeric frames value from the lua/xml file.

Example
Time in frames: 1600; Time in seconds: