/tg/ Station 13 - Modules - Types — Define Details

code/__DEFINES/mobfactions.dm

FACTION_HOSTILEActs as a default faction for most violent creatures
FACTION_NEUTRALActs as a default faction for most peaceful creatures
FACTION_ASHWALKERAshwalker related creatures
FACTION_BEARBears of all varieties
FACTION_BLOOD_WORMBlood worms
FACTION_BOSSMegafauna bosses of mining
FACTION_CARPCARPS
FACTION_CHEMICAL_SUMMONCreatures summoned by chemical reactions
FACTION_CLOWNClown creatures and the Clown themselves
FACTION_CREATUREHeadslugs
FACTION_CATCats
FACTION_FAITHLESSFaithless and shadowpeople
FACTION_GNOMEGnomes
FACTION_GONDOLAGondolas
FACTION_HELLSlaughterdemons
FACTION_HIVEBOTHivebots
FACTION_ILLUSIONIllusionary creatures
FACTION_JUNGLECreatures of the never finished jungle planet, and gorillas
FACTION_LIZARDSmall lizards
FACTION_MAINT_CREATURESMaint creatures have mutual respect for each other.
FACTION_MIMICAnimated objects and statues
FACTION_MININGBeasts found on the various mining environments
FACTION_WATCHERWatchers don't like any creatures other than each other
FACTION_MONKEYMonkeys and gorillas
FACTION_MUSHROOMMushrooms and mushroompeople
FACTION_NANOTRASEN_PRIVATENanotrasen private security
FACTION_NETHERMobs from the Netherworld
FACTION_ORIONMobs spawned by the emagged orion arcade
FACTION_PENGUINPenguins and their chicks
FACTION_PLANTSPlants, lots of overlap with vines
FACTION_RATRats and mice
FACTION_RUSSIANCreatures from Space Russia
FACTION_SILICONCreatures affiliated with the AI and Cyborgs
FACTION_SKELETONSpooky scary skeletons
FACTION_SLIMESlimey creatures
FACTION_SPIDERSpiders and their webs
FACTION_BLOOD_SPIDERSpecifically blood spiders, they hate everyone
FACTION_SPOOKYCurrently used only by floating eyeballs
FACTION_STATUEStatues that move around when nobody is watching them
FACTION_STICKMANStick creatures summoned by the Paperwizard, and the wizard themselves
FACTION_TURRETCreatures ignored by various turrets
FACTION_VINESVines, lots of overlap with plants
FACTION_RAPTORraptor factions
FACTION_HOLYholy faction, for anything part of the church
FACTION_SHUTTLECreatures that are spawned on the escape shuttle
FACTION_CULTCultists and their constructs
FACTION_HERETICDefine for the heretic faction applied to heretics and heretic mobs.
FACTION_PIRATEMainly used by pirate simplemobs. However I placed them here instead, as its also used by players
FACTION_PINK_EXTRACTGenerates a mob faction for the passed owner, used by stabilized pink extracts
SET_FACTION_AND_ALLIES_FROMSET_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_FROMAPPLY_FACTION_AND_ALLIES_FROM(destination, source) Adds the provided type's factions and allies to the atom's current factions and allies.
FACTION_CHECKCompare 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_CHECKCompares 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.