User Tools

Site Tools


modding:xml:api_version

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revisionBoth sides next revision
modding:xml:api_version [2013/09/02 19:27] gpmmodding:xml:api_version [2013/09/02 19:43] gpm
Line 23: Line 23:
 === Dynamic Effects === === Dynamic Effects ===
  
 +
 +=== Enhancement Devices ===
 +In previous APIs the <EnhancerDevice> element was used to define a device that could enhance other devices (weapons, shields, etc.) In API version 14 there is a new element, called <EnhancementAbilities> that may be added to any device class (e.g., a <Shields> device).
 +
 +The <EnhancementAbilities> element may contain zero or more <Enhance> sub-elements, each of which defines an enhancement conferred on other devices. The <Enhance> sub-element has the following parameters:
 +
 +  * type: This is a user-defined string representing the type of enhancement. Only a single enhancement of each type will be applied.
 +  * criteria: This is an item criteria specifying the set of devices that will be enhanced by this device.
 +  * enhancement: This defines the enhancement applied to the set of devices that match the criteria. This is expressed as an enhancement code (see shpEnhanceItem) or as one of the following special codes:
 +    * "+hpBonus:{n};" where {n} is the percent bonus.
 +    * "+shield:{n};" where {n} is a level. This is equivalent to the shield:{n} damage modifier.
 +    * "+speed:{n};" where {n} is the percent value of the new weapon delay time relative to the current one. E.g., 75 = 75% of the original delay time.
  
 === New Functions === === New Functions ===
modding/xml/api_version.txt · Last modified: 2017/01/16 19:42 by xephyr