Space Station 13 - Modules - TypesVar Details - Proc Details

omen

omen.dm: For when you want someone to have a really bad day

When you attach an omen component to someone, they start running the risk of all sorts of bad environmental injuries, like nearby vending machines randomly falling on you, or hitting your head really hard when you slip and fall, or... well, for now those two are all I have. More will come.

Omens are removed once the victim is either maimed by one of the possible injuries, or if they receive a blessing (read: bashing with a bible) from the chaplain.

Vars

damage_modBase damage from negative events. Cursed take 25% less damage.
luck_modBase probability of negative events. Cursed are half as unlucky.
permanentIf the omen is permanent, it will never go away
vesselWhatever's causing the omen, if there is one. Destroying the vessel won't stop the omen, but we destroy the vessel (if one exists) upon the omen ending

Procs

check_accidentcheck_accident() is called each step we take
check_blessHijack the mood system to see if we get the blessing mood event to cancel the omen
check_deathSevere deaths. Normally lifts the curse.
check_slipIf we get knocked down, see if we have a really bad slip and bash our head hard
death_explodeCreates a localized explosion that shakes the camera

Var Details

damage_mod

Base damage from negative events. Cursed take 25% less damage.

luck_mod

Base probability of negative events. Cursed are half as unlucky.

permanent

If the omen is permanent, it will never go away

vessel

Whatever's causing the omen, if there is one. Destroying the vessel won't stop the omen, but we destroy the vessel (if one exists) upon the omen ending

Proc Details

check_accident

check_accident() is called each step we take

While we're walking around, roll to see if there's any environmental hazards (currently only vending machines) on one of the adjacent tiles we can trigger. We do the prob() at the beginning to A. add some tension for /when/ it will strike, and B. (more importantly) ameliorate the fact that we're checking up to 5 turfs's contents each time

check_bless

Hijack the mood system to see if we get the blessing mood event to cancel the omen

check_death

Severe deaths. Normally lifts the curse.

check_slip

If we get knocked down, see if we have a really bad slip and bash our head hard

death_explode

Creates a localized explosion that shakes the camera