mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-01-05 22:43:46 +00:00
* Better Seed Extractor UI (#71204) ## About The Pull Request Added icons to the seed extractor, indicators that show the stat value relative to maximum possible value, tooltips to the stats, list of traits and reagents.  There is also an ability to sort and filter the table now: https://user-images.githubusercontent.com/3625094/201498368-9d620f99-28d3-4197-b73e-cd65d8285334.mp4 And an ability to scrap unneeded seeds: https://user-images.githubusercontent.com/3625094/202563846-420f395b-d4a0-4ebc-88a9-df74c9c8ca1c.mp4 ## Why It's Good For The Game It wasn't very informative with just numbers, especially if you don't know is it 5 out of 10 or 5 out of 100. ## Changelog 🆑 qol: new seed extractor UI /🆑 Co-authored-by: MrMelbert <51863163+MrMelbert@ users.noreply.github.com> Co-authored-by: tattle <66640614+dragomagol@ users.noreply.github.com> * Better Seed Extractor UI Co-authored-by: Andrew <mt.forspam@gmail.com> Co-authored-by: MrMelbert <51863163+MrMelbert@ users.noreply.github.com> Co-authored-by: tattle <66640614+dragomagol@ users.noreply.github.com>
89 lines
3.2 KiB
Plaintext
89 lines
3.2 KiB
Plaintext
/// -- Botany plant stat defines. --
|
|
/// MAXES:
|
|
#define MAX_PLANT_YIELD 10
|
|
#define MAX_PLANT_LIFESPAN 100
|
|
#define MAX_PLANT_ENDURANCE 100
|
|
#define MAX_PLANT_PRODUCTION 10
|
|
#define MAX_PLANT_POTENCY 100
|
|
#define MAX_PLANT_INSTABILITY 100
|
|
#define MAX_PLANT_WEEDRATE 10
|
|
#define MAX_PLANT_WEEDCHANCE 67
|
|
/// MINS:
|
|
#define MIN_PLANT_ENDURANCE 10
|
|
|
|
/// Default reagent volume for grown plants
|
|
#define PLANT_REAGENT_VOLUME 100
|
|
|
|
/// -- Some botany trait value defines. --
|
|
/// Weed Hardy can only reduce plants to 3 yield.
|
|
#define WEED_HARDY_YIELD_MIN 3
|
|
/// Carnivory potency can only reduce potency to 30.
|
|
#define CARNIVORY_POTENCY_MIN 30
|
|
/// Fungle megabolism plants have a min yield of 1.
|
|
#define FUNGAL_METAB_YIELD_MIN 1
|
|
|
|
/// -- Hydroponics tray defines. --
|
|
/// Macro for updating the tray name.
|
|
#define TRAY_NAME_UPDATE name = myseed ? "[initial(name)] ([myseed.plantname])" : initial(name)
|
|
/// Base amount of nutrients a tray can old.
|
|
#define STATIC_NUTRIENT_CAPACITY 10
|
|
/// Maximum amount of toxins a tray can reach.
|
|
#define MAX_TRAY_TOXINS 100
|
|
/// Maxumum pests a tray can reach.
|
|
#define MAX_TRAY_PESTS 10
|
|
/// Maximum weeds a tray can reach.
|
|
#define MAX_TRAY_WEEDS 10
|
|
/// Minumum plant health required for gene shears.
|
|
#define GENE_SHEAR_MIN_HEALTH 15
|
|
/// Minumum plant endurance required to lock a mutation with a somatoray.
|
|
#define FLORA_GUN_MIN_ENDURANCE 20
|
|
|
|
/// -- Flags for genes --
|
|
/// Plant genes that can be removed via gene shears.
|
|
#define PLANT_GENE_REMOVABLE (1<<0)
|
|
/// Plant genes that can be mutated randomly in strange seeds / due to high instability.
|
|
#define PLANT_GENE_MUTATABLE (1<<1)
|
|
/// Plant genes that can be graftable. Used in formatting text, as they need to be set to be graftable anyways.
|
|
#define PLANT_GENE_GRAFTABLE (1<<2)
|
|
|
|
/// -- Flags for seeds. --
|
|
/// Allows a plant to wild mutate (mutate on haravest) at a certain instability.
|
|
#define MUTATE_EARLY (1<<0)
|
|
|
|
/// -- Flags for traits. --
|
|
/// Caps the plant's yield at 5 instead of 10.
|
|
#define TRAIT_HALVES_YIELD (1<<0)
|
|
|
|
/// -- Trait IDs. Plants that match IDs cannot be added to the same plant. --
|
|
/// Plants that glow.
|
|
#define GLOW_ID (1<<0)
|
|
/// Plant types.
|
|
#define PLANT_TYPE_ID (1<<1)
|
|
/// Plants that affect the reagent's temperature.
|
|
#define TEMP_CHANGE_ID (1<<2)
|
|
/// Plants that affect the reagent contents.
|
|
#define CONTENTS_CHANGE_ID (1<<3)
|
|
/// Plants that do something special when they impact.
|
|
#define THROW_IMPACT_ID (1<<4)
|
|
/// Plants that transfer reagents on impact.
|
|
#define REAGENT_TRANSFER_ID (1<<5)
|
|
/// Plants that have a unique effect on attack_self.
|
|
#define ATTACK_SELF_ID (1<<6)
|
|
|
|
#define GLOWSHROOM_SPREAD_BASE_DIMINISH_FACTOR 10
|
|
#define GLOWSHROOM_SPREAD_DIMINISH_FACTOR_PER_GLOWSHROOM 0.2
|
|
#define GLOWSHROOM_BASE_INTEGRITY 60
|
|
|
|
// obj/machinery/hydroponics/var/plant_status defines
|
|
|
|
/// How long to wait between plant age ticks, by default. See [/obj/machinery/hydroponics/var/cycledelay]
|
|
#define HYDROTRAY_CYCLE_DELAY 20 SECONDS
|
|
|
|
#define HYDROTRAY_NO_PLANT "missing"
|
|
#define HYDROTRAY_PLANT_DEAD "dead"
|
|
#define HYDROTRAY_PLANT_GROWING "growing"
|
|
#define HYDROTRAY_PLANT_HARVESTABLE "harvestable"
|
|
|
|
/// A list of possible egg laying descriptions
|
|
#define EGG_LAYING_MESSAGES list("lays an egg.","squats down and croons.","begins making a huge racket.","begins clucking raucously.")
|