mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2025-12-18 21:53:22 +00:00
The Spectre-Meter App, also a bootleg data disk item for the black market. Co-authored-by: Ghom <42542238+Ghommie@users.noreply.github.com> Co-authored-by: Gandalf <9026500+Gandalf2k15@users.noreply.github.com>
39 lines
1.7 KiB
Plaintext
39 lines
1.7 KiB
Plaintext
/obj/item/computer_disk/syndicate
|
|
name = "golden data disk"
|
|
desc = "A data disk with some high-tech programs, probably expensive as hell."
|
|
icon_state = "datadisk8"
|
|
custom_materials = list(/datum/material/gold = SMALL_MATERIAL_AMOUNT)
|
|
|
|
/obj/item/computer_disk/syndicate/camera_app
|
|
starting_programs = list(/datum/computer_file/program/secureye/syndicate)
|
|
|
|
/obj/item/computer_disk/syndicate/contractor
|
|
starting_programs = list(/datum/computer_file/program/contract_uplink)
|
|
|
|
/obj/item/computer_disk/black_market
|
|
desc = "Removable disk used to store data. This one has a smudged piece of paper glued to it, reading \"PC softwarez\"."
|
|
|
|
/obj/item/computer_disk/black_market/Initialize(mapload)
|
|
icon_state = "datadisk[rand(0, 10)]"
|
|
//Populated with programs not found in the verified downloader app or that require access to download (but not to run).
|
|
var/list/potential_programs = list(
|
|
/datum/computer_file/program/arcade/eazy,
|
|
/datum/computer_file/program/radar/lifeline,
|
|
/datum/computer_file/program/radar/custodial_locator,
|
|
/datum/computer_file/program/supermatter_monitor,
|
|
/datum/computer_file/program/newscaster,
|
|
/datum/computer_file/program/secureye,
|
|
/datum/computer_file/program/crew_manifest,
|
|
/datum/computer_file/program/status,
|
|
)
|
|
potential_programs += subtypesof(/datum/computer_file/program/maintenance) - /datum/computer_file/program/maintenance/theme
|
|
|
|
var/total_programs_size = 0
|
|
for(var/i in 1 to rand(2, 4))
|
|
var/datum/computer_file/program/to_add = pick_n_take(potential_programs)
|
|
total_programs_size += initial(to_add.size)
|
|
starting_programs += to_add
|
|
///Make sure the disk has enough space for all the programs
|
|
max_capacity = max(total_programs_size, max_capacity)
|
|
return ..()
|