mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-14 12:13:06 +00:00
32 lines
670 B
Plaintext
32 lines
670 B
Plaintext
/* Atom procs
|
|
These procs expand on the basic built in procs.
|
|
|
|
Bumped(O)
|
|
Automatically called whenever a movable atom O Bump()s into src.
|
|
Proc protype designed to be overridden for specific objects.
|
|
|
|
Trigger(O)
|
|
Automatically called whenever a movable atom O steps into the same
|
|
turf with src.
|
|
Proc protype designed to be overridden for specific objects.
|
|
*/
|
|
|
|
atom
|
|
proc
|
|
Bumped(O)
|
|
// O just Bump()ed into src.
|
|
// prototype Bumped() proc for all atoms
|
|
Trigger(O)
|
|
|
|
atom/movable
|
|
|
|
Bump(atom/A)
|
|
if(istype(A)) A.Bumped(src) // tell A that src bumped into it
|
|
..()
|
|
|
|
turf
|
|
Entered(atom/O)
|
|
for(var/atom/A in contents - O)
|
|
if(O)
|
|
O.Trigger(A)
|
|
..() |