forked from Baystation12/Baystation12
-
Notifications
You must be signed in to change notification settings - Fork 76
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: Builder13 <[email protected]> Co-authored-by: Lexanx <[email protected]>
- Loading branch information
1 parent
355e356
commit f99ac23
Showing
24 changed files
with
520 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,9 @@ | ||
// Helpers for shorter trait code | ||
///Check if mob currently has a trait set; also works for traits with associated_list set. | ||
#define HAS_TRAIT(MOB, TRAIT) MOB.HasTrait(TRAIT) | ||
///Checks for minimum severity level with associated trait. Does not work for traits that have an metaoptions set. | ||
#define HAS_TRAIT_LEVEL(MOB, TRAIT, LEVEL) (M.GetTraitLevel(TRAIT) >= LEVEL) | ||
///Gets severity level with associated trait. Does not work for traits that have an metaoptions set. | ||
#define GET_TRAIT_LEVEL(MOB, TRAIT) M.GetTraitLevel(TRAIT) | ||
#define IS_METABOLICALLY_INERT(MOB) HAS_TRAIT(MOB, /singleton/trait/general/metabolically_inert) // This define exists only due to how common this check is | ||
#define METABOLIC_INERTNESS(MOB) GET_TRAIT_LEVEL(MOB, /singleton/trait/general/metabolically_inert) // See above |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
/singleton/trait/malus/allergy | ||
name = "Allergy" | ||
levels = list(TRAIT_LEVEL_MINOR, TRAIT_LEVEL_MAJOR) | ||
///Used to select which reagent mob is allergic to. | ||
metaoptions = list( | ||
/datum/reagent/antidexafen, | ||
/datum/reagent/bicaridine, | ||
/datum/reagent/citalopram, | ||
/datum/reagent/dermaline, | ||
/datum/reagent/drink/juice/apple, | ||
/datum/reagent/drink/juice/berry, | ||
/datum/reagent/drink/juice/garlic, | ||
/datum/reagent/drink/juice/orange, | ||
/datum/reagent/drink/kefir, | ||
/datum/reagent/drink/thoom, | ||
/datum/reagent/drugs/psilocybin, | ||
/datum/reagent/drugs/three_eye, | ||
/datum/reagent/ethanol/creme_de_menthe, | ||
/datum/reagent/ethanol/gin, | ||
/datum/reagent/ethanol/tequilla, | ||
/datum/reagent/ethanol/vodka, | ||
/datum/reagent/hyperzine, | ||
/datum/reagent/kelotane, | ||
/datum/reagent/nanoblood, | ||
/datum/reagent/paracetamol, | ||
/datum/reagent/paroxetine, | ||
/datum/reagent/peridaxon, | ||
/datum/reagent/spaceacillin, | ||
/datum/reagent/tramadol, | ||
/datum/reagent/tramadol/oxycodone, | ||
/datum/reagent/tricordrazine, | ||
/datum/reagent/toxin/amatoxin, | ||
/datum/reagent/toxin/carpotoxin, | ||
/datum/reagent/toxin/venom | ||
) | ||
addprompt = "Select reagent to make mob allergic to." | ||
remprompt = "Select reagent to remove allergy to." | ||
selectable = TRUE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
/singleton/trait/malus/animal_protein | ||
name = "Animal Protein Allergy" | ||
name = "Animal Protein Intolerance" | ||
levels = list(TRAIT_LEVEL_MINOR, TRAIT_LEVEL_MAJOR) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
/singleton/trait/malus/ethanol | ||
name = "Ethanol Allergy" | ||
name = "Ethanol Intolerance" | ||
levels = list(TRAIT_LEVEL_MINOR, TRAIT_LEVEL_MODERATE, TRAIT_LEVEL_MAJOR) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
/singleton/trait/malus/sugar | ||
name = "Sugar Allergy" | ||
name = "Sugar Intolerance" | ||
levels = list(TRAIT_LEVEL_MINOR, TRAIT_LEVEL_MAJOR) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
/singleton/trait/malus/water | ||
name = "Water Allergy" | ||
description = "Also known as aquagenic urticaria." | ||
name = "Water Intolerance" | ||
levels = list(TRAIT_LEVEL_MINOR, TRAIT_LEVEL_MODERATE, TRAIT_LEVEL_MAJOR) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.