artifact

Vars | |
can_damage | TRUE if artifact can be damaged, FALSE otherwise. |
---|---|
damage_desc | Extra descriptor added to artifact analyzer results. |
damage_type | The damage type that can harm the artifact. |
min_force | Minimum force needed to cause damage. Only applicable when being melee'd. |
Procs | |
handle_damage | Handles damage the artifact receives. Sends a visual message when the aritfacts health value falls below certain points. Once the artifact has 0 or less health: Calls the effect(s) 'destroyed_effect()' proc. Sets the artifacts icon state to its 'destroyed' state. If the artifact has > 0 health, calls the effect(s) 'holder_damaged()' proc. This may or may not be removed. |
handle_destruction | Handles the 'destruction' of the artifact. Icon state is updated to the corresponding 'destroyed' state. Client mobs are 'flashed' for added effect. Effects are deleted so they can't be triggered again. 'destroyed' is set to TRUE to prevent re-triggering the destroyed event. |
set_damage_description | Adds additional scan data for the anomaly analyzer, detailing how the artifact can be damaged. |
setup_destructibility | Sets up the artifacts destructibility by doing the following: Gives a randomized health/maxhealth value. Removes damage types based on triggers. Ex. Artifact can't be damaged by hitting/shooting if an effect has the 'force' trigger. Note: If there are two effects and one has the 'force' trigger, and the other 'energy', the artifact will be invulnerable. This is to prevent damaging the artifact while trying to turn on its effects. Adds scan data used by the anomaly analyzer that details how to damage the artifact. |
Var Details
can_damage

TRUE if artifact can be damaged, FALSE otherwise.
damage_desc

Extra descriptor added to artifact analyzer results.
damage_type

The damage type that can harm the artifact.
min_force

Minimum force needed to cause damage. Only applicable when being melee'd.
Proc Details
handle_damage
Handles damage the artifact receives. Sends a visual message when the aritfacts health value falls below certain points. Once the artifact has 0 or less health: Calls the effect(s) 'destroyed_effect()' proc. Sets the artifacts icon state to its 'destroyed' state. If the artifact has > 0 health, calls the effect(s) 'holder_damaged()' proc. This may or may not be removed.
@param damage int The damage dealt.
handle_destruction
Handles the 'destruction' of the artifact. Icon state is updated to the corresponding 'destroyed' state. Client mobs are 'flashed' for added effect. Effects are deleted so they can't be triggered again. 'destroyed' is set to TRUE to prevent re-triggering the destroyed event.
set_damage_description
Adds additional scan data for the anomaly analyzer, detailing how the artifact can be damaged.
@param damage_type int Type of damage that the artifact can receive, FALSE or null means it is indestructible.
setup_destructibility
Sets up the artifacts destructibility by doing the following: Gives a randomized health/maxhealth value. Removes damage types based on triggers. Ex. Artifact can't be damaged by hitting/shooting if an effect has the 'force' trigger. Note: If there are two effects and one has the 'force' trigger, and the other 'energy', the artifact will be invulnerable. This is to prevent damaging the artifact while trying to turn on its effects. Adds scan data used by the anomaly analyzer that details how to damage the artifact.