forked from Revolutionary-Games/Thrive
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request Revolutionary-Games#172 from Revolutionary-Games/1…
…46-photosynthesis Photosynthesis added. This also involves a refactor to how organelles are created, they now use factory for normalized creation.
- Loading branch information
Showing
8 changed files
with
286 additions
and
215 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
<?xml version="1.0" ?> | ||
<Compounds> | ||
<Compound name="atp" weight="1"> | ||
<Display text="ATP"> | ||
<Model file="atp.mesh" size="0.1" /> | ||
</Display> | ||
</Compound> | ||
<Compound name="oxygen" weight="1"> | ||
<Display text="Oxygen" > | ||
<Model file="molecule.mesh" size="0.3" /> | ||
</Display> | ||
</Compound> | ||
<Compound name="reproductase" weight="1"> | ||
<Display text="Reproductase" > | ||
<Model file="hex.mesh" size="0.3" /> | ||
</Display> | ||
</Compound> | ||
<Compound name="aminoacids" weight="1"> | ||
<Display text="Amino Acids"> | ||
<Model file="hex.mesh" size="0.3" /> | ||
</Display> | ||
</Compound> | ||
<Compound name="ammonia" weight="1"> | ||
<Display text="Ammonia" > | ||
<Model file="hex.mesh" size="0.3" /> | ||
</Display> | ||
</Compound> | ||
<Compound name="glucose" weight="1"> | ||
<Display text="Glucose" > | ||
<Model file="glucose.mesh" size="0.3" /> | ||
</Display> | ||
</Compound> | ||
<Compound name="co2" weight="1"> | ||
<Display text="CO2" > | ||
<Model file="co2.mesh" size="0.16" /> | ||
</Display> | ||
</Compound> | ||
|
||
<AgentCompounds> | ||
<Agent name="oxytoxy" weight="1"> | ||
<Display text="OxyToxy NT" > | ||
<Model file="oxytoxy.mesh" size="0.3" /> | ||
</Display> | ||
<Effect function="oxytoxyEffect" /> | ||
</Agent> | ||
</AgentCompounds> | ||
</Compounds> |
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,52 @@ | ||
<?xml version="1.0" ?> | ||
<Processes> | ||
<Process name="Respiration" speedFactor="0.5" energyCost="0"> | ||
<Inputs> | ||
<Input compound="glucose" amount="1"/> | ||
<Input compound="oxygen" amount="6"/> | ||
</Inputs> | ||
<Outputs> | ||
<Output compound="co2" amount="6"/> | ||
<Output compound="atp" amount="36"/> | ||
</Outputs> | ||
</Process> | ||
<Process name="ReproductaseSynthesis" speedFactor="2.2" energyCost="30"> | ||
<Inputs> | ||
<Input compound="aminoacids" amount="6"/> | ||
<Input compound="glucose" amount="6"/> | ||
<Input compound="oxygen" amount="6"/> | ||
<Input compound="atp" amount="6"/> | ||
</Inputs> | ||
<Outputs> | ||
<Output compound="reproductase" amount="1"/> | ||
</Outputs> | ||
</Process> | ||
<Process name="AminoAcidSynthesis" speedFactor="3.5" energyCost="0"> | ||
<Inputs> | ||
<Input compound="glucose" amount="1"/> | ||
<Input compound="ammonia" amount="1"/> | ||
</Inputs> | ||
<Outputs> | ||
<Output compound="co2" amount="1"/> | ||
<Output compound="atp" amount="2"/> | ||
<Output compound="aminoacids" amount="1"/> | ||
</Outputs> | ||
</Process> | ||
<Process name="OxyToxySynthesis" speedFactor="0.1" energyCost="1"> | ||
<Inputs> | ||
<Input compound="oxygen" amount="3"/> | ||
</Inputs> | ||
<Outputs> | ||
<Output compound="oxytoxy" amount="1"/> | ||
</Outputs> | ||
</Process> | ||
<Process name="Photosynthesis" speedFactor="0.2" energyCost="0"> | ||
<Inputs> | ||
<Input compound="co2" amount="6"/> | ||
</Inputs> | ||
<Outputs> | ||
<Output compound="glucose" amount="1"/> | ||
<Output compound="oxygen" amount="6"/> | ||
</Outputs> | ||
</Process> | ||
</Processes> |
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.