Shiptest 13 - Modules - TypesVar Details - Proc Details

bodypart

Vars

bodypart_disabledIf disabled, limb is as good as missing.
bodytypeIf you'd like to know if a bodypart is organic, please use is_organic_limb()
can_be_disabledControls whether bodypart_disabled makes sense or not for this limb.
disable_thresholdMultiplied by max_damage it returns the threshold which defines a limb being disabled or not. From 0 to 1.
last_maxedSo we know if we need to scream if this limb hits max damage

Procs

deconstructThis is the MEAT of limb icon code
on_owner_easylimbwound_trait_gainCalled when TRAIT_EASYLIMBDISABLE is added to the owner.
on_owner_easylimbwound_trait_lossCalled when TRAIT_EASYLIMBDISABLE is removed from the owner.
on_owner_nolimbdisable_trait_gainCalled when TRAIT_NOLIMBDISABLE is added to the owner.
on_owner_nolimbdisable_trait_lossCalled when TRAIT_NOLIMBDISABLE is removed from the owner.
on_paralysis_trait_gainCalled when TRAIT_PARALYSIS is added to the limb.
on_paralysis_trait_lossCalled when TRAIT_PARALYSIS is removed from the limb.
set_brute_damProc to hook behavior associated to the change of the brute_dam variable's value.
set_burn_damProc to hook behavior associated to the change of the burn_dam variable's value.
set_can_be_disabledProc to change the value of the can_be_disabled variable and react to the event of its change.
set_disabledProc to change the value of the disabled variable and react to the event of its change.
set_ownerProc to change the value of the owner variable and react to the event of its change.
set_stamina_damProc to hook behavior associated to the change of the stamina_dam variable's value.

Var Details

bodypart_disabled

If disabled, limb is as good as missing.

bodytype

If you'd like to know if a bodypart is organic, please use is_organic_limb()

can_be_disabled

Controls whether bodypart_disabled makes sense or not for this limb.

disable_threshold

Multiplied by max_damage it returns the threshold which defines a limb being disabled or not. From 0 to 1.

last_maxed

So we know if we need to scream if this limb hits max damage

Proc Details

deconstruct

This is the MEAT of limb icon code

on_owner_easylimbwound_trait_gain

Called when TRAIT_EASYLIMBDISABLE is added to the owner.

on_owner_easylimbwound_trait_loss

Called when TRAIT_EASYLIMBDISABLE is removed from the owner.

on_owner_nolimbdisable_trait_gain

Called when TRAIT_NOLIMBDISABLE is added to the owner.

on_owner_nolimbdisable_trait_loss

Called when TRAIT_NOLIMBDISABLE is removed from the owner.

on_paralysis_trait_gain

Called when TRAIT_PARALYSIS is added to the limb.

on_paralysis_trait_loss

Called when TRAIT_PARALYSIS is removed from the limb.

set_brute_dam

Proc to hook behavior associated to the change of the brute_dam variable's value.

set_burn_dam

Proc to hook behavior associated to the change of the burn_dam variable's value.

set_can_be_disabled

Proc to change the value of the can_be_disabled variable and react to the event of its change.

set_disabled

Proc to change the value of the disabled variable and react to the event of its change.

set_owner

Proc to change the value of the owner variable and react to the event of its change.

set_stamina_dam

Proc to hook behavior associated to the change of the stamina_dam variable's value.