mafia_role ![code/modules/mafia/roles.dm 1](git.png)
Vars | |
actions | action = uses |
---|---|
game_status | so mafia have to also kill them to have a majority |
hud_icon | icon state in the mafia dmi of the hud of the role, used in the mafia ui |
revealed_icon | icon state in the mafia dmi of the hud of the role, used in the mafia ui |
revealed_outfit | what they get equipped with when they are revealed |
role_flags | role flags (special status of roles like detection immune) |
role_type | how the random setup chooses which roles get put in |
special_theme | set this to something cool for antagonists and their window will look different |
vote_potential | how many votes your role COULD count for, now or later. used in checking victory |
vote_power | how many votes submitted when you vote. used in voting, but not victory |
winner_award | what the role gets when it wins a game |
Procs | |
can_action | Tests if a visitor can actually perform an action on this role. Verbose on purpose! |
kill | Tests kill immunities, if nothing prevents the kill, kills this role. |
Var Details
actions ![code/modules/mafia/roles.dm 22](git.png)
action = uses
game_status ![code/modules/mafia/roles.dm 28](git.png)
so mafia have to also kill them to have a majority
hud_icon ![code/modules/mafia/roles.dm 31](git.png)
icon state in the mafia dmi of the hud of the role, used in the mafia ui
revealed_icon ![code/modules/mafia/roles.dm 33](git.png)
icon state in the mafia dmi of the hud of the role, used in the mafia ui
revealed_outfit ![code/modules/mafia/roles.dm 20](git.png)
what they get equipped with when they are revealed
role_flags ![code/modules/mafia/roles.dm 14](git.png)
role flags (special status of roles like detection immune)
role_type ![code/modules/mafia/roles.dm 7](git.png)
how the random setup chooses which roles get put in
special_theme ![code/modules/mafia/roles.dm 35](git.png)
set this to something cool for antagonists and their window will look different
vote_potential ![code/modules/mafia/roles.dm 18](git.png)
how many votes your role COULD count for, now or later. used in checking victory
vote_power ![code/modules/mafia/roles.dm 16](git.png)
how many votes submitted when you vote. used in voting, but not victory
winner_award ![code/modules/mafia/roles.dm 25](git.png)
what the role gets when it wins a game
Proc Details
can_action
Tests if a visitor can actually perform an action on this role. Verbose on purpose!
Will return false if: Your visit is roleblocked, they have perished, or your visit was interrupted
kill
Tests kill immunities, if nothing prevents the kill, kills this role.
Does not count as visiting, see visit proc.