Skip to content

Commit

Permalink
Fixes DNA sequence scanner showing mutated genes (#82949)
Browse files Browse the repository at this point in the history
## About The Pull Request

Using a genetic sequence scanner now properly stores the right sequence
to mutated genes, letting them actually be read later.

## Why It's Good For The Game

Closes #82928

## Changelog

:cl:
fix: Genetic sequence scanners now show the sequence to mutated genes
from scanned individuals.
/:cl:
  • Loading branch information
JohnFulpWillard committed Apr 30, 2024
1 parent 3ad2318 commit bbbac79
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions code/game/objects/items/devices/scanners/sequence_scanner.dm
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
var/list/discovered = list() //hit a dna console to update the scanners database
var/list/buffer
var/ready = TRUE
var/cooldown = 200
var/cooldown = (20 SECONDS)
/// genetic makeup data that's scanned
var/list/genetic_makeup_buffer = list()

Expand Down Expand Up @@ -104,7 +104,7 @@
buffer = LAZYLISTDUPLICATE(target.dna.mutation_index)
var/list/active_mutations = list()
for(var/datum/mutation/human/mutation in target.dna.mutations)
LAZYOR(buffer, mutation.type)
LAZYSET(buffer, mutation.type, GET_SEQUENCE(mutation.type))
active_mutations.Add(mutation.type)

to_chat(user, span_notice("Subject [target.name]'s DNA sequence has been saved to buffer."))
Expand Down

0 comments on commit bbbac79

Please sign in to comment.