summaryrefslogtreecommitdiff
path: root/src/graphics.c
diff options
context:
space:
mode:
authorPhilip <philip@philip-linuxlaptop.(none)>2010-11-10 21:33:44 (GMT)
committer Philip <philip@philip-linuxlaptop.(none)>2010-11-10 21:33:44 (GMT)
commite47c60c07a942aad222f49ac895931807c77f7cc (patch)
tree5d803917ad620c7b6568dc1b50a14285c87e5b9b /src/graphics.c
parentbd8a9f49313839cee94513f6c3059fdbdf824dda (diff)
downloadpowder-e47c60c07a942aad222f49ac895931807c77f7cc.zip
powder-e47c60c07a942aad222f49ac895931807c77f7cc.tar.gz
CRAC has real diffusion and gets darker with more water. you can see the water moving around.
Diffstat (limited to 'src/graphics.c')
-rw-r--r--src/graphics.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/graphics.c b/src/graphics.c
index 9ac815b..2eb1c7a 100644
--- a/src/graphics.c
+++ b/src/graphics.c
@@ -1349,6 +1349,20 @@ void draw_parts(pixel *vid)
}
}
+ else if(t==PT_CRAC)
+ {
+ cr = PIXR(ptypes[t].pcolors) - parts[i].life*15;
+ cg = PIXG(ptypes[t].pcolors) - parts[i].life*15;
+ cb = PIXB(ptypes[t].pcolors) - parts[i].life*15;
+ if(cr<=50)
+ cr = 50;
+ if(cg<=50)
+ cg = 50;
+ if(cb<=20)
+ cb = 20;
+ blendpixel(vid, nx, ny, cr, cg, cb, 255);
+
+ }
else if(t==PT_ACID)
{
if(parts[i].life>255) parts[i].life = 255;