Jump to content

Module:GenericData/doc

From The Deadlock Wiki

This is the documentation page for Module:GenericData

Overview[edit source]

Provides access to generic/miscellaneous data from Data:GenericData.json

Functions[edit source]

get_objective_param[edit source]

Provides access to "ObjectiveParams" data.

Parameters[edit source]

  • key - key to access

Examples[edit source]

{{#invoke:GenericData|get_objective_param|GoldPerOrb}}

0

get_rejuv_param[edit source]

Provides access to "RejuvParams" data.

Parameters[edit source]

  • key - key to access
  • midboss_deaths - (OPTIONAL) list index to access that represents how many times midboss has died, if the provided key's value is a list

Examples[edit source]

{{#invoke:GenericData|get_rejuv_param|RejuvinatorExpirationWarningTiming}}

30

{{#invoke:GenericData|get_rejuv_param|TrooperHealthMult|3}}

2.3

get_tiered_item_price[edit source]

Provides access to "ItemPricePerTier" data.

Parameters[edit source]

  • tier - list index to access that represents the tier of the item

Examples[edit source]

{{#invoke:GenericData|get_tiered_item_price|5}}

6400

get_lane_phase_gold_share_frac[edit source]

Provides access to "LanePhaseGoldShareFrac" data (soul distribution percentages when multiple players kill a lane trooper).

Parameters[edit source]

  • index - Number of players splitting the souls (1 = solo, 2 = duo, etc.)

Examples[edit source]

{{#invoke:GenericData|get_lane_phase_gold_share_frac|1}} 100%

{{#invoke:GenericData|get_lane_phase_gold_share_frac|2}} 65%

{{#invoke:GenericData|get_lane_phase_gold_share_frac|3}} 30%