Skip to content

Commit

Permalink
Update steal_lowrisk.dm
Browse files Browse the repository at this point in the history
  • Loading branch information
maleyvich committed Feb 28, 2024
1 parent 9797410 commit b33b2d7
Showing 1 changed file with 36 additions and 26 deletions.
62 changes: 36 additions & 26 deletions code/game/gamemodes/objectives/families/steal_lowrisk.dm
Original file line number Diff line number Diff line change
@@ -1,34 +1,44 @@
/datum/objective/gang/steal_lowrisk
var/obj/item/steal_target
var/items_to_steal = list(/obj/item/weapon/card/id/captains_spare,
/obj/item/weapon/disk/nuclear,
/obj/item/weapon/stamp/med/cmo,
/obj/item/weapon/stamp/hop,
/obj/item/weapon/stamp/cap,
/obj/item/weapon/stamp/sec/hos,
/obj/item/weapon/stamp/sci/rd,
/obj/item/weapon/stamp/eng/ce,
/obj/item/weapon/stamp/cargo/qm,
/obj/item/device/remote_device/chief_medical_officer,
/obj/item/device/remote_device/captain,
/obj/item/device/remote_device/chief_engineer,
/obj/item/device/remote_device/research_director,
/obj/item/device/remote_device/quartermaster,
/obj/item/device/remote_device/head_of_security,
/obj/item/device/remote_device/head_of_personal,
/obj/item/toy/plushie/space_whale,
/obj/item/clothing/mask/facehugger/lamarr,
/obj/item/clothing/accessory/armor/dermal
)
var/obj/item/steal_target
var/target_name
var/list/items_to_steal = list()
var/static/possible_lowrisk[] = list(
"диск ядерной аутентификации" = /obj/item/weapon/disk/nuclear,
"штамп СМО" = /obj/item/weapon/stamp/med/cmo,
"штамп ГП" = /obj/item/weapon/stamp/hop,
"штамп капитана" = /obj/item/weapon/stamp/cap,
"штамп ГСБ" = /obj/item/weapon/stamp/sec/hos,
"штамп научрука" = /obj/item/weapon/stamp/sci/rd,
"штамп СИ" = /obj/item/weapon/stamp/eng/ce,
"штамп завхоза" = /obj/item/weapon/stamp/cargo/qm,
"пульт удалённого управления \"Медблок\"" = /obj/item/device/remote_device/chief_medical_officer,
"пульт удалённого управления \"Главы\"" = /obj/item/device/remote_device/captain,
"пульт удалённого управления \"Инженерный\"" = /obj/item/device/remote_device/chief_engineer,
"пульт удалённого управления \"Научный\"" = /obj/item/device/remote_device/research_director,
"пульт удалённого управления \"Снабжение\"" = /obj/item/device/remote_device/quartermaster,
"пульт удалённого управления \"Бриг\"" = /obj/item/device/remote_device/head_of_security,
"пульт удалённого управления \"Гражд. отделы\"" = /obj/item/device/remote_device/head_of_personal,
"плюшевого космокита" = /obj/item/toy/plushie/space_whale,
"лицехвата Ламарра" = /obj/item/clothing/mask/facehugger/lamarr,
"дермальную накладку" = /obj/item/clothing/accessory/armor/dermal
)

/datum/objective/gang/steal_lowrisk/proc/get_possible_lowrisk()
return possible_lowrisk

/datum/objective/gang/steal_lowrisk/New()
LAZYINITLIST(lowrisk_objectives_cache)
select_target()
. = ..()
items_to_steal = get_possible_lowrisk()

/datum/objective/gang/steal_lowrisk/select_target()
steal_target = find_and_check_target()
explanation_text = "Украдите [CASE(steal_target, NOMINATIVE_CASE)]."
/datum/objective/gang/steal_lowrisk/proc/set_target(item_name)
target_name = item_name
steal_target = items_to_steal[target_name]
explanation_text = "Украдите [target_name]."
return steal_target

/datum/objective/gang/steal_lowrisk/find_target()
set_target(pick(items_to_steal))
return TRUE

var/global/list/lowrisk_objectives_cache

Expand Down

0 comments on commit b33b2d7

Please sign in to comment.