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

Nuclear Bomb Operator

Component applied to handless non-carbon mobs to allow them to perform the function of a nuclear operative. Effectively this means they need to be able to:

Human mobs do not need this component because they can already do all of those things.

Vars

add_disk_overlaysShould return some overlays to display on the mob to show they're carrying a disk
diskyA weak reference to a held nuclear disk, in place of holding it in our inventory, because we don't have one
on_disk_collectedSomething to call when we collect the disk

Procs

atom_exited_ownerDon't hold onto the reference if we lose the disk somehow
drop_diskyDrop the disk on the floor, if we have it
on_deathDrop the disk when we are killed
on_examineAdd details about carrying the nuke disc to examination.
on_update_overlaysDisplay any disk-related overlays which need displaying
owner_attacked_atomTry to pick up the disk, put it down, or open the nuke panel
try_pick_up_diskPicks up the nuke disk, if it can be picked up
try_put_down_diskUses the disk on clicked atom, or places it on the ground

Var Details

add_disk_overlays

Should return some overlays to display on the mob to show they're carrying a disk

disky

A weak reference to a held nuclear disk, in place of holding it in our inventory, because we don't have one

on_disk_collected

Something to call when we collect the disk

Proc Details

atom_exited_owner

Don't hold onto the reference if we lose the disk somehow

drop_disky

Drop the disk on the floor, if we have it

on_death

Drop the disk when we are killed

on_examine

Add details about carrying the nuke disc to examination.

on_update_overlays

Display any disk-related overlays which need displaying

owner_attacked_atom

Try to pick up the disk, put it down, or open the nuke panel

try_pick_up_disk

Picks up the nuke disk, if it can be picked up

try_put_down_disk

Uses the disk on clicked atom, or places it on the ground