mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2025-12-11 10:11:09 +00:00
## About The Pull Request This PR aims to clean or bring up to date portions of code about dna, the dna console and mutations. This includes taking care of or removing some of the awful choices like the pratically useless `datum/mutation/human` pathing, or the class variable, in favor of using sources to avoid potential issues with extraneous sources of a mutation. The files changed are over a hundred just because I removed the `datum/mutation/human` path, but the actual bulk of the code is mainly shared between the datum/dna.dm, _mutations.dm and dna_console.dm. ## Why It's Good For The Game Mutation shitcode is hurting my future plans for infusions a little. Also it's a much needed refactor. Drafted 'till I'm sure it works without issues. ## Changelog 🆑 refactor: Refactored mutation code backend. Report any issue. /🆑
35 lines
1.2 KiB
Plaintext
35 lines
1.2 KiB
Plaintext
/datum/mutation/biotechcompat
|
|
name = "Biotech Compatibility"
|
|
desc = "Subject is more compatibile with biotechnology such as skillchips."
|
|
quality = POSITIVE
|
|
instability = POSITIVE_INSTABILITY_MINI
|
|
|
|
/datum/mutation/biotechcompat/on_acquiring(mob/living/carbon/human/owner)
|
|
. = ..()
|
|
if(!.)
|
|
return
|
|
owner.adjust_skillchip_complexity_modifier(1)
|
|
|
|
/datum/mutation/biotechcompat/on_losing(mob/living/carbon/human/owner)
|
|
owner.adjust_skillchip_complexity_modifier(-1)
|
|
return ..()
|
|
|
|
/datum/mutation/clever
|
|
name = "Clever"
|
|
desc = "Causes the subject to feel just a little bit smarter. Most effective in specimens with low levels of intelligence."
|
|
quality = POSITIVE
|
|
instability = POSITIVE_INSTABILITY_MODERATE // literally makes you on par with station equipment
|
|
text_gain_indication = span_danger("You feel a little bit smarter.")
|
|
text_lose_indication = span_danger("Your mind feels a little bit foggy.")
|
|
|
|
/datum/mutation/clever/on_acquiring(mob/living/carbon/human/owner)
|
|
. = ..()
|
|
if(!.)
|
|
return
|
|
owner.add_traits(list(TRAIT_ADVANCEDTOOLUSER, TRAIT_LITERATE), GENETIC_MUTATION)
|
|
|
|
/datum/mutation/clever/on_losing(mob/living/carbon/human/owner)
|
|
if(..())
|
|
return
|
|
owner.remove_traits(list(TRAIT_ADVANCEDTOOLUSER, TRAIT_LITERATE), GENETIC_MUTATION)
|