mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-07-12 08:27:13 +01:00
Rental bikes on Point Verdant (#18466)
* thgncmdc * a * 457ythrbg * a * agony * y * tests rerun please * tests rerun please * a * tests rerun please * tests rerun please * fuck * kill me * tests rerun please * cc * aaaaaaaaaaaaaaaaaaaa * augh * fewsgsbh,vgjvtderzj5tderszhrfdbghrdenyz * a34yhsrezdtjtryfxkjrstjrtysajh5taeh5r34e5R4EW3 4 tygw4e T342W 4w * Update code/game/machinery/vending_types.dm Co-authored-by: Fluffy <65877598+FluffyGhoster@users.noreply.github.com> Signed-off-by: DreamySkrell <107256943+DreamySkrell@users.noreply.github.com> * review --------- Signed-off-by: DreamySkrell <107256943+DreamySkrell@users.noreply.github.com> Co-authored-by: DreamySkrell <> Co-authored-by: Fluffy <65877598+FluffyGhoster@users.noreply.github.com>
This commit is contained in:
@@ -29,15 +29,16 @@
|
||||
if(_program == null)
|
||||
qdel(src) //Delete itself if no program is set
|
||||
return
|
||||
var/datum/computer_file/program/PRG = GLOB.ntnet_global.find_ntnet_file_by_name(_program)
|
||||
if(!PRG)
|
||||
var/datum/computer_file/program/program = GLOB.ntnet_global.find_ntnet_file_by_name(_program)
|
||||
if(!program)
|
||||
qdel(src) //Delete itself it no matching program is found
|
||||
return
|
||||
max_capacity = PRG.size // Set the capacity of the backup disk to the capacity of the program
|
||||
store_file(PRG)
|
||||
var/datum/computer_file/program/program_cloned = program.clone(FALSE, "Compless")
|
||||
max_capacity = program_cloned.size // Set the capacity of the backup disk to the capacity of the program
|
||||
store_file(program_cloned)
|
||||
read_only = TRUE
|
||||
desc = "A read-only backup storage crystal containing a backup of the following software: [PRG.filedesc]"
|
||||
name = "[PRG.filedesc] backup crystal"
|
||||
desc = "A read-only backup storage crystal containing a backup of the following software: [program_cloned.filedesc]"
|
||||
name = "[program_cloned.filedesc] backup crystal"
|
||||
|
||||
/obj/structure/closet/crate/software_backup
|
||||
desc = "A crate containing a backup of all the NT Software available."
|
||||
|
||||
Reference in New Issue
Block a user