User Tools

Site Tools


modding:xml:repairerdevice

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

modding/xml/repairerdevice.txt · Last modified: 2017/01/31 22:32 by 0xabcdef