/
githubmirror
/
vgstation13
Обзор
Документация
Войти
/
githubmirror
/
vgstation13
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
Bleeding-Edge
code/datums/gamemode/objectives/sample.dm
18 строк
545 B
MadmanMartian
Removes ling general stings, adds ling chemsting and chemspit (#20366)
23 ноя 2018, 21:12
23 ноя 2018, 21:12
5969be9
Код
Авторство
О чём код?
/datum/objective/chem_sample explanation_text = "Learn a number of chemicals" name = "(Changeling) Learn chemicals" var/number_of_chems_to_learn /datum/objective/chem_sample/PostAppend() number_of_chems_to_learn = rand(5,30) explanation_text = "Learn [number_of_chems_to_learn] different chemicals." return TRUE /datum/objective/chem_sample/IsFulfilled() if (..()) return TRUE if(owner) var/datum/role/changeling/C = owner.GetRole(CHANGELING) if(C && C.absorbed_chems.len >= number_of_chems_to_learn) return TRUE return FALSE