SS1984 - Modules - TypesVar Details - Proc Details

Stack item heal element

This element allows the carbon mob to get healed, or heal themselves, using specific stack items. Doesn't handle subtypes of stack items, that don't have the same merge_type as passed type. Also shows that we can heal using some material on self examine. Healing is identical to gauze/ointment.

Vars

cached_materials_strCached string for on_self_examine proc
heal_amountHow much do we heal from said material
heal_delayHow long does it take to heal ourselves
material_amountHow much of the material does it take to heal
material_listWhat materials do we heal from

Procs

check_for_valid_type
heal_checks
heal_messageShows healing message for golem repair
list_checkProc used to check the list for correct types
on_attackbyMain signal proc. Signal is called in atom/proc/attackby()
on_self_examineSignal proc. Shows on self examine that we can get healed by certain materials
pre_heal_checks
self_stack_healAsync proc used for delaying healing ourselves (because of endlag proc in do_after)
stack_children_heal
stack_heal

Var Details

cached_materials_str

Cached string for on_self_examine proc

heal_amount

How much do we heal from said material

heal_delay

How long does it take to heal ourselves

material_amount

How much of the material does it take to heal

material_list

What materials do we heal from

Proc Details

check_for_valid_type

Proc used to check if our item merge_type variable type exists in material_list

Why? Because I want this element to check for strict types, BUT we have types like ../metal/fifty which is a separate type, which would fail a strict type check for ../metal. Checking for merge_type fixes that.

heal_checks

Proc to check heal requirements.

Contains checks, that tell us, whether our new attack was successful or not.

heal_message

Shows healing message for golem repair

Varies depending on if we are healing ourselves, or someone else

list_check

Proc used to check the list for correct types

on_attackby

Main signal proc. Signal is called in atom/proc/attackby()

on_self_examine

Signal proc. Shows on self examine that we can get healed by certain materials

pre_heal_checks

Proc to check heal requirements.

Contains checks, that tell us, whether we should or shouldn't cancel the attack chain.

self_stack_heal

Async proc used for delaying healing ourselves (because of endlag proc in do_after)

stack_children_heal

Subproc of stack_heal proc

Heals bodypart's children using remaining medication. Returns TRUE if any bodypart was successfully healed.

stack_heal

The material_heal element heal proc

Basically a copy of gauze/ointment mechanics, but heals both brute and burn damages.