-
Notifications
You must be signed in to change notification settings - Fork 44
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Antag xeno restrictions #312
base: master
Are you sure you want to change the base?
Changes from 15 commits
00e1a46
2fe5543
9b16356
e775cc2
bbac873
36666f7
61756b8
0ea9087
ba76789
c438da8
571c12b
481a4a6
0da11ad
c5747b9
9c97c9f
81c82ff
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -75,6 +75,11 @@ var/list/possible_changeling_IDs = list("Alpha","Beta","Gamma","Delta","Epsilon" | |
|
||
return ..() | ||
|
||
/datum/game_mode/changeling/check_species_restriction(var/mob/dead/new_player/player) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Вообще некрасиво выходит как-то каждый раз перезаписывать функцию. Почему нельзя у гейммода объявить переменную типо role_type, и в общей функции родителя проверять return S.restricted_roles[role_type]? |
||
var/datum/species/S = all_species[player.client.prefs.species] | ||
if(S) | ||
return S.restricted_roles.Find(ROLE_CHANGELING) ? 0 : 1 | ||
return 1 | ||
|
||
/datum/game_mode/proc/forge_changeling_objectives(datum/mind/changeling) | ||
//OBJECTIVES - Always absorb 5 genomes, plus random traitor objectives. | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -66,6 +66,8 @@ | |
var/flesh_color = "#FFC896" //Pink. | ||
var/base_color //Used when setting species. | ||
|
||
var/list/restricted_roles = list() | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ты объявил список запрещённых ролей, но нигде его не наполняешь. М? |
||
|
||
//Used in icon caching. | ||
var/race_key = 0 | ||
var/icon/icon_template | ||
|
@@ -316,6 +318,7 @@ | |
|
||
eyes = "skrell_eyes" | ||
blood_color = /datum/dirt_cover/purple_blood | ||
|
||
flesh_color = "#8CD7A3" | ||
|
||
/datum/species/skrell/call_digest_proc(mob/living/M, datum/reagent/R) | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
var/ - объявление того что аргумент переданный в функцию - переменная?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Спиздил и не заметил, во как бывает