OKAY now I'm done I think.

This commit is contained in:
Fermi
2019-09-21 09:31:53 +01:00
parent 4b44b31aa3
commit a08c1229d6
5 changed files with 49 additions and 10 deletions
@@ -82,16 +82,16 @@
OptimalpHMax = 9.5 // Higest value for above
ReactpHLim = 2 // How far out pH wil react, giving impurity place (Exponential phase)
CatalystFact = 0 // How much the catalyst affects the reaction (0 = no catalyst)
CurveSharpT = 2.5 // How sharp the temperature exponential curve is (to the power of value)
CurveSharpT = 1 // How sharp the temperature exponential curve is (to the power of value)
CurveSharppH = 2.5 // How sharp the pH exponential curve is (to the power of value)
ThermicConstant = 0.01 // Temperature change per 1u produced
HIonRelease = 0.01 // pH change per 1u reaction (inverse for some reason)
RateUpLim = 0.02 // Optimal/max rate possible if all conditions are perfect
RateUpLim = 0.05 // Optimal/max rate possible if all conditions are perfect
FermiChem = TRUE // If the chemical uses the Fermichem reaction mechanics
PurityMin = 0
/datum/chemical_reaction/synthtissue/FermiCreate(datum/reagents/holder, added_volume, added_purity)
var/datum/reagent/St = holder.has_reagent("synthtissue")
var/datum/reagent/synthtissue/St = holder.has_reagent("synthtissue")
var/datum/reagent/N = holder.has_reagent("nutriment")
if(!St)
return
@@ -102,6 +102,8 @@
St.volume *= St.purity
St.purity = 1
N.volume -= 0.002
St.grown_volume += added_volume
St.data = St.grown_volume
/datum/chemical_reaction/styptic_powder
name = "Styptic Powder"
+1 -1
View File
@@ -5,7 +5,7 @@
/datum/surgery/graft_synthtissue
name = "Graft_synthtissue"
species = list(/mob/living/carbon/human, /mob/living/carbon/monkey)
possible_locs = list(BODY_ZONE_CHEST)
possible_locs = list(BODY_ZONE_CHEST, BODY_ZONE_PRECISE_GROIN, BODY_ZONE_PRECISE_EYES)
steps = list(
/datum/surgery_step/incise,
/datum/surgery_step/retract_skin,
+19 -2
View File
@@ -198,7 +198,7 @@
/mob/living/proc/regenerate_organs()
return 0
/mob/living/carbon/regenerate_organs()
/mob/living/carbon/regenerate_organs(only_one = FALSE)
var/breathes = TRUE
var/blooded = TRUE
if(dna && dna.species)
@@ -217,6 +217,8 @@
else
LI = new()
LI.Insert(src)
if(only_one)
return
if(has_stomach && !getorganslot(ORGAN_SLOT_STOMACH))
var/obj/item/organ/stomach/S
@@ -226,14 +228,20 @@
else
S = new()
S.Insert(src)
if(only_one)
return
if(breathes && !getorganslot(ORGAN_SLOT_LUNGS))
var/obj/item/organ/lungs/L = new()
L.Insert(src)
if(only_one)
return
if(blooded && !getorganslot(ORGAN_SLOT_HEART))
var/obj/item/organ/heart/H = new()
H.Insert(src)
if(only_one)
return
if(!getorganslot(ORGAN_SLOT_TONGUE))
var/obj/item/organ/tongue/T
@@ -245,7 +253,10 @@
// if they have no mutant tongues, give them a regular one
T.Insert(src)
else
if(only_one)
return
else if (!only_one)
var/obj/item/organ/tongue/oT = getorganslot(ORGAN_SLOT_TONGUE)
if(oT.name == "fluffy tongue")
var/obj/item/organ/tongue/T
@@ -266,6 +277,8 @@
else
E = new()
E.Insert(src)
if(only_one)
return
if(!getorganslot(ORGAN_SLOT_EARS))
var/obj/item/organ/ears/ears
@@ -275,9 +288,13 @@
ears = new
ears.Insert(src)
if(only_one)
return
if(!getorganslot(ORGAN_SLOT_TAIL))
var/obj/item/organ/tail/tail
if(dna && dna.species && dna.species.mutanttail)
tail = new dna.species.mutanttail
tail.Insert(src)
if(only_one)
return