code/modules/mafia/_defines.dm ![code/modules/mafia/_defines.dm0](git.png)
MAFIA_MIN_PLAYER_COUNT | The amount of players required to start a Mafia game |
---|---|
MAFIA_MAX_PLAYER_COUNT | how many people can play mafia without issues (running out of spawns, procs not expecting more than this amount of people, etc) |
FIRST_DAY_PERIOD_LENGTH | The time spent during the first day, which is shorter due to not having a voting period. |
DAY_PERIOD_LENGTH | The length of a Day period |
VOTING_PERIOD_LENGTH | The length of a Voting period, when people decide who they want to put up for hanging that day. |
JUDGEMENT_PERIOD_LENGTH | The length of the judgment period, where people vote on whether to lynch the person they voted up. |
LYNCH_PERIOD_LENGTH | The length of the lynch period, if the judged person is deemed guilty and is sentenced to death. |
NIGHT_PERIOD_LENGTH | The length of the night period where people can do their night abilities and speak with their mafia team. |
VICTORY_LAP_PERIOD_LENGTH | The length of the roundend report, where people can look over the round and the details. |
MAFIA_NOTE_SENDING_COOLDOWN | The cooldown between being able to send your notes in chat. |
MAFIA_SPEEDUP_INCREASE | How fast the game will speed up when half the players are gone. |
TOWN_OVERFLOW | Add this if you don't want a role to be a choice in the selection |
TOWN_INVEST | roles that learn info about others in the game (chaplain, detective, psych) |
TOWN_PROTECT | roles that keep other roles safe (doctor, sec officer, and weirdly enough lawyer counts) |
TOWN_KILLING | roles that are only there to kill bad guys. |
TOWN_SUPPORT | roles that don't fit into anything else (hop) |
MAFIA_REGULAR | normal vote kill changelings |
MAFIA_SPECIAL | every other changeling role that has extra abilities |
NEUTRAL_KILL | role that wins solo that nobody likes |
NEUTRAL_DISRUPT | role that upsets the game aka obsessed, usually worse for town than mafia but they can vote against mafia |
ROLE_UNDETECTABLE | to all forms of detection, shows themselves as an assistant. |
ROLE_CAN_KILL | has the ability to theoretically kill someone singlehandedly, blocks their team from losing against another teams. |
ROLE_UNIQUE | can only be one in a randomly generated game |
ROLE_REVEALED | role is public to all other players in the game. |
ROLE_VULNERABLE | can not be defended, protected, or any other form of protection. all kills succeed no matter what. |
ROLE_ROLEBLOCKED | cannot perform any actions that night, preselected actions fail |
CAN_USE_ON_OTHERS | Flag that decides whether the Mafia ability can be used on other people. |
CAN_USE_ON_SELF | Flag that decides whether the Mafia ability can be used on themselves. |
CAN_USE_ON_DEAD | Flag that decides whether the Mafia ability can be used on dead players. |
COMSIG_MAFIA_SUNDOWN | Sends all signals that must go immediately as night starts. |
COMSIG_MAFIA_NIGHT_PRE_ACTION_PHASE | Sends all signals that must go first, aka roleblocks. |
COMSIG_MAFIA_NIGHT_ACTION_PHASE | Sends the signal that all regular actions must go, such as |
COMSIG_MAFIA_NIGHT_KILL_PHASE | now killing happens from the roles that do that. the reason this is post action phase is to ensure doctors can protect and lawyers can block |
COMSIG_MAFIA_NIGHT_END | now clearing refs to prepare for the next day. Do not do any actions here, it's just for ref clearing. |
COMSIG_MAFIA_GAME_START | signal sent to roles when the game is confirmed starting |
COMSIG_MAFIA_GAME_END | signal sent to roles when the game is confirmed ending |
Define Details
CAN_USE_ON_DEAD ![code/modules/mafia/_defines.dm 72](git.png)
Flag that decides whether the Mafia ability can be used on dead players.
CAN_USE_ON_OTHERS ![code/modules/mafia/_defines.dm 68](git.png)
Flag that decides whether the Mafia ability can be used on other people.
CAN_USE_ON_SELF ![code/modules/mafia/_defines.dm 70](git.png)
Flag that decides whether the Mafia ability can be used on themselves.
COMSIG_MAFIA_GAME_END ![code/modules/mafia/_defines.dm 106](git.png)
signal sent to roles when the game is confirmed ending
COMSIG_MAFIA_GAME_START ![code/modules/mafia/_defines.dm 104](git.png)
signal sent to roles when the game is confirmed starting
COMSIG_MAFIA_NIGHT_ACTION_PHASE ![code/modules/mafia/_defines.dm 97](git.png)
Sends the signal that all regular actions must go, such as
COMSIG_MAFIA_NIGHT_END ![code/modules/mafia/_defines.dm 101](git.png)
now clearing refs to prepare for the next day. Do not do any actions here, it's just for ref clearing.
COMSIG_MAFIA_NIGHT_KILL_PHASE ![code/modules/mafia/_defines.dm 99](git.png)
now killing happens from the roles that do that. the reason this is post action phase is to ensure doctors can protect and lawyers can block
COMSIG_MAFIA_NIGHT_PRE_ACTION_PHASE ![code/modules/mafia/_defines.dm 95](git.png)
Sends all signals that must go first, aka roleblocks.
COMSIG_MAFIA_SUNDOWN ![code/modules/mafia/_defines.dm 93](git.png)
Sends all signals that must go immediately as night starts.
DAY_PERIOD_LENGTH ![code/modules/mafia/_defines.dm 9](git.png)
The length of a Day period
FIRST_DAY_PERIOD_LENGTH ![code/modules/mafia/_defines.dm 7](git.png)
The time spent during the first day, which is shorter due to not having a voting period.
JUDGEMENT_PERIOD_LENGTH ![code/modules/mafia/_defines.dm 13](git.png)
The length of the judgment period, where people vote on whether to lynch the person they voted up.
LYNCH_PERIOD_LENGTH ![code/modules/mafia/_defines.dm 15](git.png)
The length of the lynch period, if the judged person is deemed guilty and is sentenced to death.
MAFIA_MAX_PLAYER_COUNT ![code/modules/mafia/_defines.dm 4](git.png)
how many people can play mafia without issues (running out of spawns, procs not expecting more than this amount of people, etc)
MAFIA_MIN_PLAYER_COUNT ![code/modules/mafia/_defines.dm 2](git.png)
The amount of players required to start a Mafia game
MAFIA_NOTE_SENDING_COOLDOWN ![code/modules/mafia/_defines.dm 22](git.png)
The cooldown between being able to send your notes in chat.
MAFIA_REGULAR ![code/modules/mafia/_defines.dm 45](git.png)
normal vote kill changelings
MAFIA_SPECIAL ![code/modules/mafia/_defines.dm 47](git.png)
every other changeling role that has extra abilities
MAFIA_SPEEDUP_INCREASE ![code/modules/mafia/_defines.dm 25](git.png)
How fast the game will speed up when half the players are gone.
NEUTRAL_DISRUPT ![code/modules/mafia/_defines.dm 51](git.png)
role that upsets the game aka obsessed, usually worse for town than mafia but they can vote against mafia
NEUTRAL_KILL ![code/modules/mafia/_defines.dm 49](git.png)
role that wins solo that nobody likes
NIGHT_PERIOD_LENGTH ![code/modules/mafia/_defines.dm 17](git.png)
The length of the night period where people can do their night abilities and speak with their mafia team.
ROLE_CAN_KILL ![code/modules/mafia/_defines.dm 57](git.png)
has the ability to theoretically kill someone singlehandedly, blocks their team from losing against another teams.
ROLE_REVEALED ![code/modules/mafia/_defines.dm 61](git.png)
role is public to all other players in the game.
ROLE_ROLEBLOCKED ![code/modules/mafia/_defines.dm 65](git.png)
cannot perform any actions that night, preselected actions fail
ROLE_UNDETECTABLE ![code/modules/mafia/_defines.dm 55](git.png)
to all forms of detection, shows themselves as an assistant.
ROLE_UNIQUE ![code/modules/mafia/_defines.dm 59](git.png)
can only be one in a randomly generated game
ROLE_VULNERABLE ![code/modules/mafia/_defines.dm 63](git.png)
can not be defended, protected, or any other form of protection. all kills succeed no matter what.
TOWN_INVEST ![code/modules/mafia/_defines.dm 35](git.png)
roles that learn info about others in the game (chaplain, detective, psych)
TOWN_KILLING ![code/modules/mafia/_defines.dm 39](git.png)
roles that are only there to kill bad guys.
TOWN_OVERFLOW ![code/modules/mafia/_defines.dm 33](git.png)
Add this if you don't want a role to be a choice in the selection
TOWN_PROTECT ![code/modules/mafia/_defines.dm 37](git.png)
roles that keep other roles safe (doctor, sec officer, and weirdly enough lawyer counts)
TOWN_SUPPORT ![code/modules/mafia/_defines.dm 41](git.png)
roles that don't fit into anything else (hop)
VICTORY_LAP_PERIOD_LENGTH ![code/modules/mafia/_defines.dm 19](git.png)
The length of the roundend report, where people can look over the round and the details.
VOTING_PERIOD_LENGTH ![code/modules/mafia/_defines.dm 11](git.png)
The length of a Voting period, when people decide who they want to put up for hanging that day.