Even more fixes.

This commit is contained in:
Fermi
2019-05-19 01:37:20 +01:00
parent a837eda98b
commit 791d021d50
4 changed files with 85 additions and 40 deletions
@@ -42,3 +42,42 @@
resistance_flags = FLAMMABLE
w_class = WEIGHT_CLASS_TINY
//set flammable somehow
/obj/item/pHpaper/afterattack(obj/item/reagent_containers/glass/glass, mob/user, proximity)
if(!istype(glass))
return
if(used == TRUE)
to_chat(user, "<span class='warning'>[user] has already been used!</span>")
return
switch(glass.reagents.pH)
if(14 to INFINITY)
color = "#462c83"
if(13 to 14)
color = "#63459b"
if(12 to 13)
color = "#5a51a2"
if(11 to 12)
color = "#3853a4"
if(10 to 11)
color = "#3f93cf"
if(9 to 10)
color = "#0bb9b7"
if(8 to 9)
color = "#23b36e"
if(7 to 8)
color = "#3aa651"
if(6 to 7)
color = "#4cb849"
if(5 to 6)
color = "#b5d335"
if(4 to 5)
color = "#b5d333"
if(3 to 4)
color = "#f7ec1e"
if(2 to 3)
color = "#fbc314"
if(1 to 2)
color = "#f26724"
if(-INFINITY to 1)
color = "#ef1d26"
used = TRUE