Gearing up for PR

This commit is contained in:
Fermi
2019-05-15 05:27:09 +01:00
parent 0d907db516
commit 2218956a09
8 changed files with 377 additions and 206 deletions
+44 -1
View File
@@ -45,6 +45,49 @@
if(user.a_intent == INTENT_HARM)
return ..()
/obj/item/reagent_containers/attack(obj/item/W, mob/user, params)
..()
if(!istype(W, /obj/item/pHpaper))
return
var/obj/item/pHpaper/P = W
if(P.used == TRUE)
to_chat(user, "<span class='warning'>[src] has already been used!</span>")
return
switch(src.reagents.pH)
if(14 to INFINITY)
P.color = "#462c83"
if(13 to 14)
P.color = "#63459b"
if(12 to 13)
P.color = "#5a51a2"
if(11 to 12)
P.color = "#3853a4"
if(10 to 11)
P.color = "#3f93cf"
if(9 to 10)
P.color = "#0bb9b7"
if(8 to 9)
P.color = "#23b36e"
if(7 to 8)
P.color = "#3aa651"
if(6 to 7)
P.color = "#4cb849"
if(5 to 6)
P.color = "#b5d335"
if(4 to 5)
P.color = "#b5d333"
if(3 to 4)
P.color = "#f7ec1e"
if(2 to 3)
P.color = "#fbc314"
if(1 to 2)
P.color = "#f26724"
if(-INFINITY to 1)
P.color = "#ef1d26"
P.used = TRUE
/obj/item/reagent_containers/proc/canconsume(mob/eater, mob/user)
if(!iscarbon(eater))
return 0
@@ -127,4 +170,4 @@
..()
/obj/item/reagent_containers/temperature_expose(datum/gas_mixture/air, exposed_temperature, exposed_volume)
reagents.expose_temperature(exposed_temperature)
reagents.expose_temperature(exposed_temperature)