/tg/ Station 13 - Modules - TypesVar Details - Proc Details

basic

Simple animals 2.0, This time, let's really try to keep it simple. This basetype should purely be used as a base-level for implementing simplified behaviours for things such as damage and attacks. Everything else should be in components or AI behaviours.

Vars

armour_penetrationHow much armour they ignore, as a flat reduction from the targets armour value.
attack_soundSound played when the critter attacks.
attack_verb_continuousBasic mob's own attacks verbs, Attacking verb in present continuous tense.
attack_verb_simpleAttacking verb in present simple tense.
attack_vis_effectOverride for the visual attack effect shown on 'do_attack_animation()'.
attacked_soundPlayed when someone punches the creature.
bare_wound_bonusHow much bare wounding power it has
damage_coeff1 for full damage, 0 for none, -1 for 1:1 heal from that source.
environment_smashVariable maintained for compatibility with attack_animal procs until simple animals can be refactored away. Use element instead of setting manually.
friendly_verb_continuousAttacking, but without damage, verb in present continuous tense.
friendly_verb_simpleAttacking, but without damage, verb in present simple tense.
gold_core_spawnableIf the mob can be spawned with a gold slime core. HOSTILE_SPAWN are spawned with plasma, FRIENDLY_SPAWN are spawned with blood.
habitable_atmosLeaving something at 0 means it's off - has no maximum.
icon_deadIcon when the animal is dead. Don't use animated icons for this.
icon_gibWe only try to show a gibbing animation if this exists.
icon_living/////THIS SECTION COULD BE ITS OWN ELEMENT Icon to use
maximum_survivable_temperatureMaximal body temperature without receiving damage
melee_attack_cooldownHow often can you melee attack?
melee_damage_typeDamage type of a simple mob's melee attack, should it do damage.
minimum_survivable_temperatureMinimal body temperature without receiving damage
obj_damagehow much damage this basic mob does to objects, if any.
response_disarm_continuousDisarm-intent verb in present continuous tense.
response_disarm_simpleDisarm-intent verb in present simple tense.
response_harm_continuousHarm-intent verb in present continuous tense.
response_harm_simpleHarm-intent verb in present simple tense.
response_help_continuousWhen someone interacts with the simple animal. Help-intent verb in present continuous tense.
response_help_simpleHelp-intent verb in present simple tense.
sentience_typeSentience type, for slime potions. SHOULD BE AN ELEMENT BUT I DONT CARE ABOUT IT FOR NOW
sharpnessIf the attacks from this are sharp
speak_emoteVerbs used for speaking e.g. "Says" or "Chitters". This can be elementized
speedDefines how fast the basic mob can move. This is not a multiplier
stamina_recoveryHow much stamina the mob recovers per second
unsuitable_atmos_damageThis damage is taken when atmos doesn't fit all the requirements above. Set to 0 to avoid adding the atmos_requirements element.
unsuitable_cold_damageThis damage is taken when the body temp is too cold. Set both this and unsuitable_heat_damage to 0 to avoid adding the body_temp_sensitive element.
unsuitable_heat_damageThis damage is taken when the body temp is too hot. Set both this and unsuitable_cold_damage to 0 to avoid adding the body_temp_sensitive element.
wound_bonusHow much wounding power it has

Procs

adjust_healthAdjusts the health of a simple mob by a set amount
apply_atmos_requirementsEnsures this mob can take atmospheric damage if it's supposed to
apply_temperature_requirementsEnsures this mob can take temperature damage if it's supposed to
look_aliveApply the appearance and properties this mob has when it is alive
look_deadApply the appearance and properties this mob has when it dies This is called by the mob pretending to be dead too so don't put loot drops in here or something
on_ssair_initWe need to wait for SSair to be initialized before we can check atmos/temp requirements.
update_staminaUpdates movement speed based on stamina loss

Var Details

armour_penetration

How much armour they ignore, as a flat reduction from the targets armour value.

attack_sound

Sound played when the critter attacks.

attack_verb_continuous

Basic mob's own attacks verbs, Attacking verb in present continuous tense.

attack_verb_simple

Attacking verb in present simple tense.

attack_vis_effect

Override for the visual attack effect shown on 'do_attack_animation()'.

attacked_sound

Played when someone punches the creature.

bare_wound_bonus

How much bare wounding power it has

damage_coeff

1 for full damage, 0 for none, -1 for 1:1 heal from that source.

environment_smash

Variable maintained for compatibility with attack_animal procs until simple animals can be refactored away. Use element instead of setting manually.

friendly_verb_continuous

Attacking, but without damage, verb in present continuous tense.

friendly_verb_simple

Attacking, but without damage, verb in present simple tense.

gold_core_spawnable

If the mob can be spawned with a gold slime core. HOSTILE_SPAWN are spawned with plasma, FRIENDLY_SPAWN are spawned with blood.

habitable_atmos

Leaving something at 0 means it's off - has no maximum.

icon_dead

Icon when the animal is dead. Don't use animated icons for this.

icon_gib

We only try to show a gibbing animation if this exists.

icon_living

/////THIS SECTION COULD BE ITS OWN ELEMENT Icon to use

maximum_survivable_temperature

Maximal body temperature without receiving damage

melee_attack_cooldown

How often can you melee attack?

melee_damage_type

Damage type of a simple mob's melee attack, should it do damage.

minimum_survivable_temperature

Minimal body temperature without receiving damage

obj_damage

how much damage this basic mob does to objects, if any.

response_disarm_continuous

Disarm-intent verb in present continuous tense.

response_disarm_simple

Disarm-intent verb in present simple tense.

response_harm_continuous

Harm-intent verb in present continuous tense.

response_harm_simple

Harm-intent verb in present simple tense.

response_help_continuous

When someone interacts with the simple animal. Help-intent verb in present continuous tense.

response_help_simple

Help-intent verb in present simple tense.

sentience_type

Sentience type, for slime potions. SHOULD BE AN ELEMENT BUT I DONT CARE ABOUT IT FOR NOW

sharpness

If the attacks from this are sharp

speak_emote

Verbs used for speaking e.g. "Says" or "Chitters". This can be elementized

speed

Defines how fast the basic mob can move. This is not a multiplier

stamina_recovery

How much stamina the mob recovers per second

unsuitable_atmos_damage

This damage is taken when atmos doesn't fit all the requirements above. Set to 0 to avoid adding the atmos_requirements element.

unsuitable_cold_damage

This damage is taken when the body temp is too cold. Set both this and unsuitable_heat_damage to 0 to avoid adding the body_temp_sensitive element.

unsuitable_heat_damage

This damage is taken when the body temp is too hot. Set both this and unsuitable_cold_damage to 0 to avoid adding the body_temp_sensitive element.

wound_bonus

How much wounding power it has

Proc Details

adjust_health

Adjusts the health of a simple mob by a set amount

Arguments:

apply_atmos_requirements

Ensures this mob can take atmospheric damage if it's supposed to

apply_temperature_requirements

Ensures this mob can take temperature damage if it's supposed to

look_alive

Apply the appearance and properties this mob has when it is alive

look_dead

Apply the appearance and properties this mob has when it dies This is called by the mob pretending to be dead too so don't put loot drops in here or something

on_ssair_init

We need to wait for SSair to be initialized before we can check atmos/temp requirements.

update_stamina

Updates movement speed based on stamina loss