Skip to content

Commit

Permalink
Блокировки антагов в динамике и рулсетах
Browse files Browse the repository at this point in the history
  • Loading branch information
msw7007 committed Feb 3, 2025
1 parent c05fbb1 commit 9b7c080
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 1 deletion.
2 changes: 1 addition & 1 deletion data/mode.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
extended
traitor
32 changes: 32 additions & 0 deletions modular_ss220/species/serpentids/code/mob/serpentids.dm
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,38 @@
/datum/antag_scenario/team/blood_brothers
restricted_species = list("Serpentid")

/datum/ruleset/traitor
banned_species = list("Serpentid")

/datum/ruleset/mindflayer
banned_species = list("Serpentid")

/datum/ruleset/vampire
banned_species = list("Serpentid")

/datum/game_mode/traitor/pre_setup()
. = ..()
for(var/datum/mind/posible_antag in pre_traitors)
if(isserpentid(posible_antag.current?.client?.prefs.active_character.species))
pre_traitors -= posible_antag
posible_antag.special_role = null

/datum/game_mode/traitor/autotraitor/pre_setup()
. = ..()
for(var/datum/mind/posible_antag in pre_traitors)
if(isserpentid(posible_antag.current?.client?.prefs.active_character.species))
pre_traitors -= posible_antag
posible_antag.special_role = null

/datum/game_mode/vampire/pre_setup()
. = ..()
for(var/datum/mind/posible_antag in pre_vampires)
if(isserpentid(posible_antag.current?.client?.prefs.active_character.species))
pre_vampires -= posible_antag
posible_antag.special_role = null



//Расширение для действий органов серпентидов
/datum/action/item_action/organ_action/toggle/serpentid
name = "serpentid organ selection"
Expand Down

0 comments on commit 9b7c080

Please sign in to comment.