Adds some checks to borers to make them less murderboney

Also adds some chems to better facilitate a "symbiote" relationship
This commit is contained in:
Crazylemon
2016-02-01 16:54:11 -08:00
parent 8d38e190e4
commit 048b15571b
2 changed files with 19 additions and 6 deletions
+15 -6
View File
@@ -243,6 +243,8 @@
set name = "Secrete Chemicals (30)"
set desc = "Push some chemicals into your host's bloodstream."
var/injection_amount = 9
var/chem_cost = 30
if(!host)
src << "You are not inside a host body."
return
@@ -254,17 +256,24 @@
src << "\blue You are feeling far too docile to do that."
return
if(chemicals < 30)
if(chemicals < chem_cost)
src << "You don't have enough chemicals!"
var/chem = input("Select a chemical to secrete.", "Chemicals") as null|anything in list("mannitol","styptic_powder","methamphetamine","sal_acid")
if(!chem || chemicals < 30 || !host || controlling || !src || stat) //Sanity check.
var/chem = input("Select a chemical to secrete.", "Chemicals") as null|anything in list("mannitol","salglu_solution","methamphetamine","sal_acid", "hydrocodone", "spaceacillin", "mitocholide", "charcoal")
if(!chem || chemicals < chem_cost || !host || controlling || !src || stat) //Sanity check.
return
src << "\red <B>You squirt a measure of [chem] from your reservoirs into [host]'s bloodstream.</B>"
host.reagents.add_reagent(chem, 9)
chemicals -= 30
var/chem_amount = host.reagents.get_reagent_amount(chem)
var/datum/reagent/R = chemical_reagents_list[chem]
if(R.overdose_threshold && chem_amount + injection_amount > R.overdose_threshold)
src << "<span class='warning'>Doing so would cause grievous harm to your host, reducing ability to reproduce. Aborting.</span>"
return
src << "<span class='notice'>You squirt a measure of [chem] from your reservoirs into [host]'s bloodstream.</span>"
host.reagents.add_reagent(chem, injection_amount)
chemicals -= chem_cost
/mob/living/simple_animal/borer/verb/release_host()
set category = "Alien"
+4
View File
@@ -60,6 +60,10 @@
src << "You can't commit suicide before the game starts!"
return
// No more borergrief, one way or the other
if(has_brain_worms())
src << "You try to bring yourself to commit suicide, but - something prevents you!"
return
if (suiciding)
src << "You're already committing suicide! Be patient!"