Skip to content

Commit

Permalink
bugfix: dna vault hotfix (#6122)
Browse files Browse the repository at this point in the history
  • Loading branch information
Vladisvell authored Nov 3, 2024
1 parent 09a6dc5 commit d6e1223
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions code/modules/station_goals/dna_vault.dm
Original file line number Diff line number Diff line change
Expand Up @@ -303,13 +303,19 @@ GLOBAL_LIST_INIT(non_simple_animals, typecacheof(list(/mob/living/carbon/human/l


/obj/machinery/dna_vault/proc/upgrade(mob/living/carbon/human/H, upgrade_type)
if(!istype(H))
return

if(!(upgrade_type in power_lottery[H]))
return

if(!completed)
return

if(HAS_TRAIT(H, TRAIT_NO_DNA))
to_chat(H, "<span class='warning'>Error, no DNA detected.</span>")
return

switch(upgrade_type)
if(VAULT_TOXIN)
to_chat(H, "<span class='notice'>You feel resistant to airborne toxins.</span>")
Expand Down

0 comments on commit d6e1223

Please sign in to comment.