White Sands - Modules - TypesVar Details - Proc Details

/datum/component/embedded

Vars

harmfulif both our pain multiplier and jostle pain multiplier are 0, we're harmless and can omit most of the damage related stuff

Procs

fallOutCalled when then item randomly falls out of a carbon. This handles the damage and descriptors, then calls safe_remove()
jostleCheck/////////BEHAVIOR PROCS//////////////
ripOutCalled when a carbon with an object embedded/stuck to them inspects themselves and clicks the appropriate link to begin ripping the item out. This handles the ripping attempt, descriptors, and dealing damage, then calls safe_remove()
safeRemoveThis proc handles the final step and actual removal of an embedded/stuck item from a carbon, whether or not it was actually removed safely. Pass TRUE for to_hands if we want it to go to the victim's hands when they pull it out
weaponDeletedSomething deleted or moved our weapon while it was embedded, how rude!

Var Details

harmful

if both our pain multiplier and jostle pain multiplier are 0, we're harmless and can omit most of the damage related stuff

Proc Details

fallOut

Called when then item randomly falls out of a carbon. This handles the damage and descriptors, then calls safe_remove()

jostleCheck

/////////BEHAVIOR PROCS//////////////

Called every time a carbon with a harmful embed moves, rolling a chance for the item to cause pain. The chance is halved if the carbon is crawling or walking.

ripOut

Called when a carbon with an object embedded/stuck to them inspects themselves and clicks the appropriate link to begin ripping the item out. This handles the ripping attempt, descriptors, and dealing damage, then calls safe_remove()

safeRemove

This proc handles the final step and actual removal of an embedded/stuck item from a carbon, whether or not it was actually removed safely. Pass TRUE for to_hands if we want it to go to the victim's hands when they pull it out

weaponDeleted

Something deleted or moved our weapon while it was embedded, how rude!