User Tools

Site Tools


modding:xml:repairerdevice

Differences

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

Link to this comparison view

modding:xml:repairerdevice [2017/01/31 22:32] (current)
0xabcdef created
Line 1: Line 1:
 +=====RepairerDevice=====
 +A RepairerDevice is a miscellaneous device that repairs the armor on a ship. Repairing occurs every 10 ticks, or 3 times per second. The rate at which the device repairs an armor segment depends on that segment's level.
  
 +=====Basic Attributes=====
 +**powerUse=** Power consumption in (1/10 MW) per tick. Defaults to 0
 +
 +**regen=** A list of values separated by commas. Each value corresponds to an armor level (starting at level 1) and represents the HP to repair every 180 ticks (6 seconds) for armor at that level.
 +
 +**repairCycle=** A list of values separated by commas. Each value corresponds to an armor level (starting at level 1) and represents the HP to repair every tick for armor at that level.
 +
 +=====Events=====
 +====GetArmorRegen====
 +Use this event to customize power use and regeneration for every armor segment. Returns a struct containing the fields **'regen** and **'powerUse**
 +  * **gSource** is the object on which the device is installed
 +  * **gItem** is the itemStruct for the device
 +  * **aArmorSeg** is the number of the armor segment being repaired
 +  * **aArmorType** is the UNID of the armor segment being repaired
 +
 +=====References=====
 +  * [[https://github.com/kronosaur/Mammoth/blob/f90bc6c4d6fa4f3c3112ece11cf0a17255118e4e/TSE/CRepairerClass.cpp | CRepairerClass.cpp]]
 +  * [[https://github.com/kronosaur/Mammoth/blob/4a4cd34841761dda14a3cc33b46871b59e45c956/TSE/CRegenDesc.cpp | CRegenDesc.cpp]]
modding/xml/repairerdevice.txt ยท Last modified: 2017/01/31 22:32 by 0xabcdef