changes and shit, adds prespawn colorful smoke grenade for fun times and adminning

This commit is contained in:
Iamgoofball
2015-02-24 20:15:06 -08:00
parent fa242187fb
commit c0ae53a566
4 changed files with 33 additions and 33 deletions
@@ -599,25 +599,15 @@ datum/reagent/epinephrine/overdose_process(var/mob/living/M as mob)
datum/reagent/strange_reagent
name = "Strange Reagent"
id = "strange_reagent"
description = "A chemical used in creation of other chemicals."
description = "A miracle medical chem, this little beauty can bring the dead back to life!"
reagent_state = LIQUID
color = "#C8A5DC" // rgb: 200, 165, 220
/*
--Commented out for now due to balance issues, defibs were kind of worthless.
datum/reagent/strange_reagent/reaction_mob(var/mob/living/carbon/human/M as mob, var/method=TOUCH, var/volume)
if(M.stat == DEAD)
if(M.getBruteLoss() >= 80 || M.getFireLoss() >= 80)
if(ishuman(M) || ismonkey(M))
var/mob/living/carbon/C_target = M
var/obj/item/organ/brain/B = C_target.getorgan(/obj/item/organ/brain)
if(B)
B.loc = get_turf(C_target)
B.transfer_identity(C_target)
C_target.internal_organs -= B
M.gib(M)
return
if(M.getBruteLoss() >= 100 || M.getFireLoss() >= 100)
M.visible_message("<span class='warning'>[M]'s body convulses a bit, and then falls still once more.</span>")
return
var/mob/dead/observer/ghost = M.get_ghost()
M.visible_message("<span class='warning'>[M]'s body convulses a bit.</span>")
if(!M.suiciding && !ghost && !(NOCLONE in M.mutations))
@@ -631,7 +621,6 @@ datum/reagent/strange_reagent/reaction_mob(var/mob/living/carbon/human/M as mob,
hardset_dna(M, null, null, null, null, /datum/species/zombie)
..()
return
*/
datum/reagent/strange_reagent/on_mob_life(var/mob/living/M as mob)
if(!M) M = holder.my_atom
if(prob(rand(1,100)))
+9 -16
View File
@@ -1,9 +1,10 @@
#define SOLID 1
#define LIQUID 2
#define GAS 3
#define REM REAGENTS_EFFECT_MULTIPLIER
var/list/random_color_list = list("#00aedb","#a200ff","#f47835","#d41243","#d11141","#00b159","#00aedb","#f37735","#ffc425","#008744","#0057e7","#d62d20","#ffa700")
datum/reagent/oil
name = "Oil"
id = "oil"
@@ -40,7 +41,9 @@ datum/reagent/carpet
color = "#C8A5DC" // rgb: 200, 165, 220
/datum/reagent/carpet/reaction_turf(var/turf/simulated/T, var/volume)
if(istype(T, /turf/simulated/floor/) && !istype(T, /turf/simulated/floor/fancy/carpet))
if(istype(T, /turf/simulated/floor/fancy/carpet))
return
if(istype(T, /turf/simulated/floor/plating) || istype(T, /turf/simulated/floor/plasteel))
var/turf/simulated/floor/F = T
F.visible_message("[T] gets a layer of carpeting applied!")
F.ChangeTurf(/turf/simulated/floor/fancy/carpet)
@@ -118,7 +121,6 @@ datum/reagent/colorful_reagent
description = "A solution."
reagent_state = LIQUID
color = "#C8A5DC" // rgb: 200, 165, 220
var/list/potential_colors = list("#00aedb","#a200ff","#f47835","#d41243","#d11141","#00b159","#00aedb","#f37735","#ffc425","#008744","#0057e7","#d62d20","#ffa700")
/datum/chemical_reaction/colorful_reagent
name = "colorful_reagent"
@@ -129,23 +131,23 @@ datum/reagent/colorful_reagent
datum/reagent/colorful_reagent/on_mob_life(var/mob/living/M as mob)
if(M && isliving(M))
M.color = pick(potential_colors)
M.color = pick(random_color_list)
..()
return
datum/reagent/colorful_reagent/reaction_mob(var/mob/living/M, var/volume)
if(M && isliving(M))
M.color = pick(potential_colors)
M.color = pick(random_color_list)
..()
return
datum/reagent/colorful_reagent/reaction_obj(var/obj/O, var/volume)
if(O)
O.color = pick(potential_colors)
O.color = pick(random_color_list)
..()
return
datum/reagent/colorful_reagent/reaction_turf(var/turf/T, var/volume)
if(T)
T.color = pick(potential_colors)
T.color = pick(random_color_list)
..()
return
@@ -229,15 +231,6 @@ datum/reagent/hair_dye
required_reagents = list("colorful_reagent" = 1, "radium" = 1, "space_drugs" = 1)
result_amount = 5
datum/reagent/hair_dye/on_mob_life(var/mob/living/M as mob)
if(M && ishuman(M))
var/mob/living/carbon/human/H = M
H.hair_color = pick(potential_colors)
H.facial_hair_color = pick(potential_colors)
H.update_hair()
..()
return
datum/reagent/hair_dye/reaction_mob(var/mob/living/M, var/volume)
if(M && ishuman(M))
var/mob/living/carbon/human/H = M
@@ -22,7 +22,7 @@
/datum/reagent/clf3/on_mob_life(var/mob/living/M as mob)
if(!M) M = holder.my_atom
M.adjust_fire_stacks(20)
M.adjust_fire_stacks(5)
M.IgniteMob()
M.adjustFireLoss(5*REM)
..()
@@ -54,7 +54,7 @@
/datum/reagent/clf3/reaction_mob(var/mob/living/M, var/method=TOUCH, var/volume)
if(method == TOUCH && ishuman(M))
M.adjust_fire_stacks(20)
M.adjust_fire_stacks(5)
M.IgniteMob()
new /obj/effect/hotspot(M.loc)
return