summaryrefslogtreecommitdiff
path: root/src/graphics.c
diff options
context:
space:
mode:
authorSimon <simon@hardwired.org.uk>2010-12-06 19:32:33 (GMT)
committer Simon <simon@hardwired.org.uk>2010-12-06 19:32:33 (GMT)
commit122babe356fc975f4bd4aa7c9e9ed212a6003d1f (patch)
tree43b5cac3e53af85177e591cfd03f561ec9f80324 /src/graphics.c
parent40ab51d79f68eaef88defee0e3cf1de5cfb0b0b0 (diff)
downloadpowder-122babe356fc975f4bd4aa7c9e9ed212a6003d1f.zip
powder-122babe356fc975f4bd4aa7c9e9ed212a6003d1f.tar.gz
Added ARAY, a instant ray that can create holograms and transfer electrical energy
Diffstat (limited to 'src/graphics.c')
-rw-r--r--src/graphics.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/graphics.c b/src/graphics.c
index 5476bf7..f0c1321 100644
--- a/src/graphics.c
+++ b/src/graphics.c
@@ -1789,6 +1789,21 @@ void draw_parts(pixel *vid)
cb = cb>255?255:cb;
blendpixel(vid, nx, ny, cr, cg, cb, 127);
}
+ else if(t==PT_BRAY && parts[i].tmp==0)
+ {
+ int trans = parts[i].life * 7;
+ blendpixel(vid, nx, ny, PIXR(ptypes[t].pcolors), PIXG(ptypes[t].pcolors), PIXB(ptypes[t].pcolors), trans);
+ }
+ else if(t==PT_BRAY && parts[i].tmp==1)
+ {
+ int trans = parts[i].life/4;
+ blendpixel(vid, nx, ny, PIXR(ptypes[t].pcolors), PIXG(ptypes[t].pcolors), PIXB(ptypes[t].pcolors), trans);
+ }
+ else if(t==PT_BRAY && parts[i].tmp==2)
+ {
+ int trans = parts[i].life*100;
+ blendpixel(vid, nx, ny, 255, 150, 50, trans);
+ }
else if(t==PT_PHOT)
{
if(cmode == CM_FIRE||cmode==CM_BLOB || cmode==CM_FANCY)