/
githubmirror
/
vgstation13
Обзор
Документация
Войти
/
githubmirror
/
vgstation13
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
Bleeding-Edge
code/datums/gamemode/objectives/block.dm
23 строки
800 B
kane-f
Changes z-level defines to map datum vars (#31268)
13 ноя 2021, 17:53
Не верифицирован
13 ноя 2021, 17:53
0a808ec
Код
Авторство
О чём код?
/datum/objective/block explanation_text = "Do not allow any organic lifeforms to escape on the shuttle alive." name = "Block the shuttle" /datum/objective/block/IsFulfilled() if (..()) return TRUE if(!istype(owner.current, /mob/living/silicon)) return FALSE if(emergency_shuttle.location != map.zCentcomm) return FALSE if(!owner.current) return FALSE var/area/shuttle = locate(/area/shuttle/escape/centcom) var/protected_mobs[] = list(/mob/living/silicon/ai, /mob/living/silicon/pai, /mob/living/silicon/robot, /mob/living/silicon/robot/mommi, /mob/living/simple_animal/borer) for(var/mob/living/player in player_list) if(player.type in protected_mobs) continue if (player.mind) if (player.stat != DEAD) if (get_turf(player) in shuttle) return FALSE return TRUE