code/__DEFINES/mobfactions.dm 
| FACTION_HOSTILE | Acts as a default faction for most violent creatures |
|---|---|
| FACTION_NEUTRAL | Acts as a default faction for most peaceful creatures |
| FACTION_ASHWALKER | Ashwalker related creatures |
| FACTION_BEAR | Bears of all varieties |
| FACTION_BLOOD_WORM | Blood worms |
| FACTION_BOSS | Megafauna bosses of mining |
| FACTION_CARP | CARPS |
| FACTION_CHEMICAL_SUMMON | Creatures summoned by chemical reactions |
| FACTION_CLOWN | Clown creatures and the Clown themselves |
| FACTION_CREATURE | Headslugs |
| FACTION_CAT | Cats |
| FACTION_FAITHLESS | Faithless and shadowpeople |
| FACTION_GNOME | Gnomes |
| FACTION_GONDOLA | Gondolas |
| FACTION_HELL | Slaughterdemons |
| FACTION_HIVEBOT | Hivebots |
| FACTION_ILLUSION | Illusionary creatures |
| FACTION_JUNGLE | Creatures of the never finished jungle planet, and gorillas |
| FACTION_LIZARD | Small lizards |
| FACTION_MAINT_CREATURES | Maint creatures have mutual respect for each other. |
| FACTION_MIMIC | Animated objects and statues |
| FACTION_MINING | Beasts found on the various mining environments |
| FACTION_WATCHER | Watchers don't like any creatures other than each other |
| FACTION_MONKEY | Monkeys and gorillas |
| FACTION_MUSHROOM | Mushrooms and mushroompeople |
| FACTION_NANOTRASEN_PRIVATE | Nanotrasen private security |
| FACTION_NETHER | Mobs from the Netherworld |
| FACTION_ORION | Mobs spawned by the emagged orion arcade |
| FACTION_PENGUIN | Penguins and their chicks |
| FACTION_PLANTS | Plants, lots of overlap with vines |
| FACTION_RAT | Rats and mice |
| FACTION_RUSSIAN | Creatures from Space Russia |
| FACTION_SILICON | Creatures affiliated with the AI and Cyborgs |
| FACTION_SKELETON | Spooky scary skeletons |
| FACTION_SLIME | Slimey creatures |
| FACTION_SPIDER | Spiders and their webs |
| FACTION_BLOOD_SPIDER | Specifically blood spiders, they hate everyone |
| FACTION_SPOOKY | Currently used only by floating eyeballs |
| FACTION_STATUE | Statues that move around when nobody is watching them |
| FACTION_STICKMAN | Stick creatures summoned by the Paperwizard, and the wizard themselves |
| FACTION_TURRET | Creatures ignored by various turrets |
| FACTION_VINES | Vines, lots of overlap with plants |
| FACTION_RAPTOR | raptor factions |
| FACTION_HOLY | holy faction, for anything part of the church |
| FACTION_SHUTTLE | Creatures that are spawned on the escape shuttle |
| FACTION_CULT | Cultists and their constructs |
| FACTION_HERETIC | Define for the heretic faction applied to heretics and heretic mobs. |
| FACTION_PIRATE | Mainly used by pirate simplemobs. However I placed them here instead, as its also used by players |
| FACTION_PINK_EXTRACT | Generates a mob faction for the passed owner, used by stabilized pink extracts |
| SET_FACTION_AND_ALLIES_FROM | SET_FACTION_AND_ALLIES_FROM(destination, source) Sets the atom's faction and allies to match that of the provided type's. |
| APPLY_FACTION_AND_ALLIES_FROM | APPLY_FACTION_AND_ALLIES_FROM(destination, source) Adds the provided type's factions and allies to the atom's current factions and allies. |
| FACTION_CHECK | Compare two lists of factions, resolving to TRUE if both lists share at least one faction. If exact match is set, we only resolve to TRUE if ALL factions in faction_A are also present in faction_B. NB: that this means the order you check factions matters - checking A and B is not the same as checking B and A |
| ALLY_CHECK | Compares two lists of allies, resolving to TRUE if there is any overlap. If exact_match is set, we only resolve to TRUE if ALL allies in allies_A are also present in allies_B. |
Define Details
ALLY_CHECK 
Compares two lists of allies, resolving to TRUE if there is any overlap. If exact_match is set, we only resolve to TRUE if ALL allies in allies_A are also present in allies_B.
NB: exact_match will VERY OFTEN fail for allies as mobs are allied to themselves. Only use it if you know what you're doing (you will almost certainly want to do a faction check instead).
APPLY_FACTION_AND_ALLIES_FROM 
APPLY_FACTION_AND_ALLIES_FROM(destination, source) Adds the provided type's factions and allies to the atom's current factions and allies.
This is equivalent to: destination.add_faction(source.get_faction()) destination.add_ally(source.allies)
This is a macro (not a proc) to avoid proc call overhead in hot paths.
FACTION_ASHWALKER 
Ashwalker related creatures
FACTION_BEAR 
Bears of all varieties
FACTION_BLOOD_SPIDER 
Specifically blood spiders, they hate everyone
FACTION_BLOOD_WORM 
Blood worms
FACTION_BOSS 
Megafauna bosses of mining
FACTION_CARP 
CARPS
FACTION_CAT 
Cats
FACTION_CHECK 
Compare two lists of factions, resolving to TRUE if both lists share at least one faction. If exact match is set, we only resolve to TRUE if ALL factions in faction_A are also present in faction_B. NB: that this means the order you check factions matters - checking A and B is not the same as checking B and A
If allies lists are provided, the macro will also resolve to TRUE if there is any overlap between allies_A and allies_B, regardless of the exact_match flag.
FACTION_CHEMICAL_SUMMON 
Creatures summoned by chemical reactions
FACTION_CLOWN 
Clown creatures and the Clown themselves
FACTION_CREATURE 
Headslugs
FACTION_CULT 
Cultists and their constructs
FACTION_FAITHLESS 
Faithless and shadowpeople
FACTION_GNOME 
Gnomes
FACTION_GONDOLA 
Gondolas
FACTION_HELL 
Slaughterdemons
FACTION_HERETIC 
Define for the heretic faction applied to heretics and heretic mobs.
FACTION_HIVEBOT 
Hivebots
FACTION_HOLY 
holy faction, for anything part of the church
FACTION_HOSTILE 
Acts as a default faction for most violent creatures
FACTION_ILLUSION 
Illusionary creatures
FACTION_JUNGLE 
Creatures of the never finished jungle planet, and gorillas
FACTION_LIZARD 
Small lizards
FACTION_MAINT_CREATURES 
Maint creatures have mutual respect for each other.
FACTION_MIMIC 
Animated objects and statues
FACTION_MINING 
Beasts found on the various mining environments
FACTION_MONKEY 
Monkeys and gorillas
FACTION_MUSHROOM 
Mushrooms and mushroompeople
FACTION_NANOTRASEN_PRIVATE 
Nanotrasen private security
FACTION_NETHER 
Mobs from the Netherworld
FACTION_NEUTRAL 
Acts as a default faction for most peaceful creatures
FACTION_ORION 
Mobs spawned by the emagged orion arcade
FACTION_PENGUIN 
Penguins and their chicks
FACTION_PINK_EXTRACT 
Generates a mob faction for the passed owner, used by stabilized pink extracts
FACTION_PIRATE 
Mainly used by pirate simplemobs. However I placed them here instead, as its also used by players
FACTION_PLANTS 
Plants, lots of overlap with vines
FACTION_RAPTOR 
raptor factions
FACTION_RAT 
Rats and mice
FACTION_RUSSIAN 
Creatures from Space Russia
FACTION_SHUTTLE 
Creatures that are spawned on the escape shuttle
FACTION_SILICON 
Creatures affiliated with the AI and Cyborgs
FACTION_SKELETON 
Spooky scary skeletons
FACTION_SLIME 
Slimey creatures
FACTION_SPIDER 
Spiders and their webs
FACTION_SPOOKY 
Currently used only by floating eyeballs
FACTION_STATUE 
Statues that move around when nobody is watching them
FACTION_STICKMAN 
Stick creatures summoned by the Paperwizard, and the wizard themselves
FACTION_TURRET 
Creatures ignored by various turrets
FACTION_VINES 
Vines, lots of overlap with plants
FACTION_WATCHER 
Watchers don't like any creatures other than each other
SET_FACTION_AND_ALLIES_FROM 
SET_FACTION_AND_ALLIES_FROM(destination, source) Sets the atom's faction and allies to match that of the provided type's.
This is equivalent to: destination.set_faction(source.get_faction()) destination.set_allies(source.allies)
This is a macro (not a proc) to avoid proc call overhead in hot paths.