mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2025-12-13 11:12:14 +00:00
🆑 coiax fix: Cyborg radios can no longer have their inaccessible wires pulsed by EMPs. /🆑 Adds a secondary flags system, for stuff that should be set as a flag, but is too rare to clog up one of our coveted high speed flag slots. Uses a null list to store the flags, when instanced, the list is in the form flag_string->booleon, for the highest speed. I suggest we locate other rare flags and move them to this system. (Like EARBANGPROTECT, I mean come on).
4 lines
340 B
Plaintext
4 lines
340 B
Plaintext
#define HAS_SECONDARY_FLAG(atom, sflag) (atom.secondary_flags ? atom.secondary_flags[sflag] : FALSE)
|
|
#define SET_SECONDARY_FLAG(atom, sflag) if(!atom.secondary_flags) { atom.secondary_flags = list(); } atom.secondary_flags[sflag] = TRUE;
|
|
#define CLEAR_SECONDARY_FLAG(atom, sflag) if(atom.secondary_flags) atom.secondary_flags[sflag] = null
|