Evotest

== Game Setting ==
Osmosis Jones style game set in the Game Master's body. Day to day things will effect the game. Stub your toe? Maybe that effects someone running a foot fungus. Eat some bad chicken? Anybody hanging around the stomach is sure to notice. Fight to establish a significant presence in the highly contested Host Body sometimes with other players, and sometimes against - whether intentionally or not - with the Integrated Organism Interaction & Evolution Framework. 
Whether you thrive in the humid bogs of the armpit, or you're snuffed out for being too intrusive is between you, the GM, and RNGesus. 
Evolve ◎ Mutate ◎ Adapt ◎ Survive
== Host Systems ==
Set of base systems of the human body that may be interacted with. These systems can be adapted, modified, removed, or added to by following the standard format and updating tables appropriately. 
 
The human body is composed of several interconnected systems, each performing essential functions necessary for survival and health. Here is an overview of the major systems:
Integumentary System 	Comprising the skin and associated structures, it protects the body from external threats and helps retain water.
Musculoskeletal System	Consists of muscles and bones, providing structure, support, and enabling movement.
Respiratory System 	Includes the lungs and airways, responsible for taking in oxygen and expelling carbon dioxide.
Circulatory System 	Composed of the heart, blood, and blood vessels, it delivers oxygen and nutrients to cells and removes waste products.
Digestive System 	Involves organs like the stomach and intestines, breaking down food into nutrients for absorption and eliminating waste.
Excretory System 	Comprising the kidneys and urinary structures, it removes waste products from the blood and maintains fluid balance.
Nervous System 	Includes the brain, spinal cord, and nerves, processing sensory information and coordinating responses.
Endocrine System 	Consists of glands that secrete hormones, regulating various body functions.
★Reproductive System★ 	Involves sex organs necessary for reproduction. - COMING SOON ■■□
Each system is vital and works in concert with others to maintain the body's homeostasis and overall health.
== Integrated Organism Interaction & Evolution Framework ==
Project Summary (Version 1.0):
• Setting:
 – A dynamic inner‑world adventure set inside a living host (The Game Master) - imagine Osmosis Jones with strategic depth and RNG.
– Real Life Events impact the game world using the GM as a catalyst for in-game RNG. A GM experiencing food poisoning impacts the game 
world differently than a GM that's stubbed their toe, or gotten a sunburn.
 – Eight interacting systems: Integumentary, Musculoskeletal, Respiratory, Nervous, Circulatory, Excretory, Endocrine, and Digestive
– ★Reproductive System - COMING SOON ■■□
• Focus:
 – Real‑world organisms re-imagined as scientifically inspired, ominous medical entities
 – Rich inter‑organ interactions, shifting alliances, and adaptive evolution
 – A dynamic evolution engine driving spontaneous, context‑driven trait mutations
• Gameplay:
 – Micro‑scale battles within individual organs that ripple into global host effects
 – Strategic trade‑offs: every mutation confers both benefits and detriments
 – Positive play-tester feedback on balance and nuance
• Integrated Framework:
 – Covers eight systems with scientifically inspired organism interactions
 – Detailed interaction and clinical descriptions provide rich, narrative depth
• Enhanced Evolution Mechanics:
 – Refined Python engine for mutation event handling
 – Separate probabilistic rolls for positive (≥1) and negative (90% chance) traits, with rare secondary increments
• Trait Lists:
 – Comprehensive generic and system‑specific trait lists guide adaptive evolution
• Playtest-Ready:
 – Fully integrated system designed for nuanced, context‑driven in‑body conflict simulations
• Module Design:
– System designed to be adaptable and interchangeable with standardized formats.
== TODO - MAPS / IMAGES ==
== Unified Organism Interaction Table ==
Effect Code	IRL Organism 	Organism (Sci‑Fi Name & Code) 	Effects 	System Affected	IDC*
E1 	Staphylococcus aureus 	Nocturnus Mortiferum (SR‑271) 	Causes fiery, pus‑filled infections on the skin that open wounds and spread toxins. 	Integumentary 	INT‑001
E2 	Trichophyton spp. 	Obscurus Mycogen (JIL‑02) 	Weaves fungal networks into the skin, triggering itching, scaling, and decay. 	Integumentary 	INT‑002
E3 	Sarcoptes scabiei 	Vesperis Exiguus (XQ‑109) 	Burrows into the skin to form itchy, inflamed tunnels and rashes. 	Integumentary 	INT‑002
E4 	Staphylococcus epidermidis 	Custos Aegri (RX‑310) 	Protects the skin by outcompeting harmful invaders and maintaining microbial balance. 	Integumentary 	INT‑001
E5 	Cutibacterium acnes 	Fuscum Folliculus (VD‑503) 	Maintains the skin’s microbiome to prevent overgrowth of harmful organisms. 	Integumentary 	INT‑001
E6 	Lactobacillus spp. 	Fervens Atrum (LX‑240) 	Enhances skin defenses and reduces inflammation. 	Integumentary 	INT‑003
E7 	Botfly Larvae 	Instar Nocens (KP‑820) 	Hatches from decaying tissue to accelerate local decomposition on the skin. 	Integumentary 	INT‑003
E8 	Mycobacterium tuberculosis 	Mycobacterium Mortifex (ZT‑707) 	Consumes bone tissue, causing weakness, pain, and deformities. 	Musculoskeletal	INT‑004
E9 	Staphylococcus aureus 	Ossicida Infortunatus (WM‑331) 	Infects bones and joints, inflicting severe pain and structural damage. 	Musculoskeletal	INT‑004
E10 	Borrelia burgdorferi 	Spirochaeta Caedis (YB‑412) 	Inflames joints, leading to stiffness, swelling, and chronic pain. 	Musculoskeletal	INT‑005
E11 	Lactobacillus spp. 	Osseodux (QH‑119) 	Enhances calcium absorption to strengthen bones and joints. 	Musculoskeletal	INT‑005, INT‑007
E12 	Bifidobacterium spp. 	Reductrix Novum (FG‑605) 	Reduces joint inflammation, easing pain and improving mobility. 	Musculoskeletal	INT‑006
E13 	Bacillus subtilis 	Bacillus Duratus (PN‑248) 	Produces nutrients that fortify bone structure and improve integrity. 	Musculoskeletal	INT‑006
E14 	Parasitic Wasp 	Aculeatus Penetratum (HJ‑312) 	Grows larvae inside soft tissues—initially promoting regeneration, then causing necrosis. 	Musculoskeletal	INT‑007
E15 	Mycobacterium tuberculosis 	Mycobacterium Dissolvens (BW‑540)	Destroys lung tissue, triggering coughing, weight loss, and respiratory failure. 	Respiratory 	INT‑008
E16 	Influenza virus 	Virus Glacialis (DC‑777) 	Freezes the airways, provoking fever, chills, and fatigue. 	Respiratory 	INT‑008, INT‑011
E17 	Streptococcus pneumoniae 	Coccus Effundens (OP‑180) 	Floods the lungs with fluid, resulting in labored breathing and chest pain. 	Respiratory 	INT‑009
E18 	Lactobacillus rhamnosus 	Bacterium Aegidalis (TF‑890) 	Boosts the immune response to fight respiratory invaders and reduce severity. 	Respiratory 	INT‑009
E19 	Bifidobacterium breve 	Minutum Serenus (VX‑102) 	Soothes inflamed airways, reducing coughing and improving airflow. 	Respiratory 	INT‑010
E20 	Commensal nasal microbiota 	Defensorum Aerius (JM‑465) 	Blocks harmful invaders from entering the airways, maintaining respiratory health. 	Respiratory 	INT‑010
E21 	Deep‑sea Anglerfish Bacteria	Profundum Splendens (KU‑903) 	Colonizes the lungs with glowing colonies that attract nocturnal predators. 	Respiratory 	INT‑011
E22 	Cordyceps fungus 	Fungus Psychodominus (QP‑330) 	Induces vivid hallucinations and compels the host to unwittingly spread spores. 	Nervous 	INT‑012
E23 	Toxoplasma gondii 	Protozoa Insidiosus (AW‑556) 	Alters host behavior, heightening aggression and risk‑taking tendencies. 	Nervous 	INT‑012, INT‑013
E24 	Brain‑Eating Amoeba 	Protozoa Exanimus (LF‑229) 	Devours neural tissue, leading to progressive cognitive decline and eventual collapse. 	Nervous 	INT‑013
E25 	Leech 	Annelid Hemofragus (NR‑710) 	Feeds on blood while secreting anticoagulants that delay clotting and enhance circulation.	Circulatory 	INT‑014, INT‑015
E26 	Plasmodium falciparum 	Protozoa Erythroclast (YQ‑481) 	Parasitizes red blood cells, causing anemia and disrupting immune signaling. 	Circulatory 	INT‑014
E27 	Leptospira interrogans 	Spirillum Veneficus (CB‑367) 	Invades blood vessel walls, causing hemorrhages and systemic toxicity. 	Circulatory 	INT‑015
E28 	Tick 	Acari Sanguinatus (RM‑113) 	Drains bodily fluids and spreads necrotic infections, accelerating host deterioration. 	Excretory 	INT‑016, INT‑017
E29 	Schistosoma haematobium 	Trematode Obscuratus (QJ‑900) 	Burrows through urinary tract tissues, eliciting inflammation and obstruction. 	Excretory 	INT‑016, INT‑018
E30 	Candida albicans 	Yeast Obnubilus (ZX‑655) 	Colonizes the urinary tract, modifying fluid dynamics and occasionally causing blockages. 	Excretory 	INT‑017, INT‑018
* Each IDC (Interaction Detail Code) references the corresponding inter-organism interaction(s) defined in the Inter-Organism Dynamics and Host Impact table.
== Expanded Descriptions (Effects) ==
Code	Updated Expanded Description
E1 	Nocturnus Mortiferum (SR‑271): The patient presents with widespread, inflamed lesions that ooze a thick, toxic exudate. The skin appears markedly erythematous and in septic disarray.
E2 	Obscurus Mycogen (JIL‑02): Examination reveals extensive fungal colonization of the dermal layers. The affected skin is scaly, pruritic, and shows clear signs of chronic decay.
E3 	Vesperis Exiguus (XQ‑109): Numerous microscopic burrows disrupt the epidermis, leading to persistent irritation and a diffuse, patchy rash.
E4 	Custos Aegri (RX‑310): Despite ongoing microbial assault, the skin’s defensive barrier actively secretes antimicrobial peptides, maintaining order.
E5 	Fuscum Folliculus (VD‑503): The patient’s sebaceous activity appears normal with a balanced microbial flora, although early disruption is noted in vulnerable areas.
E6 	Fervens Atrum (LX‑240): Local immune markers are moderately elevated, suggesting a controlled yet persistent infection.
E7 	Instar Nocens (KP‑820): Rapid degradation of necrotic tissue is observed, releasing nutrients that may fuel opportunistic pathogens.
E8 	Mycobacterium Mortifex (ZT‑707): Chronic bone resorption is evident, accompanied by persistent pain and diminished skeletal integrity.
E9 	Ossicida Infortunatus (WM‑331): A deep‑seated bone marrow infection causes severe, debilitating pain and structural compromise.
E10 	Spirochaeta Caedis (YB‑412): Joint inflammation manifests as marked stiffness, swelling, and chronic pain due to persistent inflammatory processes.
E11 	Osseodux (QH‑119): Increased calcium deposition in bone suggests a compensatory repair mechanism that is ultimately insufficient to offset ongoing damage.
E12 	Reductrix Novum (FG‑605): Joint cytokine levels are reduced, resulting in decreased inflammation and modest improvements in mobility.
E13 	Bacillus Duratus (PN‑248): Enhanced nutrient deposition within the bone matrix is observed, though overall structural improvements remain marginal.
E14 	Aculeatus Penetratum (HJ‑312): Initial tissue regeneration is rapidly overtaken by focal necrosis, indicating a chaotic and ineffective healing response.
E15 	Mycobacterium Dissolvens (BW‑540): Extensive lung parenchyma destruction leads to severe respiratory compromise and diminished gas exchange capacity.
E16 	Virus Glacialis (DC‑777): Alternating chills and low‑grade fevers are evident, consistent with viral-induced localized airway cooling.
E17 	Coccus Effundens (OP‑180): Significant fluid accumulation in the lungs results in labored breathing and chest discomfort.
E18 	Bacterium Aegidalis (TF‑890): Local hyperthermia and heightened immune responses are present in pulmonary tissue, providing marginal resistance to invasion.
E19 	Minutum Serenus (VX‑102): A modest reduction in airway inflammation improves ventilation, although overall function remains compromised.
E20 	Defensorum Aerius (JM‑465): A robust mucosal barrier in the nasal passages effectively blocks further pathogen ingress.
E21 	Profundum Splendens (KU‑903): Glowing bacterial colonies alter the lung’s microenvironment and attract secondary microbial activity.
E22 	Fungus Psychodominus (QP‑330): Notable sensory distortions and disorientation occur due to disrupted neural receptor activity.
E23 	Protozoa Insidiosus (AW‑556): Altered neurotransmission results in increased aggression and erratic behavior, impairing cognitive function.
E24 	Protozoa Exanimus (LF‑229): Progressive neural tissue loss manifests as cognitive decline and diminished neurological performance.
E25 	Annelid Hemofragus (NR‑710): Prolonged bleeding and local hemorrhage from parasitic blood extraction lead to significant circulatory instability.
E26 	Protozoa Erythroclast (YQ‑481): Hemolytic destruction of red blood cells produces anemia with accompanying fatigue and pallor.
E27 	Spirillum Veneficus (CB‑367): Breaches in vascular integrity result in hemorrhage and toxin release, destabilizing blood flow.
E28 	Acari Sanguinatus (RM‑113): Aggressive fluid loss and localized necrosis contribute to systemic dehydration and electrolyte imbalances.
E29 	Trematode Obscuratus (QJ‑900): Severe urinary tract inflammation and obstruction heighten the risk of toxin accumulation and renal failure.
E30 	Yeast Obnubilus (ZX‑655): Colonization of the urinary tract modifies fluid dynamics and may occasionally lead to blockages.
== Inter-Organism Dynamics and Host Impact Interactions ==
The table below maps out interactions between organisms from the reference table (Unified Organism Interaction Table). Each interaction is assigned a unique code (INT‑001, INT-002, etc.) and includes a brief description mechanism of the mechanisms involved in each interaction, along with the resulting impact of these interactions on the host.
Interaction Detail Codes	Interacting Organisms 	Mechanism of Interaction 	Resulting Host Impact
INT‑001 	Nocturnus Mortiferum (SR‑271) vs Custos Aegri (RX‑310) & Fuscum Folliculus (VD‑503)	Nocturnus Mortiferum releases potent toxins that breach the epidermal barrier, triggering Custos Aegri and Fuscum Folliculus to counter with antimicrobial secretions. 	Severe skin infections with rapid tissue degradation and a high risk of systemic sepsis.
INT‑002 	Obscurus Mycogen (JIL‑02) vs Vesperis Exiguus (XQ‑109) 	Obscurus Mycogen’s invasive fungal networks exacerbate skin decay while Vesperis Exiguus burrows into the epidermis, intensifying local irritation. 	Chronic cutaneous decay, persistent inflammation, and extensive rashes.
INT‑003 	Fervens Atrum (LX‑240) vs Instar Nocens (KP‑820) 	Fervens Atrum bolsters skin defenses and reduces inflammation, but Instar Nocens accelerates tissue decomposition through rapid larval activity. 	Localized necrosis with disruption of the skin’s microbial balance.
INT‑004 	Mycobacterium Mortifex (ZT‑707) vs Ossicida Infortunatus (WM‑331) 	Mycobacterium Mortifex aggressively consumes bone tissue while Ossicida Infortunatus infects and undermines bone integrity. 	Progressive osteolysis, severe pain, and structural skeletal damage.
INT‑005 	Spirochaeta Caedis (YB‑412) vs Osseodux (QH‑119) 	Spirochaeta Caedis incites joint inflammation and fluid buildup, while Osseodux attempts reparative calcium deposition that fails to keep pace. 	Chronic joint stiffness, swelling, and ineffective repair leading to persistent pain.
INT‑006 	Reductrix Novum (FG‑605) vs Bacillus Duratus (PN‑248) 	Reductrix Novum reduces inflammatory signals in joints as Bacillus Duratus produces nutrients to fortify bone structure; their actions conflict in a suboptimal repair effort.	Marginal joint improvement overshadowed by ongoing degenerative changes.
INT‑007 	Aculeatus Penetratum (HJ‑312) vs Osseodux (QH‑119) 	Aculeatus Penetratum initiates larval invasion that first promotes regeneration but soon triggers necrosis, countered by Osseodux’s attempted repair. 	Erratic musculoskeletal repair, structural instability, and chronic pain.
INT‑008 	Mycobacterium Dissolvens (BW‑540) vs Virus Glacialis (DC‑777) 	Mycobacterium Dissolvens destroys lung parenchyma while Virus Glacialis freezes the airways, compounding tissue damage. 	Severe respiratory failure, impaired gas exchange, and persistent coughing.
INT‑009 	Coccus Effundens (OP‑180) vs Bacterium Aegidalis (TF‑890) 	Coccus Effundens floods the lungs with fluid, while Bacterium Aegidalis mounts an enhanced immune response. 	Impaired ventilation with an increased risk of pulmonary edema.
INT‑010 	Minutum Serenus (VX‑102) vs Defensorum Aerius (JM‑465) 	Minutum Serenus soothes inflamed airways as Defensorum Aerius blocks harmful invaders from entering. 	Temporary alleviation of respiratory distress with incomplete resolution of hypoxia.
INT‑011 	Profundum Splendens (KU‑903) vs Virus Glacialis (DC‑777) 	Profundum Splendens colonizes lung tissue and disrupts local immunity, which exacerbates the freezing effect of Virus Glacialis. 	Disorganized pulmonary defense leading to severe respiratory distress and compromised oxygen exchange.
INT‑012 	Fungus Psychodominus (QP‑330) vs Protozoa Insidiosus (AW‑556) 	Fungus Psychodominus releases neurotoxic spores that induce hallucinations while Protozoa Insidiosus disrupts normal neurotransmission. 	Profound neuropsychiatric disturbances, erratic behavior, and cognitive impairment.
INT‑013 	Protozoa Insidiosus (AW‑556) vs Protozoa Exanimus (LF‑229) 	Protozoa Insidiosus heightens neural excitation, while Protozoa Exanimus progressively erodes neural tissue through direct consumption. 	Progressive neural degeneration culminating in irreversible cognitive collapse.
INT‑014 	Annelid Hemofragus (NR‑710) vs Protozoa Erythroclast (YQ‑481) 	Annelid Hemofragus feeds on blood while Protozoa Erythroclast parasitizes red blood cells, compounding blood loss. 	Severe anemia, reduced oxygen transport, and overall circulatory compromise.
INT‑015 	Spirillum Veneficus (CB‑367) vs Annelid Hemofragus (NR‑710) 	Spirillum Veneficus invades and degrades vessel walls, which worsens the blood loss already driven by Annelid Hemofragus. 	Catastrophic circulatory collapse with extensive hemorrhage and systemic toxicity.
INT‑016 	Acari Sanguinatus (RM‑113) vs Trematode Obscuratus (QJ‑900) 	Acari Sanguinatus aggressively drains bodily fluids while Trematode Obscuratus burrows into urinary tract tissues. 	Severe dehydration, urinary tract inflammation, and obstruction that can lead to renal failure.
INT‑017 	Acari Sanguinatus (RM‑113) vs Yeast Obnubilus (ZX‑655) 	Acari Sanguinatus promotes necrotic infections that are compounded by Yeast Obnubilus colonizing the urinary tract and disrupting fluid dynamics. 	Increased risk of urinary blockages, progressive renal dysfunction, and systemic toxicity.
INT‑018 	Trematode Obscuratus (QJ‑900) vs Yeast Obnubilus (ZX‑655) 	Trematode Obscuratus causes physical obstruction in the urinary tract while Yeast Obnubilus alters the normal flow of fluids. 	Chronic urinary dysfunction with a high risk of renal complications and toxin buildup.
== Expanded Random Evolution Mechanics ==
Mechanic Overview:
• Objective: Enable dynamic, unpredictable evolution for each organism via mutation events
• Trait Rolls:
 – Positive Traits: Always ≥ 1 trait
  • Distribution: ~70% chance for 1, 20% for 2, 10% for 3
 – Negative Traits: 90% chance to generate negatives
  • If generated: ~70% chance for 1, 20% for 2, 10% for 3
 – Secondary Check: 5% chance to increment trait count by 1 (capped at 3) for each category
Context Determination (Primary Roll):
Primary Roll Range	Context
0.00 – 0.03 	Global Economic Collapse
0.03 – 0.10 	Host Instability
0.10 – 0.20 	Environmental Adaptation
0.20 – 0.35 	Competitor Pressure
0.35 – 0.50 	Host Immune Surge
0.50 – 0.65 	Symbiotic Adaptation
0.65 – 0.80 	Optimal Niche Exploitation
0.80 – 0.95 	Toxic Overload
0.95 – 1.00 	Evolutionary Jackpot
Also included is a refined Python code snippet (see evolve.py below) that implements these mechanics.▷ evolve.pyimport random
def roll_positive_traits():
   # Always returns at least 1 positive trait
   r = random.uniform(0, 1)
   if r < 0.70:
       return 1
   elif r < 0.90:
       return 2
   else:
       return 3
def roll_negative_traits():
   # 90% chance to generate negative traits; 10% chance of 0 traits
   if random.uniform(0, 1) > 0.90:
       return 0
   r = random.uniform(0, 1)
   if r < 0.70:
       return 1
   elif r < 0.90:
       return 2
   else:
       return 3
def evolution_event():
   # Primary roll to determine context
   primary_roll = random.uniform(0, 1)
   if primary_roll < 0.03:
       context = "Global Economic Collapse"
   elif primary_roll < 0.10:
       context = "Host Instability"
   elif primary_roll < 0.20:
       context = "Environmental Adaptation"
   elif primary_roll < 0.35:
       context = "Competitor Pressure"
   elif primary_roll < 0.50:
       context = "Host Immune Surge"
   elif primary_roll < 0.65:
       context = "Symbiotic Adaptation"
   elif primary_roll < 0.80:
       context = "Optimal Niche Exploitation"
   elif primary_roll < 0.95:
       context = "Toxic Overload"
   else:
       context = "Evolutionary Jackpot"
   
   # Roll for positive traits (always at least 1)
   pos_traits = roll_positive_traits()
   # Secondary check: 5% chance to add one extra positive trait (max 3)
   if pos_traits < 3 and random.uniform(0, 1) < 0.05:
       pos_traits += 1
   # Roll for negative traits
   neg_traits = roll_negative_traits()
   # Secondary check: 5% chance to add one extra negative trait (max 3) if any are generated
   if neg_traits > 0 and neg_traits < 3 and random.uniform(0, 1) < 0.05:
       neg_traits += 1
   event = {
       "context": context,
       "positive_traits": pos_traits,
       "negative_traits": neg_traits,
       # "detailed_note": f"Context: {context}; Positive Traits: {pos_traits}; Negative Traits: {neg_traits}"
   }
   return event
# Example usage:
mutation_result = evolution_event()
print("Evolution Mutation Event:", mutation_result)
== Lists of Positive and Negative Traits ==
Generic Traits
Positive Traits 	Negative Traits
Rapid replication 	Increased metabolic cost
Enhanced adaptability 	Heightened immunogenicity
Robust metabolic efficiency 	Vulnerability to environmental fluctuations
Increased resource uptake 	Slower replication rate
Elevated resilience to environmental stress	Reduced mobility
Integumentary System Traits
Positive 	Negative
Enhanced adhesion to skin layers 	Susceptibility to antimicrobial peptides
Formation of protective biofilms 	Poor adhesion under desiccating conditions
Resilience to topical disinfectants 	Rapid desiccation in low‑moisture environments
Efficient extraction of nutrients from skin lipids	High immunogenic profile
Rapid superficial replication 	Instability in variable pH conditions
Musculoskeletal System Traits
Positive 	Negative
Superior degradation of bone matrix 	Inability to traverse dense connective tissue
Improved penetration of calcified tissues	Vulnerability to mechanical disruption
Resistance to osteoblastic defenses 	Reduced replication in nutrient‑poor bone regions
Mimicry of bone matrix components 	Poor adhesion to cartilage
Affinity for synovial fluid 	High immunogenicity in osseous tissue
Respiratory System Traits
Positive 	Negative
High oxygen utilization efficiency 	Susceptibility to mucus entrapment
Thriving in moist pulmonary environments	Reduced replication in hypoxic zones
Evasion of alveolar immune responses 	Sensitivity to inhaled toxins
Efficient aerosol dissemination 	Poor adhesion to epithelial surfaces
Rapid replication in oxygen‑rich areas 	Rapid clearance by alveolar macrophages
Nervous System Traits
Positive 	Negative
Enhanced infiltration of neural tissue 	Increased detection by microglia
Resistance to microglial detection 	Poor adaptation to hypoxic neural tissue
Efficient spread along neural pathways 	Neurotoxic overload risking premature host demise
Production of neuroactive compounds 	High immunogenicity in the central nervous system
High lipid affinity in myelinated regions	Slow migration in dense neural networks
Circulatory System Traits
Positive 	Negative
Enhanced mobility within blood flow 	Susceptibility to shear forces
Superior adhesion to vascular walls 	Poor endothelial adhesion
Resistance to clotting mechanisms 	Increased detection by circulating immune cells
Efficient nutrient extraction from blood	Rapid clearance by splenic filtration
Rapid systemic dissemination 	Fragility under turbulent flow
Excretory System Traits
Positive 	Negative
Resistance to high toxin concentrations 	Poor replication in acidic conditions
Enhanced replication in urinary environments	High sensitivity to urinary antimicrobials
Strong adhesion to renal tissues 	Susceptibility to flushing mechanisms
Efficient colonization of excretory ducts 	Rapid clearance during diuresis
Resilience to fluctuating fluid dynamics 	Low adhesion to uroepithelial surfaces
Endocrine System Traits
Positive 	Negative
Enhanced disruption of hormone signaling 	Susceptibility to hormone‑induced immune activation
Resistance to endocrine regulatory peptides	Poor adhesion to glandular tissues
Efficient mimicry of hormonal structures 	High sensitivity to metabolic byproducts
Thriving in glandular microenvironments 	Rapid detection by endocrine surveillance
Elevated proliferation in endocrine tissues	Instability with fluctuating hormone levels
Digestive System Traits
Positive 	Negative
Enhanced resistance to gastric acid 	High susceptibility to digestive enzymes
Efficient breakdown of complex substrates 	Poor survival in highly acidic conditions
Superior adhesion to gut mucosa 	Vulnerability to bile‑induced lysis
Rapid replication in nutrient‑rich zones 	Rapid clearance via peristalsis
Resilience to bile salts and digestive enzymes	Elevated immunogenicity in gastrointestinal tissue
== Summary & Next Steps ==
Next Steps:
• Prototype & Simulate: Implement the Python engine and conduct extensive simulations; adjust thresholds per playtester feedback.
• Script Interactions: Develop sample in‑body battle scenarios using detailed descriptions to assess system dynamics.
• Collect & Iterate: Gather playtester input and refine mechanics and narrative details for optimal balance.
• Expand Trait Definitions: Further develop individual trait effects and incorporate additional modifiers.
== IN-PROGRESS: ==
=== Balance, Evolution, and Adaptive Dynamics ===
To create a balanced and engaging gameplay experience—where organisms can evolve adaptive traits based on their location in the host and interactions with other entities implementation of the following design principles is suggested:
• Dynamic Trait Evolution:
Each organism can be given a mutable set of traits (e.g., infectivity, resistance, mobility, and metabolic efficiency). These traits can evolve spontaneously when an organism encounters selective pressures, such as a particularly aggressive immune response in one organ or an advantageous symbiosis with another organism. As these traits evolve, they may confer benefits (increased spread, enhanced survival, etc.) or drawbacks (higher metabolic costs, increased vulnerability elsewhere).
• Environment‐Based Selective Pressures:
Different organs present distinct environments. For example, the lung’s oxygen levels, the skin’s exposure to external pathogens, and the bone’s nutrient availability each create unique selective pressures. Organisms will have opportunities to specialize—and may evolve traits that are beneficial in one niche while being less effective in another. This drives strategic decision‑making and balance both at the level of individual hosts and across the entire population.
• Interaction-Driven Evolution:
The interactions between organisms (such as symbiosis, predation, or competition) should act as catalysts for adaptation. When two organisms interact—whether by aiding each other or engaging in combat—their “battles” can trigger mutation events that lead to the spontaneous emergence of adaptive traits. For example, an organism that frequently clashes with a host defense might evolve a countermeasure, but that adaptation could come with an inherent trade‑off, such as reduced speed or increased resource demands.
• Trade-Offs and Costs:
No adaptive trait should be free. Each positive evolution (e.g., enhanced virulence or resistance) should be balanced by an associated cost (such as a slower replication rate or increased detection by the host’s immune system). This creates an inherent tension: while an organism might become more formidable in one area, it may become more vulnerable in another. Such trade‑offs are essential for maintaining long‑term balance and ensuring that no single organism can dominate unchecked.
• Meta‑Game and Population-Level Effects:
Local adaptations within a single host can scale up to influence the entire population. For instance, if an organism evolves a trait that allows it to overcome local immune defenses, that trait could spread across multiple hosts, leading to emergent epidemics—or conversely, trigger a host-wide counter-response. Incorporating global events (like immune system “resets” or widespread environmental changes) adds another layer of strategy and dynamism.
• Evolution Triggers and Random Mutation Events:
Introduce mechanics (such as periodic “mutation events” or response rolls triggered by significant interactions) that allow for sudden bursts of evolution. These events can be random or situational—occurring, for example, when an organism’s traits reach a critical threshold or when multiple interactions coincide. This helps keep gameplay unpredictable and encourages creative tactical responses.
By building in these dynamic, environment- and interaction-based evolutionary mechanisms, you create a living, breathing ecosystem inside the host that challenges players to balance aggression, adaptation, and survival—both at the micro (within a single body) and macro (across a population) levels. The promise of spontaneous trait evolution, along with carefully designed trade‑offs, ensures that every encounter is meaningful and that the long‑term trajectory of the game remains engaging and balanced.
== Running a Game ==
Each player rolls for a Base System from the Host Systems table.
Each starting Organism evolves once using the evolve.py script located in the Expanded Random Evolution Mechanics section. For each player, the script will be run twice, using the result that has the lowest number of total traits (Positive + Negative). 
For instance assume the Initial Evolution returns the following results:
Evolution Mutation Event: {'context': 'competitor pressure', 'positive_traits': 1, 'negative_traits': 1}
Evolution Mutation Event: {'context': 'environment adaptation', 'positive_traits': 2, 'negative_traits': 2}
The results from the first roll would be used because the total number of traits (2) is less then the total number of traits in the second roll (4).
Traits can be selected from the Lists of Positive and Negative Traits table from among the Organism's Base System (Integumentary System Traits, Musculoskeletal System Traits, etc.) and Generic Traits. Whether these are selected, assigned, or agreed upon is up to the table.
TODO...