Acid changes.

This commit is contained in:
Fermi
2019-06-02 22:38:55 +01:00
parent a3e60843bc
commit a5b3ec7939
+2 -3
View File
@@ -17,9 +17,8 @@
target = get_turf(src)
if(acid_amt)
acid_level = min(acid_amt*acid_pwr, 12000) //capped so the acid effect doesn't last a half hour on the floor.
if(acid_level < 0)//Fix for a weird runtime.
acid_level = 0
acid_level = min( (CLAMP(round(acid_amt, 1), 0, INFINITY)) *acid_pwr, 12000) //capped so the acid effect doesn't last a half hour on the floor.
//handle APCs and newscasters and stuff nicely
pixel_x = target.pixel_x + rand(-4,4)
pixel_y = target.pixel_y + rand(-4,4)