mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-23 20:16:55 +01:00
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:
@@ -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"
|
||||
|
||||
@@ -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!"
|
||||
|
||||
Reference in New Issue
Block a user