-
Notifications
You must be signed in to change notification settings - Fork 438
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: midround space wizards! #6023
base: master220
Are you sure you want to change the base?
Conversation
code/modules/events/wizards.dm:36:error: GLOB.wizard_events_triggered: undefined var |
я заметил, да. |
Ещё будет круто, если мы не будем мержить что-либо по протухшей предложке. |
Co-authored-by: Daeberdir <[email protected]>
if(!candidates.len) | ||
log_and_message_admins("Warning: Could not spawn any mobs for event Wizard Raid. Reason - not enough candidates.") | ||
var/datum/event_container/EC = SSevents.event_containers[EVENT_LEVEL_MAJOR] | ||
EC.next_event_time = world.time + (60 SECONDS) | ||
|
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.
раз уж нет кандидатов, то в конце твоих манипуляций с кулдауном нужно поставить return
while(mages_number && length(candidates)) | ||
var/mob/new_mage = pick_n_take(candidates) | ||
if(new_mage) | ||
GLOB.wizard_events_triggered += 1 | ||
var/mob/living/carbon/human/new_character= makeBody(new_mage) | ||
new_character.mind.make_Wizard() // This puts them at the wizard spawn, worry not | ||
mages_number-- | ||
log_game("Spawned [new_character] (ckey: [new_character.key]) as midround Wizard.") |
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.
учитывая прошлый комментарий - это легче и лучше будет переписать на for
var/mob/new_mage = pick_n_take(candidates) | ||
if(new_mage) | ||
GLOB.wizard_events_triggered += 1 | ||
var/mob/living/carbon/human/new_character= makeBody(new_mage) |
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/mob/living/carbon/human/new_character= makeBody(new_mage) | |
var/mob/living/carbon/human/new_character = makeBody(new_mage) |
Описание
В случае, если на станции больше 10 живых игроков, то в качестве мажорного ивента начинают роллиться космические маги. Подсчет - один маг за каждые 30 человек. При триггере ивента блокируется возможность использовать часть заклинаний, привязанных к режиму "рагин магес".
Ссылка на предложение/Причина создания ПР
https://discord.com/channels/617003227182792704/755125334097133628/1225661296423473152
Пересозданная предложка
https://discord.com/channels/617003227182792704/755125334097133628/1297625539615522867
Тесты