Fixed buffers, SDGF, icons and spelling.

This commit is contained in:
Fermi
2019-07-07 05:59:21 +01:00
parent 6db1a1576d
commit e84fc73bed
5 changed files with 45 additions and 18 deletions
@@ -161,7 +161,22 @@ IMPORTANT FACTORS TO CONSIDER WHILE BALANCING
M.nutrition = 15//YOU BEST BE EATTING AFTER THIS YOU CUTIE
M.next_move_modifier -= 4
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)
//clone
var/typepath = M.type
var/mob/living/fermi_Clone = new typepath(M.loc)
var/mob/living/carbon/C = fermi_Clone
if(istype(C) && istype(M))
C.real_name = M.real_name
M.dna.transfer_identity(C, transfer_SE=1)
C.updateappearance(mutcolor_update=1)
C.apply_status_effect(/datum/status_effect/chem/SGDF)
var/datum/status_effect/chem/SGDF/S = C.has_status_effect(/datum/status_effect/chem/SGDF)
S.original = M
S.originalmind = M.mind
S.status_set = TRUE
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)
@@ -350,18 +350,19 @@
color = "#fbc314"
pH = 0
can_synth = TRUE
addProc = TRUE
//Consumes self on addition and shifts pH
/datum/reagent/fermi/acidic_buffer/on_new(datapH)
data = datapH
if(LAZYLEN(holder.reagent_list) == 1)
return
holder.pH = ((holder.pH * holder.total_volume)+(pH * (volume*3)))/(holder.total_volume + (volume*3))
holder.pH = ((holder.pH * holder.total_volume)+(pH * (volume)))/(holder.total_volume + (volume))
var/list/seen = viewers(5, get_turf(holder))
for(var/mob/M in seen)
to_chat(M, "<span class='warning'>The beaker fizzes as the pH changes!</b></span>")
playsound(get_turf(holder.my_atom), 'sound/FermiChem/bufferadd.ogg', 50, 1)
holder.remove_reagent(id, volume)
holder.remove_reagent(id, volume, ignore_pH = TRUE)
..()
/datum/reagent/fermi/basic_buffer
@@ -371,17 +372,18 @@
color = "#3853a4"
pH = 14
can_synth = TRUE
addProc = TRUE
/datum/reagent/fermi/basic_buffer/on_new(datapH)
data = datapH
if(LAZYLEN(holder.reagent_list) == 1)
return
holder.pH = ((holder.pH * holder.total_volume)+(pH * (volume*3)))/(holder.total_volume + (volume*3))
holder.pH = ((holder.pH * holder.total_volume)+(pH * (volume)))/(holder.total_volume + (volume))
var/list/seen = viewers(5, get_turf(holder))
for(var/mob/M in seen)
to_chat(M, "<span class='warning'>The beaker froths as the pH changes!</b></span>")
playsound(get_turf(holder.my_atom), 'sound/FermiChem/bufferadd.ogg', 50, 1)
holder.remove_reagent(id, volume)
holder.remove_reagent(id, volume, ignore_pH = TRUE)
..()
//Turns you into a cute catto while it's in your system.