-
Notifications
You must be signed in to change notification settings - Fork 211
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
Add restricted roles for assassinate contract, add contracts number limit #12750
Conversation
@@ -103,6 +104,16 @@ GLOBAL_LIST_INIT(syndicate_factions, list( | |||
return FALSE | |||
return !!(H.species.species_flags & SPECIES_FLAG_NO_ANTAG_TARGET) | |||
|
|||
/datum/antag_contract/proc/skip_unwanted_job(datum/mind/H) | |||
var/datum/job/title = job_master.GetJob(H.assigned_role) | |||
if(wanted_jobs.len) |
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.
if(wanted_jobs.len) | |
if(length(wanted_jobs)) |
code/game/gamemodes/traitor/fixer.dm
Outdated
set_next_think(world.time + time_to_next_contract) | ||
if(!contract_list_overfilled()) | ||
create_random_contract(1) | ||
set_next_think(world.time + time_to_next_contract) |
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.
set_next_think(world.time + time_to_next_contract) | |
set_next_think(world.time + time_to_next_contract) |
code/game/gamemodes/traitor/fixer.dm
Outdated
set_next_think(world.time + time_to_next_contract) | ||
|
||
/datum/contract_fixer/proc/contract_list_overfilled() | ||
if(GLOB.all_contracts.len > (6 + round(SSticker.minds.len / 5))) |
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.
Может переделаешь на то, что контракты закрыты?
И да length
Иссуй был одобрен геймдизайнерами. Поддержали: felixartz |
Контракты на убийство выдаются только на глав, квартермейстера и старших офицеров СБ. Общее количество доступных контрактов не может превысить лимит (6 + количество игроков/5).
Поправлен баг с неправильной выдачей контрактов от разных фракций. Там у организаций использовалась побитовая переменная intents, которая уже была обьявлена глобально, что приводило к неправильной работе выдачи контрактов.
Чейнджлог