Skip to content

Commit

Permalink
idk rn
Browse files Browse the repository at this point in the history
  • Loading branch information
FalloutFalcon committed May 15, 2024
1 parent fd286c2 commit b130730
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 3 deletions.
3 changes: 0 additions & 3 deletions code/controllers/subsystem/datacore.dm
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ SUBSYSTEM_DEF(datacore)
)

var/securityPrintCount = 0
var/securityCrimeCounter = 0
var/medicalPrintCount = 0

/// Set to TRUE when the initial roundstart manifest is complete
Expand All @@ -31,7 +30,6 @@ SUBSYSTEM_DEF(datacore)

/datum/controller/subsystem/datacore/Recover()
library = SSdatacore.library
securityCrimeCounter = SSdatacore.securityCrimeCounter
medicalPrintCount = SSdatacore.medicalPrintCount
finished_setup = SSdatacore.finished_setup

Expand Down Expand Up @@ -384,7 +382,6 @@ SUBSYSTEM_DEF(datacore)
c.time = time
c.fine = fine
c.paid = 0
c.dataId = ++securityCrimeCounter
return c

/datum/controller/subsystem/datacore/proc/get_id_photo(mob/living/carbon/human/H, client/C, show_directions = list(SOUTH), datum/job/J)
Expand Down
9 changes: 9 additions & 0 deletions code/game/machinery/computer/record/record.dm
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,15 @@
//Sorting Variables
var/sortBy = "name"
var/order = 1 // -1 = Descending - 1 = Ascending
var/datum/overmap/ship/controlled/linked_libary

/obj/machinery/computer/record/initialize()
. = ..()
var/datum/overmap/ship/controlled/linked_ship = SSshuttle.get_ship(src)
if(linked_ship)
if(linked_ship.linked_libary)
linked_libary = linked_ship.linked_libary
return

/obj/machinery/computer/record/proc/can_use_record_console(mob/user, message = 1, record1, record2)
if(user)
Expand Down
5 changes: 5 additions & 0 deletions code/game/objects/items/cards_ids.dm
Original file line number Diff line number Diff line change
Expand Up @@ -388,6 +388,11 @@
return "[icon2html(get_cached_flat_icon(), user)] [thats? "That's ":""][get_examine_name(user)]" //displays all overlays in chat
return ..()

/obj/item/card/id/proc/get_libary()
for(var/datum/overmap/ship/controlled/ship in ship_access)
if(ship.get_records())
return ship.get_records()

// Adds the referenced ship directly to the card
/obj/item/card/id/proc/add_ship_access(datum/overmap/ship/controlled/ship)
if (ship)
Expand Down

0 comments on commit b130730

Please sign in to comment.