More fun ssblackbox tallies.

This commit is contained in:
Thalpy
2019-06-28 16:50:48 +01:00
parent a2a5bbdb11
commit 4b7ac0be79
9 changed files with 24 additions and 4 deletions
+7 -3
View File
@@ -465,6 +465,7 @@
if (chem_temp > C.ExplodeTemp) //This is first to ensure explosions. if (chem_temp > C.ExplodeTemp) //This is first to ensure explosions.
var/datum/chemical_reaction/fermi/Ferm = selected_reaction var/datum/chemical_reaction/fermi/Ferm = selected_reaction
fermiIsReacting = FALSE fermiIsReacting = FALSE
SSblackbox.record_feedback("tally", "fermi_chem", 1, (Ferm+" explosion"))
Ferm.FermiExplode(src, my_atom, volume = total_volume, temp = chem_temp, pH = pH) Ferm.FermiExplode(src, my_atom, volume = total_volume, temp = chem_temp, pH = pH)
return 0 return 0
@@ -484,7 +485,6 @@
fermiIsReacting = TRUE fermiIsReacting = TRUE
fermiReactID = selected_reaction fermiReactID = selected_reaction
reaction_occurred = 1 reaction_occurred = 1
SSblackbox.record_feedback("tally", "Fermi_chemical_reaction", reactedVol, C.id)//log
else //It's a little bit of a confusing nest, but esstentially we check if it's a fermireaction, then temperature, then pH. If this is true, the remainer of this handler is run. else //It's a little bit of a confusing nest, but esstentially we check if it's a fermireaction, then temperature, then pH. If this is true, the remainer of this handler is run.
return 0 //If pH is out of range return 0 //If pH is out of range
@@ -656,7 +656,8 @@
//add product //add product
var/TotalStep = 0 var/TotalStep = 0
for(var/P in cached_results) for(var/P in cached_results)
SSblackbox.record_feedback("tally", "chemical_reaction", cached_results[P]*stepChemAmmount, P)//log SSblackbox.record_feedback("tally", "chemical_reaction", addChemAmmount, P)//log
SSblackbox.record_feedback("tally", "fermi_chem", addChemAmmount, P)
add_reagent(P, (addChemAmmount), null, cached_temp, purity)//add reagent function!! I THINK I can do this: add_reagent(P, (addChemAmmount), null, cached_temp, purity)//add reagent function!! I THINK I can do this:
TotalStep += addChemAmmount//for multiple products TotalStep += addChemAmmount//for multiple products
//Above should reduce yeild based on holder purity. //Above should reduce yeild based on holder purity.
@@ -665,6 +666,7 @@
if(P == R.id) if(P == R.id)
if (R.purity < C.PurityMin)//If purity is below the min, blow it up. if (R.purity < C.PurityMin)//If purity is below the min, blow it up.
fermiIsReacting = FALSE fermiIsReacting = FALSE
SSblackbox.record_feedback("tally", "fermi_chem", 1, (P+" explosion"))
C.FermiExplode(src, my_atom, (reactedVol+targetVol), cached_temp, pH) C.FermiExplode(src, my_atom, (reactedVol+targetVol), cached_temp, pH)
STOP_PROCESSING(SSprocessing, src) STOP_PROCESSING(SSprocessing, src)
return 0 return 0
@@ -681,7 +683,8 @@
if (chem_temp > C.ExplodeTemp) if (chem_temp > C.ExplodeTemp)
//go to explode proc //go to explode proc
fermiIsReacting = FALSE fermiIsReacting = FALSE
C.FermiExplode(src, my_atom, (reactedVol+targetVol), cached_temp, pH) SSblackbox.record_feedback("tally", "fermi_chem", 1, (P+" explosion"))
C.FermiExplode(src, my_atom, (reactedVol+targetVol), chem_temp, pH)
STOP_PROCESSING(SSprocessing, src) STOP_PROCESSING(SSprocessing, src)
return return
@@ -816,6 +819,7 @@
if (D.id == "water") //Do like an otter, add acid to water. if (D.id == "water") //Do like an otter, add acid to water.
if (pH <= 2) if (pH <= 2)
SSblackbox.record_feedback("tally", "fermi_chem", 1, "water-acid explosions")
var/datum/effect_system/smoke_spread/chem/s = new var/datum/effect_system/smoke_spread/chem/s = new
var/turf/T = get_turf(my_atom) var/turf/T = get_turf(my_atom)
var/datum/reagents/R = new/datum/reagents(3000) var/datum/reagents/R = new/datum/reagents(3000)
+1
View File
@@ -72,6 +72,7 @@
if ((damage / maxHealth) > 1) if ((damage / maxHealth) > 1)
to_chat(M, "<span class='userdanger'>You feel your lungs collapse within your chest as you gasp for air, unable to inflate them anymore!</span>") to_chat(M, "<span class='userdanger'>You feel your lungs collapse within your chest as you gasp for air, unable to inflate them anymore!</span>")
M.emote("gasp") M.emote("gasp")
SSblackbox.record_feedback("tally", "fermi_chem", 1, "Lungs lost")
qdel(src) qdel(src)
else if ((damage / maxHealth) > 0.75) else if ((damage / maxHealth) > 0.75)
to_chat(M, "<span class='warning'>It's getting really hard to breathe!!</span>") to_chat(M, "<span class='warning'>It's getting really hard to breathe!!</span>")
+1
View File
@@ -49,6 +49,7 @@
damage += damage_mod damage += damage_mod
if ((damage / maxHealth) > 1) if ((damage / maxHealth) > 1)
to_chat(M, "<span class='userdanger'>Your tongue is singed beyond recognition, and disintegrates!</span>") to_chat(M, "<span class='userdanger'>Your tongue is singed beyond recognition, and disintegrates!</span>")
SSblackbox.record_feedback("tally", "fermi_chem", 1, "Tongues lost to Fermi")
qdel(src) qdel(src)
else if ((damage / maxHealth) > 0.85) else if ((damage / maxHealth) > 0.85)
to_chat(M, "<span class='warning'>Your tongue feels like it's about to fall out!.</span>") to_chat(M, "<span class='warning'>Your tongue feels like it's about to fall out!.</span>")
@@ -238,6 +238,7 @@
SEND_SIGNAL(M, COMSIG_ADD_MOOD_EVENT, "enthrall", /datum/mood_event/enthrall, message) SEND_SIGNAL(M, COMSIG_ADD_MOOD_EVENT, "enthrall", /datum/mood_event/enthrall, message)
to_chat(owner, "<span class='[(owner.lewd?"big velvet":"big warning")]'><b>You feel inexplicably drawn towards [master], their words having a demonstrable effect on you. It seems the closer you are to them, the stronger the effect is. However you aren't fully swayed yet and can resist their effects by repeatedly resisting as much as you can!</b></span>") to_chat(owner, "<span class='[(owner.lewd?"big velvet":"big warning")]'><b>You feel inexplicably drawn towards [master], their words having a demonstrable effect on you. It seems the closer you are to them, the stronger the effect is. However you aren't fully swayed yet and can resist their effects by repeatedly resisting as much as you can!</b></span>")
log_game("FERMICHEM: MKULTRA: Status applied on [owner] ckey: [owner.key] with a master of [master] ckey: [enthrallID].") log_game("FERMICHEM: MKULTRA: Status applied on [owner] ckey: [owner.key] with a master of [master] ckey: [enthrallID].")
SSblackbox.record_feedback("tally", "fermi_chem", 1, "Enthrall attempts")
return ..() return ..()
/datum/status_effect/chem/enthrall/tick() /datum/status_effect/chem/enthrall/tick()
@@ -282,6 +283,7 @@
enthrallTally = 0 enthrallTally = 0
if(owner.lewd) if(owner.lewd)
to_chat(owner, "<span class='big velvet'><i>Your conciousness slips, as you sink deeper into trance and servitude.</i></span>") to_chat(owner, "<span class='big velvet'><i>Your conciousness slips, as you sink deeper into trance and servitude.</i></span>")
SSblackbox.record_feedback("tally", "fermi_chem", 1, "Enthralled to state 2")
else else
else if (resistanceTally > 150) else if (resistanceTally > 150)
@@ -289,6 +291,7 @@
to_chat(owner, "<span class='warning'><i>You break free of the influence in your mind, your thoughts suddenly turning lucid!</i></span>") to_chat(owner, "<span class='warning'><i>You break free of the influence in your mind, your thoughts suddenly turning lucid!</i></span>")
if(DistApart < 10) if(DistApart < 10)
to_chat(master, "<span class='warning'>[(master.lewd?"Your pet":"Your thrall")] seems to have broken free of your enthrallment!</i></span>") to_chat(master, "<span class='warning'>[(master.lewd?"Your pet":"Your thrall")] seems to have broken free of your enthrallment!</i></span>")
SSblackbox.record_feedback("tally", "fermi_chem", 1, "Thralls broken free")
owner.remove_status_effect(src) //If resisted in phase 1, effect is removed. owner.remove_status_effect(src) //If resisted in phase 1, effect is removed.
if(prob(10)) if(prob(10))
if(owner.lewd) if(owner.lewd)
@@ -306,6 +309,7 @@
to_chat(owner, "<span class='big nicegreen'><i>You are unable to put up a resistance any longer, and now are under the control of [master]. However you find that in your intoxicated state you are unable to resort to violence. Equally you are unable to commit suicide, even if ordered to, as you cannot serve your [master] in death. </i></span>") to_chat(owner, "<span class='big nicegreen'><i>You are unable to put up a resistance any longer, and now are under the control of [master]. However you find that in your intoxicated state you are unable to resort to violence. Equally you are unable to commit suicide, even if ordered to, as you cannot serve your [master] in death. </i></span>")
ADD_TRAIT(owner, TRAIT_PACIFISM, "MKUltra") //IMPORTANT ADD_TRAIT(owner, TRAIT_PACIFISM, "MKUltra") //IMPORTANT
log_game("FERMICHEM: MKULTRA: Status on [owner] ckey: [owner.key] has been fully entrhalled (state 3) with a master of [master] ckey: [enthrallID].") log_game("FERMICHEM: MKULTRA: Status on [owner] ckey: [owner.key] has been fully entrhalled (state 3) with a master of [master] ckey: [enthrallID].")
SSblackbox.record_feedback("tally", "fermi_chem", 1, "thralls fully enthralled.")
else if (resistanceTally > 200) else if (resistanceTally > 200)
enthrallTally *= 0.5 enthrallTally *= 0.5
phase -= 1 phase -= 1
@@ -291,6 +291,7 @@ Creating a chem with a low purity will make you permanently fall in love with so
E.phase = 4 E.phase = 4
E.mental_capacity = 0 E.mental_capacity = 0
E.customTriggers = list() E.customTriggers = list()
SSblackbox.record_feedback("tally", "fermi_chem", 1, "Thralls mindbroken")
/datum/reagent/fermi/enthrall/overdose_process(mob/living/carbon/M) /datum/reagent/fermi/enthrall/overdose_process(mob/living/carbon/M)
M.adjustBrainLoss(0.2)//should be ~40 in total M.adjustBrainLoss(0.2)//should be ~40 in total
@@ -321,6 +322,7 @@ Creating a chem with a low purity will make you permanently fall in love with so
M.apply_status_effect(STATUS_EFFECT_INLOVE, love) M.apply_status_effect(STATUS_EFFECT_INLOVE, love)
to_chat(M, "<span class='big love'>You develop overwhelmingly deep feelings for [love], your heart beginning to race as you look upon them with new eyes. You are determined to keep them safe above all other priorities.</span>") to_chat(M, "<span class='big love'>You develop overwhelmingly deep feelings for [love], your heart beginning to race as you look upon them with new eyes. You are determined to keep them safe above all other priorities.</span>")
log_game("FERMICHEM: [M] ckey: [M.key] has temporarily fallen for [love] ckey: [love.key]") log_game("FERMICHEM: [M] ckey: [M.key] has temporarily fallen for [love] ckey: [love.key]")
SSblackbox.record_feedback("tally", "fermi_chem", 1, "Times people have fallen in love")
else else
if(get_dist(M, love) < 8) if(get_dist(M, love) < 8)
if(HAS_TRAIT(M, TRAIT_NYMPHO)) //Add this back when merged/updated. if(HAS_TRAIT(M, TRAIT_NYMPHO)) //Add this back when merged/updated.
@@ -355,6 +357,7 @@ Creating a chem with a low purity will make you permanently fall in love with so
Lover.faction |= "[REF(Love)]" Lover.faction |= "[REF(Love)]"
Lover.apply_status_effect(STATUS_EFFECT_INLOVE, Love) Lover.apply_status_effect(STATUS_EFFECT_INLOVE, Love)
forge_valentines_objective(Lover, Love, TRUE) forge_valentines_objective(Lover, Love, TRUE)
SSblackbox.record_feedback("tally", "fermi_chem", 1, "Times people have become infatuated.")
log_game("FERMICHEM: [Lover] ckey: [Lover.key] has been chemically made to fall for [Love] ckey: [Love.key]") log_game("FERMICHEM: [Lover] ckey: [Lover.key] has been chemically made to fall for [Love] ckey: [Love.key]")
return return
@@ -117,6 +117,7 @@ IMPORTANT FACTORS TO CONSIDER WHILE BALANCING
SM.reagents.add_reagent("SDGFheal", volume) SM.reagents.add_reagent("SDGFheal", volume)
M.reagents.remove_reagent(id, volume) M.reagents.remove_reagent(id, volume)
log_game("FERMICHEM: [volume]u of SDGFheal has been transferred to the clone") log_game("FERMICHEM: [volume]u of SDGFheal has been transferred to the clone")
SSblackbox.record_feedback("tally", "fermi_chem", 1, "Sentient clones made")
return return
else if(playerClone == FALSE) //No candidates leads to two outcomes; if there's already a braincless clone, it heals the user, as well as being a rare souce of clone healing (thematic!). else if(playerClone == FALSE) //No candidates leads to two outcomes; if there's already a braincless clone, it heals the user, as well as being a rare souce of clone healing (thematic!).
@@ -159,6 +160,7 @@ IMPORTANT FACTORS TO CONSIDER WHILE BALANCING
to_chat(M, "<span class='notice'>Your body splits away from the cell clone of yourself, leaving you with a drained and hollow feeling inside.</span>") to_chat(M, "<span class='notice'>Your body splits away from the cell clone of yourself, leaving you with a drained and hollow feeling inside.</span>")
M.apply_status_effect(/datum/status_effect/chem/SGDF) M.apply_status_effect(/datum/status_effect/chem/SGDF)
log_game("FERMICHEM: [M] ckey: [M.key] has created a mindless clone of themselves") log_game("FERMICHEM: [M] ckey: [M.key] has created a mindless clone of themselves")
SSblackbox.record_feedback("tally", "fermi_chem", 1, "Braindead clones made")
if(87 to INFINITY) if(87 to INFINITY)
M.reagents.remove_reagent(id, volume)//removes SGDF on completion. Has to do it this way because of how i've coded it. If some madlab gets over 1k of SDGF, they can have the clone healing. M.reagents.remove_reagent(id, volume)//removes SGDF on completion. Has to do it this way because of how i've coded it. If some madlab gets over 1k of SDGF, they can have the clone healing.
@@ -277,6 +279,7 @@ IMPORTANT FACTORS TO CONSIDER WHILE BALANCING
M.reagents.remove_reagent(id, volume) M.reagents.remove_reagent(id, volume)
to_chat(M, "<span class='warning'>A large glob of the tumour suddenly splits itself from your body. You feel grossed out and slimey...</span>") to_chat(M, "<span class='warning'>A large glob of the tumour suddenly splits itself from your body. You feel grossed out and slimey...</span>")
log_game("FERMICHEM: [M] ckey: [M.key]'s clone has become a horrifying teratoma instead") log_game("FERMICHEM: [M] ckey: [M.key]'s clone has become a horrifying teratoma instead")
SSblackbox.record_feedback("tally", "fermi_chem", 1, "Zombie clones made!")
if(87 to INFINITY) if(87 to INFINITY)
M.adjustToxLoss(1, 0) M.adjustToxLoss(1, 0)
@@ -50,6 +50,7 @@ I'd like to point out from my calculations it'll take about 60-80 minutes to die
G.name = "[M]'s astral projection" G.name = "[M]'s astral projection"
M.mind.transfer_to(G) M.mind.transfer_to(G)
sleepytime = 15*volume sleepytime = 15*volume
SSblackbox.record_feedback("tally", "fermi_chem", 1, "Astral projections")
if(overdosed) if(overdosed)
if(prob(50)) if(prob(50))
to_chat(G, "<span class='warning'>The high conentration of Astrogen in your blood causes you to lapse your concentration for a moment, bringing your projection back to yourself!</b></span>") to_chat(G, "<span class='warning'>The high conentration of Astrogen in your blood causes you to lapse your concentration for a moment, bringing your projection back to yourself!</b></span>")
@@ -111,6 +112,7 @@ I'd like to point out from my calculations it'll take about 60-80 minutes to die
deadchat_broadcast("<span class='warning'>[M] has become one with the universe, meaning that their IC conciousness is continuous in a new life. If they find a way back to life, they are allowed to remember their previous life. Be careful what you say. If they abuse this, bwoink the FUCK outta them.</span>") deadchat_broadcast("<span class='warning'>[M] has become one with the universe, meaning that their IC conciousness is continuous in a new life. If they find a way back to life, they are allowed to remember their previous life. Be careful what you say. If they abuse this, bwoink the FUCK outta them.</span>")
M.visible_message("[M] suddenly disappears, their body evaporating from existence, freeing [M] from their mortal coil.") M.visible_message("[M] suddenly disappears, their body evaporating from existence, freeing [M] from their mortal coil.")
message_admins("[M] (ckey: [M.ckey]) has become one with the universe, and have continuous memories thoughout their lives should they find a way to come back to life (such as an inteligence potion, midround antag, ghost role).") message_admins("[M] (ckey: [M.ckey]) has become one with the universe, and have continuous memories thoughout their lives should they find a way to come back to life (such as an inteligence potion, midround antag, ghost role).")
SSblackbox.record_feedback("tally", "fermi_chem", 1, "Astral obliterations")
qdel(M) //Approx 60minutes till death from initial addiction qdel(M) //Approx 60minutes till death from initial addiction
log_game("FERMICHEM: [M] ckey: [M.key] has been obliterated from Astrogen addiction") log_game("FERMICHEM: [M] ckey: [M.key] has been obliterated from Astrogen addiction")
..() ..()
@@ -58,6 +58,7 @@
do_sparks(5,FALSE,M) do_sparks(5,FALSE,M)
do_teleport(M, location_created, 0, asoundin = 'sound/effects/phasein.ogg') do_teleport(M, location_created, 0, asoundin = 'sound/effects/phasein.ogg')
do_sparks(5,FALSE,M) do_sparks(5,FALSE,M)
SSblackbox.record_feedback("tally", "fermi_chem", 1, "Pure eigentstate jumps")
if(prob(20)) if(prob(20))
@@ -159,7 +160,7 @@
SEND_SIGNAL(M, COMSIG_CLEAR_MOOD_EVENT, Me) //Why does this not work? SEND_SIGNAL(M, COMSIG_CLEAR_MOOD_EVENT, Me) //Why does this not work?
*/ */
SEND_SIGNAL(M, COMSIG_ADD_MOOD_EVENT, "Alternative dimension", /datum/mood_event/eigenstate) SEND_SIGNAL(M, COMSIG_ADD_MOOD_EVENT, "Alternative dimension", /datum/mood_event/eigenstate)
SSblackbox.record_feedback("tally", "fermi_chem", 1, "Wild rides ridden")
if(prob(20)) if(prob(20))
do_sparks(5,FALSE,M) do_sparks(5,FALSE,M)
@@ -410,6 +410,7 @@
catto.pseudo_death = TRUE catto.pseudo_death = TRUE
H.forceMove(catto) H.forceMove(catto)
log_game("FERMICHEM: [H] ckey: [H.key] has been made into a cute catto.") log_game("FERMICHEM: [H] ckey: [H.key] has been made into a cute catto.")
SSblackbox.record_feedback("tally", "fermi_chem", 1, "cats")
//Just to deal with rascally ghosts //Just to deal with rascally ghosts
//ADD_TRAIT(catto, TRAIT_NODEATH, "catto")//doesn't work //ADD_TRAIT(catto, TRAIT_NODEATH, "catto")//doesn't work
//catto.health = 1000 //To simulate fake death, while preventing ghosts escaping. //catto.health = 1000 //To simulate fake death, while preventing ghosts escaping.