Daedalus Dock - Modules - TypesVar Details - Proc Details

addiction

base class for addiction, handles when you become addicted and what the effects of that are. By default you become addicted when you hit a certain threshold, and stop being addicted once you go below another one.

Vars

addiction_gain_thresholdHigher threshold, when you start being addicted
addiction_loss_per_stageRates at which you lose addiction (in units/second) if you are not on the drug at that time per stage
addiction_loss_thresholdLower threshold, when you stop being addicted
addiction_relief_tresholdAmount of drugs you need in your system to be satisfied
high_sanity_addiction_lossRate at which high sanity helps addiction loss
nameName of this addiction
withdrawal_stage_messagesMessages for each stage of addictions.

Procs

become_addictedCalled when you become addicted
on_gain_addiction_pointsCalled when you gain addiction points somehow. Takes a mind as argument and sees if you gained the addiction
on_lose_addiction_pointsCalled when you lose addiction poitns somehow. Takes a mind as argument and sees if you lost the addiction
withdrawal_enters_stage_1One cycle is 2 seconds Called when addiction enters stage 1
withdrawal_enters_stage_2Called when addiction enters stage 2
withdrawal_enters_stage_3Called when addiction enters stage 3
withdrawal_stage_1_processCalled when addiction is in stage 1 every process
withdrawal_stage_2_processCalled when addiction is in stage 2 every process
withdrawal_stage_3_processCalled when addiction is in stage 3 every process

Var Details

addiction_gain_threshold

Higher threshold, when you start being addicted

addiction_loss_per_stage

Rates at which you lose addiction (in units/second) if you are not on the drug at that time per stage

addiction_loss_threshold

Lower threshold, when you stop being addicted

addiction_relief_treshold

Amount of drugs you need in your system to be satisfied

high_sanity_addiction_loss

Rate at which high sanity helps addiction loss

name

Name of this addiction

withdrawal_stage_messages

Messages for each stage of addictions.

Proc Details

become_addicted

Called when you become addicted

on_gain_addiction_points

Called when you gain addiction points somehow. Takes a mind as argument and sees if you gained the addiction

on_lose_addiction_points

Called when you lose addiction poitns somehow. Takes a mind as argument and sees if you lost the addiction

withdrawal_enters_stage_1

One cycle is 2 seconds Called when addiction enters stage 1

withdrawal_enters_stage_2

Called when addiction enters stage 2

withdrawal_enters_stage_3

Called when addiction enters stage 3

withdrawal_stage_1_process

Called when addiction is in stage 1 every process

withdrawal_stage_2_process

Called when addiction is in stage 2 every process

withdrawal_stage_3_process

Called when addiction is in stage 3 every process