mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2025-12-13 19:22:20 +00:00
* Add locking into portals with right click on hand tele, refactor hand tele code, add pre_attack_secondary (#56700) 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. * Add locking into portals with right click on hand tele, refactor hand tele code, add pre_attack_secondary Co-authored-by: Mothblocks <35135081+Jared-Fogle@users.noreply.github.com>
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)
|