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

heretic

The heretic antagonist itself.

Vars

all_sac_targetsList of all sacrifice target's names, used for end of round report
ascendedWhether we've ascended! (Completed one of the final rituals)
blacklisted_rune_turfsA blacklist of turfs we cannot scribe on.
drawing_runeWhether we're drawing a rune or not
give_objectivesWhether we give this antagonist objectives on gain.
heretic_pathThe path our heretic has chosen. Mostly used for flavor.
high_value_sacrificesA list of TOTAL how many high value sacrifices completed. (Heads of staff)
knowledge_pointsA sum of how many knowledge points this heretic CURRENTLY has. Used to research.
living_heart_organ_slotThe organ slot we place our Living Heart in.
passive_gain_timerThe time between gaining influence passively. The heretic gain +1 knowledge points every this duration of time.
path_to_ui_colorStatic list of what each path converts to in the UI (colors are TGUI colors)
researched_knowledgeAssoc list of [typepath] = [knowledge instance]. A list of all knowledge this heretic's reserached.
rust_strengthControls what types of turf we can spread rust to, increases as we unlock more powerful rust abilites
sac_targetsLazy assoc list of [refs to humans] to [image previews of the human]. Humans that we have as sacrifice targets.
scribing_toolsA static typecache of all tools we can scribe with.
total_sacrificesA list of TOTAL how many sacrifices completed. (Includes high value sacrifices)

Procs

add_marked_as_targetAdmin proc for adding a marked mob to a heretic's sac list.
add_sacrifice_targetAdd [target] as a sacrifice target for the heretic. Generates a preview image and associates it with a weakref of the mob.
admin_change_pointsAdmin proc for easily adding / removing knowledge points.
admin_give_focusAdmin proc for giving a heretic a focus.
after_fully_healedSignal proc for COMSIG_LIVING_POST_FULLY_HEAL, Gives the heretic aliving heart on aheal or organ refresh
can_ascendChecks to see if our heretic can ccurrently ascend.
check_mansus_grasp_offhandCallback to check that the user's still got their Mansus Grasp out when drawing a rune.
draw_runeThe actual process of drawing a rune.
forge_primary_objectivesCreate our objectives for our heretic.
gain_knowledgeLearns the passed [typepath] of knowledge, creating a knowledge datum and adding it to our researched knowledge list.
get_knowledgeCheck if the wanted type-path is in the list of research knowledge.
get_researchable_knowledgeGet a list of all knowledge TYPEPATHS that we can currently research.
get_ritualsGet a list of all rituals this heretic can invoke on a rune. Iterates over all of our knowledge and, if we can invoke it, adds it to our list.
give_living_heartAdmin proc for giving a heretic a Living Heart easily.
has_living_heartHelper to determine if a Heretic
increase_rust_strengthMakes our heretic more able to rust things. if side_path_only is set to TRUE, this function does nothing for rust heretics.
on_target_deletedSignal proc for COMSIG_QDELETING registered on sac targets if sacrifice targets are deleted (gibbed, dusted, whatever), free their slot and reference
passive_influence_gainIncrements knowledge by one. Used in callbacks for passive gain over time.
remove_sacrifice_targetRemoves [target] from the heretic's sacrifice list. Returns FALSE if no one was removed, TRUE otherwise
remove_targetAdmin proc for removing a mob from a heretic's sac list.
try_draw_runeAttempt to draw a rune on [target_turf].

Var Details

all_sac_targets

List of all sacrifice target's names, used for end of round report

ascended

Whether we've ascended! (Completed one of the final rituals)

blacklisted_rune_turfs

A blacklist of turfs we cannot scribe on.

drawing_rune

Whether we're drawing a rune or not

give_objectives

Whether we give this antagonist objectives on gain.

heretic_path

The path our heretic has chosen. Mostly used for flavor.

high_value_sacrifices

A list of TOTAL how many high value sacrifices completed. (Heads of staff)

knowledge_points

A sum of how many knowledge points this heretic CURRENTLY has. Used to research.

living_heart_organ_slot

The organ slot we place our Living Heart in.

passive_gain_timer

The time between gaining influence passively. The heretic gain +1 knowledge points every this duration of time.

path_to_ui_color

Static list of what each path converts to in the UI (colors are TGUI colors)

researched_knowledge

Assoc list of [typepath] = [knowledge instance]. A list of all knowledge this heretic's reserached.

rust_strength

Controls what types of turf we can spread rust to, increases as we unlock more powerful rust abilites

sac_targets

Lazy assoc list of [refs to humans] to [image previews of the human]. Humans that we have as sacrifice targets.

scribing_tools

A static typecache of all tools we can scribe with.

total_sacrifices

A list of TOTAL how many sacrifices completed. (Includes high value sacrifices)

Proc Details

add_marked_as_target

Admin proc for adding a marked mob to a heretic's sac list.

add_sacrifice_target

Add [target] as a sacrifice target for the heretic. Generates a preview image and associates it with a weakref of the mob.

admin_change_points

Admin proc for easily adding / removing knowledge points.

admin_give_focus

Admin proc for giving a heretic a focus.

after_fully_healed

Signal proc for COMSIG_LIVING_POST_FULLY_HEAL, Gives the heretic aliving heart on aheal or organ refresh

can_ascend

Checks to see if our heretic can ccurrently ascend.

Returns FALSE if not all of our objectives are complete, or TRUE otherwise.

check_mansus_grasp_offhand

Callback to check that the user's still got their Mansus Grasp out when drawing a rune.

Arguments

draw_rune

The actual process of drawing a rune.

Arguments

forge_primary_objectives

Create our objectives for our heretic.

gain_knowledge

Learns the passed [typepath] of knowledge, creating a knowledge datum and adding it to our researched knowledge list.

Returns TRUE if the knowledge was added successfully. FALSE otherwise.

get_knowledge

Check if the wanted type-path is in the list of research knowledge.

get_researchable_knowledge

Get a list of all knowledge TYPEPATHS that we can currently research.

get_rituals

Get a list of all rituals this heretic can invoke on a rune. Iterates over all of our knowledge and, if we can invoke it, adds it to our list.

Returns an associated list of [knowledge name] to [knowledge datum] sorted by knowledge priority.

give_living_heart

Admin proc for giving a heretic a Living Heart easily.

has_living_heart

Helper to determine if a Heretic

Returns HERETIC_NO_HEART_ORGAN if they have no heart (organ) at all, Returns HERETIC_NO_LIVING_HEART if they have a heart (organ) but it's not a living one, and returns HERETIC_HAS_LIVING_HEART if they have a living heart

increase_rust_strength

Makes our heretic more able to rust things. if side_path_only is set to TRUE, this function does nothing for rust heretics.

on_target_deleted

Signal proc for COMSIG_QDELETING registered on sac targets if sacrifice targets are deleted (gibbed, dusted, whatever), free their slot and reference

passive_influence_gain

Increments knowledge by one. Used in callbacks for passive gain over time.

remove_sacrifice_target

Removes [target] from the heretic's sacrifice list. Returns FALSE if no one was removed, TRUE otherwise

remove_target

Admin proc for removing a mob from a heretic's sac list.

try_draw_rune

Attempt to draw a rune on [target_turf].

Arguments