Skip to content
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

Различная переработка аутфитов, нюка теперь всегда имеет код активации #7

Draft
wants to merge 3 commits into
base: master
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 30 additions & 1 deletion modular_bandastation/outfits/code/centcom.dm
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
backpack_contents = list(
/obj/item/storage/box/survival/centcom,
/obj/item/ammo_box/a357 = 3,
/obj/item/storage/fancy/cigarettes/cigars
/obj/item/storage/fancy/cigarettes/cigars,
/obj/item/door_remote/omni
)
belt = /obj/item/gun/ballistic/revolver/mateba
ears = /obj/item/radio/headset/headset_cent/commander
Expand Down Expand Up @@ -65,6 +66,7 @@
backpack_contents = list(
/obj/item/storage/box/survival/centcom,
/obj/item/stamp/centcom,
/obj/item/door_remote/omni
)
belt = /obj/item/gun/energy/pulse/pistol/m1911
ears = /obj/item/radio/headset/headset_cent/commander
Expand Down Expand Up @@ -144,3 +146,30 @@
/datum/id_trim/centcom/diplomat/New()
. = ..()
access = list(ACCESS_CENT_GENERAL, ACCESS_CENT_SPECOPS, ACCESS_CENT_LIVING) | (SSid_access.get_region_access_list(list(REGION_ALL_STATION)) - ACCESS_CHANGE_IDS)

// Death Squad

/datum/antagonist/ert/deathsquad/on_gain() // Give deathsquad nuke code when ERT is summoned
. = ..()
var/datum/objective/missionobj = new ()
var/nuke_code
var/obj/machinery/nuclearbomb/selfdestruct/nuke = locate() in SSmachines.get_machines_by_type(/obj/machinery/nuclearbomb/selfdestruct)
nuke_code = random_nukecode()
if(nuke.r_code == NUKE_CODE_UNSET)
nuke.r_code = nuke_code
else //Already set by admins/something else?
nuke_code = nuke.r_code
missionobj.owner = owner
missionobj.explanation_text = "Запустите механизм самоуничтожения на [station_name()], коды активации: [nuke.r_code]"
missionobj.completed = TRUE
objectives |= missionobj

/datum/outfit/centcom/death_commando/officer
backpack_contents = list(
/obj/item/ammo_box/a357 = 1,
/obj/item/flashlight = 1,
/obj/item/grenade/c4/x4 = 1,
/obj/item/storage/box/flashbangs = 1,
/obj/item/storage/medkit/regular = 1,
/obj/item/disk/nuclear
)
Loading