/tg/ Station 13 - Modules - TypesProc Details

mob_damage

Tests to make sure mob damage procs are working correctly

Procs

apply_damageApply a specific amount of damage to the mob using adjustBruteLoss(), adjustToxLoss(), etc.
set_damageSet a specific amount of damage for the mob using setBruteLoss(), setToxLoss(), etc.
test_apply_damageTest whether the adjust damage procs return the correct values and that the mob's health is the expected value afterwards.
test_biotypesTesting biotypes
test_godmodeTests damage procs with godmode on
test_nobreathTesting oxyloss with the TRAIT_NOBREATH
test_ordered_healingTesting heal_ordered_damage()
test_sanity_complexSanity tests damage and healing using the more complex procs like take_overall_damage(), heal_overall_damage(), etc
test_sanity_simpleSanity tests damage and healing using adjustToxLoss, adjustBruteLoss, etc
test_set_damageTest whether the set damage procs return the correct values and that the mob's health is the expected value afterwards.
test_toxintraitsTesting toxloss with TRAIT_TOXINLOVER and TRAIT_TOXIMMUNE
verify_damageCheck that the mob has a specific amount of damage

Proc Details

apply_damage

Apply a specific amount of damage to the mob using adjustBruteLoss(), adjustToxLoss(), etc.

By default this applies damage of every type to the mob, and checks that the damage procs return the value Arguments:

set_damage

Set a specific amount of damage for the mob using setBruteLoss(), setToxLoss(), etc.

By default this sets every type of damage to for the mob, and checks that the damage procs return the value Arguments:

test_apply_damage

Test whether the adjust damage procs return the correct values and that the mob's health is the expected value afterwards.

By default this calls apply_damage(amount) followed by verify_damage(amount_after) and returns TRUE if both succeeded. amount_after defaults to the mob's current stamina loss but can be overridden as needed.

Arguments:

test_biotypes

Testing biotypes

test_godmode

Tests damage procs with godmode on

test_nobreath

Testing oxyloss with the TRAIT_NOBREATH

test_ordered_healing

Testing heal_ordered_damage()

test_sanity_complex

Sanity tests damage and healing using the more complex procs like take_overall_damage(), heal_overall_damage(), etc

test_sanity_simple

Sanity tests damage and healing using adjustToxLoss, adjustBruteLoss, etc

test_set_damage

Test whether the set damage procs return the correct values and that the mob's health is the expected value afterwards.

By default this calls set_damage(amount) followed by verify_damage(amount_after) and returns TRUE if both succeeded. amount_after defaults to the mob's current stamina loss but can be overridden as needed.

Arguments:

test_toxintraits

Testing toxloss with TRAIT_TOXINLOVER and TRAIT_TOXIMMUNE

verify_damage

Check that the mob has a specific amount of damage

By default this checks that the mob has of every type of damage. Arguments: