mirror of
https://github.com/PolarisSS13/Polaris.git
synced 2025-12-20 07:02:30 +00:00
* Find and replace argless atom New() to Initialize(). * Manual replacement of no-arg New() to Initialize(). * Manually replacing remaining New() overrides. * Fixing linter issues with now-removed New() args. * Tidying area init overrides. * Porting Neb's atom subsystem. * Trying to isolate init problems. * Adjusting Init code post-test. * Merging duplicate Initialize() procs. * Merge resolution.
37 lines
1.3 KiB
Plaintext
37 lines
1.3 KiB
Plaintext
// These are basically USB data sticks and may be used to transfer files between devices
|
|
/obj/item/weapon/computer_hardware/hard_drive/portable
|
|
name = "basic data crystal"
|
|
desc = "Small crystal with imprinted photonic circuits that can be used to store data. Its capacity is 16 GQ."
|
|
power_usage = 10
|
|
icon_state = "flashdrive_basic"
|
|
hardware_size = 1
|
|
max_capacity = 16
|
|
origin_tech = list(TECH_DATA = 1)
|
|
|
|
/obj/item/weapon/computer_hardware/hard_drive/portable/advanced
|
|
name = "advanced data crystal"
|
|
desc = "Small crystal with imprinted high-density photonic circuits that can be used to store data. Its capacity is 64 GQ."
|
|
power_usage = 20
|
|
icon_state = "flashdrive_advanced"
|
|
hardware_size = 1
|
|
max_capacity = 64
|
|
origin_tech = list(TECH_DATA = 2)
|
|
|
|
/obj/item/weapon/computer_hardware/hard_drive/portable/super
|
|
name = "super data crystal"
|
|
desc = "Small crystal with imprinted ultra-density photonic circuits that can be used to store data. Its capacity is 256 GQ."
|
|
power_usage = 40
|
|
icon_state = "flashdrive_super"
|
|
hardware_size = 1
|
|
max_capacity = 256
|
|
origin_tech = list(TECH_DATA = 4)
|
|
|
|
/obj/item/weapon/computer_hardware/hard_drive/portable/Initialize()
|
|
. = ..()
|
|
stored_files = list()
|
|
recalculate_size()
|
|
|
|
/obj/item/weapon/computer_hardware/hard_drive/portable/Destroy()
|
|
if(holder2 && (holder2.portable_drive == src))
|
|
holder2.portable_drive = null
|
|
return ..() |