mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-07-20 04:26:03 +01:00
Datumizes DNA blocks, makes DNA cleaner in general (#92061)
## About The Pull Request Moves all the dna block handling onto singleton datums initialized inside global lists, to make the handling dna less of a copy-paste mess and make adding new blocks significantly easier. There is still some work to be done in the copypaste department but ultimately that falls under its own PR scope after the core refactor goes through. (Ill probably do those but it will also be easier for everyone else as the code is now significantly less of an eyesore) Both features and identities have been tested through and through, and seem to be working fine. Also removed the reliance on weird hardcoded lookup tables for length, and other similar things that just didn't make sense when I was passing through DNA code. There's a lot more that fall out of scope for this exact PR's goal however ## Why It's Good For The Game I've been told the maintainers will love me for doing this ## Changelog 🆑 code: feature keys are no longer magical strings floating around the codebase and use proper defines refactor: DNA blocks are now handled with singleton datums. /🆑
This commit is contained in:
@@ -171,17 +171,17 @@
|
||||
if(1)
|
||||
to_chat(user, span_danger("Your appearance morphs to that of a very small humanoid ash dragon! You get to look like a freak without the cool abilities."))
|
||||
consumer.dna.features = list(
|
||||
"mcolor" = "#A02720",
|
||||
"tail_lizard" = "Dark Tiger",
|
||||
"tail_human" = "None",
|
||||
"snout" = "Sharp",
|
||||
"horns" = "Curled",
|
||||
"ears" = "None",
|
||||
"wings" = "None",
|
||||
"frills" = "None",
|
||||
"spines" = "Long",
|
||||
"lizard_markings" = "Dark Tiger Body",
|
||||
"legs" = DIGITIGRADE_LEGS,
|
||||
FEATURE_MUTANT_COLOR = "#A02720",
|
||||
FEATURE_TAIL_LIZARD = "Dark Tiger",
|
||||
FEATURE_TAIL = "None",
|
||||
FEATURE_SNOUT = "Sharp",
|
||||
FEATURE_HORNS = "Curled",
|
||||
FEATURE_EARS = "None",
|
||||
FEATURE_WINGS = "None",
|
||||
FEATURE_FRILLS = "None",
|
||||
FEATURE_SPINES = "Long",
|
||||
FEATURE_LIZARD_MARKINGS = "Dark Tiger Body",
|
||||
FEATURE_LEGS = DIGITIGRADE_LEGS,
|
||||
)
|
||||
consumer.set_eye_color("#FEE5A3")
|
||||
consumer.set_species(/datum/species/lizard)
|
||||
|
||||
Reference in New Issue
Block a user