mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2025-12-16 04:34:21 +00:00
Refactors hand tele code with better variable names, splitting procs, fixing C&P code, etc. Adds pre_attack_secondary, the right click version of pre_attack. Adds a new alternate function to hand teles, which will reopen the last location you opened. Works based off locations, not turfs. For example, right clicking after locking in "None (Dangerous)" will not teleport you to the same place.
3 lines
202 B
Plaintext
3 lines
202 B
Plaintext
/// Checks if potential_weakref is a weakref of thing.
|
|
#define IS_WEAKREF_OF(thing, potential_weakref) (istype(thing, /datum) && !isnull(potential_weakref) && thing.weak_reference == potential_weakref)
|